Skip to content
MCP server

codemcp

Code-mode proxy that puts all your MCP servers behind search, describe and execute

Runs locally

codemcp is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.5.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add codemcp -- npx -y codemcp-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": {
    "codemcp": {
      "command": "npx",
      "args": [
        "-y",
        "codemcp-cli"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "codemcp": {
      "command": "npx",
      "args": [
        "-y",
        "codemcp-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": {
    "codemcp": {
      "command": "npx",
      "args": [
        "-y",
        "codemcp-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": {
    "codemcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codemcp-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 codemcp -- npx -y codemcp-cli

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.codemcp]
command = "npx"
args = ["-y", "codemcp-cli"]

Codex setup guide

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

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

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "codemcp": {
          "command": "npx",
          "args": [
            "-y",
            "codemcp-cli"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user codemcp npx -- -y codemcp-cli

    Antigravity

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

    {
      "mcpServers": {
        "codemcp": {
          "command": "npx",
          "args": [
            "-y",
            "codemcp-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": {
        "codemcp": {
          "command": "npx",
          "args": [
            "-y",
            "codemcp-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": {
        "codemcp": {
          "command": "npx",
          "args": [
            "-y",
            "codemcp-cli"
          ]
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "codemcp": {
          "command": "npx",
          "args": [
            "-y",
            "codemcp-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": {
        "codemcp": {
          "command": "npx",
          "args": [
            "-y",
            "codemcp-cli"
          ]
        }
      }
    }

    Junie

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

    {
      "mcpServers": {
        "codemcp": {
          "command": "npx",
          "args": [
            "-y",
            "codemcp-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": {
        "codemcp": {
          "command": "npx",
          "args": [
            "-y",
            "codemcp-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 codemcp

codemcp sits in front of the MCP servers you already use and exposes them through three tools, search, describe and execute, instead of listing every tool to the model. The model sees TypeScript stubs, which you can preview with the stubs command, and runs code against them in a sandbox with approvals.

Setup is command-line driven. The import command discovers servers from your existing MCP clients and writes them into codemcp.config.json, the tools command connects and lists every tool with its pin status, and serve runs the proxy over stdio. Config can also define passthrough patterns for tools you want exposed directly.

It can be embedded programmatically: the package exports a Proxy class that takes a servers config and connects to any transport. It is published to npm as codemcp-cli, version 0.5.0 at the time of the registry entry.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 3 tools changes data.

From the server's own tool labels and tool names; not verified by us.

searchName suggests: reads
Searches tools across all connected servers
describeName suggests: reads
Describes a tool
executeName suggests: changes
Runs code against tools in a sandbox

What it does

Three-tool surface
Replaces many tool definitions with search, describe and execute.
Config import
Discovers servers from existing MCP clients into a config file.
TypeScript stubs
Prints the stubs the model will see.
Passthrough patterns
Lets chosen tools bypass the proxy.
Pin status
Lists every tool with whether it is pinned.
Embeddable Proxy class
Use it from your own code via codemcp-cli.

Good for

  • Reduce tool-definition clutter when many MCP servers are connected
  • Let an agent chain several server calls in one sandboxed script
  • Gate risky tool calls behind approvals
  • Audit which tools an agent can see

codemcp FAQ

How do I run codemcp?

Point your MCP client at npx codemcp-cli serve.

Which tools does codemcp advertise?

search, describe and execute, plus any passthrough patterns in the config.

How does codemcp find my servers?

codemcp import --write reads them from your MCP clients into codemcp.config.json.

Can I use codemcp in code?

Yes, import Proxy from codemcp-cli.

How do I add codemcp to Claude Code?

Run this command in your terminal: claude mcp add codemcp -- npx -y codemcp-cli

What are the best alternatives to codemcp?

The closest alternatives to codemcp 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