A local MCP server that exposes tools and reusable prompts for running the Claude Code CLI.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Claude Desktop
Claude Code
Cursor
Add to claude_desktop_config.json:
{
"mcpServers": {
"claude-code-cli-mcp": {
"command": "uvx",
"args": [
"claude-code-cli-mcp"
]
}
}
}
📋 Copy
Run in terminal:
claude mcp add claude-code-cli-mcp uvx claude-code-cli-mcp
📋 Copy
Add to .cursor/mcp.json:
{
"mcpServers": {
"claude-code-cli-mcp": {
"command": "uvx",
"args": [
"claude-code-cli-mcp"
]
}
}
}
📋 Copy
Or install with pip: pip install claude-code-cli-mcp
README Excerpt
Version: 0.1.0 A local STDIO MCP server that exposes tools and reusable prompts for running the Anthropic Claude Code CLI (`claude`) inside a controlled workspace. - Model Context Protocol (MCP): https://modelcontextprotocol.io/ - FastMCP: https://github.com/PrefectHQ/fastmcp - FastMCP docs: https://gofastmcp.com/
Tools (20)
CLAUDE_MCP_ALLOWED_MODELS CLAUDE_MCP_ALLOWED_ROOTS CLAUDE_MCP_ALLOW_ENV_KEYS CLAUDE_MCP_ALLOW_EXTRA_ARGS CLAUDE_MCP_CLAUDE_PATH CLAUDE_MCP_CLAUDE_PATH_FALLBACKS CLAUDE_MCP_DEFAULT_PERMISSION_MODE CLAUDE_MCP_DEFAULT_TIMEOUT_S CLAUDE_MCP_FORCE_BARE CLAUDE_MCP_FORCE_SANDBOX_IN_SAFE_MODE CLAUDE_MCP_LOGFIRE_TOKEN CLAUDE_MCP_MAX_CONCURRENT_RUNS CLAUDE_MCP_MAX_RUNS CLAUDE_MCP_MAX_STDERR_BYTES CLAUDE_MCP_MAX_STDOUT_BYTES CLAUDE_MCP_MODE CLAUDE_MCP_PERSISTENCE_BACKUP_ON_WRITE CLAUDE_MCP_PERSISTENCE_BASE_DIR CLAUDE_MCP_PERSISTENCE_ENABLED CLAUDE_MCP_PERSISTENCE_MAX_FILE_BYTES