{
  "id": 21485204,
  "title": "How to check an MCP server is safe before you install it",
  "url": "https://urgent.news/2026/11/23/how-to-check-an-mcp-server-is-safe-before-you-install-it",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-23T22:24:36.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/pickaplugin/how-to-check-an-mcp-server-is-safe-before-you-install-it-1ei1"
  },
  "original_language": "en",
  "account": "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.\n\nNext, 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.\n\nPay 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.\n\nAlways 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.\n\nWhen 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.\n\nTo 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.\n\nLimit 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.\n\nTreat 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.\n\nFor 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\".",
  "summary": "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…",
  "key_points": [
    "Examine existing configuration files to see installed servers",
    "Verify publisher by tracing package back to real repository",
    "Pin exact package version to prevent automatic updates"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}