# mcpm

> mcpm is an open-source MCP server for security. CLI that scores MCP servers before install and guards their stdio traffic. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/getmcpm/cli
- **MCP Registry name:** io.github.getmcpm/cli
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

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

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

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

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

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

### Other clients (your client's MCP settings (most use this shape))

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

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcpm
