# codemcp

> codemcp is an MCP server for developer tools. Code-mode proxy that puts all your MCP servers behind search, describe and execute. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/stackunseen/codemcp/tree/HEAD/packages/proxy
- **MCP Registry name:** io.github.stackunseen/codemcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

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.

## Features

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

## Install

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

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

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

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

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

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

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

```sh
codex mcp add codemcp -- npx -y codemcp-cli
```

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

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

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

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

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

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

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

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

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

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

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

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

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

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

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

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

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

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

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

## Tools

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.

- `search` (name suggests: reads): Searches tools across all connected servers
- `describe` (name suggests: reads): Describes a tool
- `execute` (name suggests: changes): Runs code against tools in a sandbox

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

## 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/codemcp
