How to check an MCP server is safe before you install it
Disclosure: I run PickAPlugin , an independent catalog of ChatGPT and Codex plugins and MCP servers. This is adapted from our guide on the same topic. We don't test or audit anything we list, so this is a checklist for doing that part yourself, based on the official MCP, Claude, Cursor and Codex docs. A listing on a registry, npm, GitHub or a directory (ours included) is not a review. Before you…
If you want to ensure the safety of an MCP server before installing it, there are several steps you should follow. First, check what servers are already installed by examining your existing configuration files. For Claude Desktop, look for the claude_desktop_config.json file. Cursor uses two mcp.json files, while Codex requires you to run codex mcp list and check the ~/.codex/config.toml file.
Next, identify the publisher of the server you're considering. Verify that you can trace the package back to a real repository and its responsible maintainer. Be wary of sudden releases from repositories that were quiet until recently, as this could be a red flag.
Pay close attention to the exact package name. Typosquatting is easy to do and can lead to dangerous software being installed. Compare the name in the installation command, character by character, with the official README to ensure they match. For example, @modelcontextprotocol/server-filesystem is not the same as @modelcontextprotocal/server-filesystem.
Always pin the version of the package you install. Avoid using npx -y with the latest version, as this will allow any future updates to be installed automatically. Pinning a container image by digest is a safer alternative, as it freezes the exact version and contents of the image.
When you actually run the server, be vigilant for any unusual behavior. Check the command being used to install the server and look out for any surprising download hosts, curl piped to shell installers, or overly broad filesystem path or Docker socket permissions. Also, be wary of any post-install scripts that might do something unexpected.
To further secure your MCP server, give each server its own set of limited credentials. Use environment variable names or the app's secret store to manage these credentials, rather than committing them to a config file where they could be exposed. Use read-only or fine-grained tokens whenever possible.
Limit the filesystem and network access of each server as much as you can. Instead of giving a server access to the entire system (for example, / or your home directory), give it specific directories that it needs to function. This will help contain any potential damage if the server is compromised.
Treat the descriptions of third-party local servers as untrusted. The server you're installing can send its tool names and descriptions to the model at runtime, which can be an injection point that a simple README review might miss. Make sure to verify these descriptions yourself, if possible.
For more detailed instructions on how to check an MCP server's safety, including specific steps for Claude Desktop, Cursor, and Codex, refer to the full article titled "How to check an MCP server is safe".
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to