Skip to content
MCP server

mcpm

CLI that scores MCP servers before install and guards their stdio traffic

Runs locally

mcpm is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.54.5
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add cli -- npx -y @getmcpm/cli

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "cli": {
      "command": "npx",
      "args": [
        "-y",
        "@getmcpm/cli"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "cli": {
      "command": "npx",
      "args": [
        "-y",
        "@getmcpm/cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "cli": {
      "command": "npx",
      "args": [
        "-y",
        "@getmcpm/cli"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "cli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@getmcpm/cli"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add cli -- npx -y @getmcpm/cli

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.cli]
command = "npx"
args = ["-y", "@getmcpm/cli"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "cli": {
      "command": "npx",
      "args": [
        "-y",
        "@getmcpm/cli"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "cli": {
          "command": "npx",
          "args": [
            "-y",
            "@getmcpm/cli"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user cli npx -- -y @getmcpm/cli

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "cli": {
          "command": "npx",
          "args": [
            "-y",
            "@getmcpm/cli"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "cli": {
          "command": "npx",
          "args": [
            "-y",
            "@getmcpm/cli"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "cli": {
          "command": "npx",
          "args": [
            "-y",
            "@getmcpm/cli"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "cli": {
          "command": "npx",
          "args": [
            "-y",
            "@getmcpm/cli"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "cli": {
          "command": "npx",
          "args": [
            "-y",
            "@getmcpm/cli"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "cli": {
          "command": "npx",
          "args": [
            "-y",
            "@getmcpm/cli"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "cli": {
          "command": "npx",
          "args": [
            "-y",
            "@getmcpm/cli"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About mcpm

Installing an MCP server means trusting its tool descriptions and its package. mcpm checks both before anything is written to a client config: it flags metadata patterns for secrets and injection, shows how a trust score was built, and lists the checks that could not run. The README is explicit that the score reflects available evidence and is not a probability that the server is safe.

After install, mcpm guard enable wraps stdio servers in a relay that pins each tool definition on first sight and compares later changes. Description-only edits warn, schema or annotation changes block, and pattern matches can block on their own. HTTP and SSE servers get no runtime inspection, and the optional macOS confinement profile is described as bounded, not a full sandbox.

For teams there are lock files, a CI verify command and a GitHub Action, plus project and client inventory, SARIF audit output and an experimental comparison of skill archives. The default path is local, with no account or telemetry; it contacts the public MCP registry and npm for lookups.

What it does

Trust-scored installs
Assesses registry entries and explains the score, findings and checks that did not run.
Runtime stdio guard
Wraps stdio servers, pins tool definitions on first use and warns or blocks on drift and attack patterns.
Lock and verify
Records package versions, integrity and Sigstore build identity, and checks them in CI.
Client config management
Detects, installs, imports and compares server definitions across six client adapters.
Project exposure inventory
Read-only scope command lists server sources and instruction metadata for a project.
Opt-in macOS confinement
Adds bounded process restrictions that deny selected secret paths and limit writes.

Good for

  • Review a registry server before adding it to a client
  • Detect a tool description that changes after approval
  • Share a reviewed stack of servers through mcpm.yaml
  • Fail a pull request when the committed lock no longer verifies
  • Compare MCP configuration across Claude, VS Code and other clients

Pricing

Open source

Free npm package

mcpm FAQ

Is the trust score a safety rating?

No. The README calls it a signal about available evidence, not a safety probability, and says search listing is not publisher verification.

Does the guard cover HTTP servers?

No. The relay supports stdio only; HTTP and SSE servers have no runtime inspection.

Does mcpm need an account?

No. The default assessment and guard path runs locally with no account, model subscription, backend or telemetry.

What does mcpm need to run?

Node 22.22.2 or newer on the 22 and 24 lines, or Node 26 and above, installed from the npm package @getmcpm/cli.

Is there a CI integration?

Yes, a verification GitHub Action and mcpm verify --json, plus audit --sarif for code scanning.

Is mcpm free?

Yes. mcpm is open source, so you can use and self-host it for free.

How do I add mcpm to Claude Code?

Run this command in your terminal: claude mcp add cli -- npx -y @getmcpm/cli

What are the best alternatives to mcpm?

The closest alternatives to mcpm are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers