Terminal and Code Integration for Claude AI
Code-MCP connects Claude AI to your development environment through the Model Context Protocol (MCP), enabling terminal commands and file operations through the AI interface.
Run shell commands in your project directory directly from Claude
Create, read, update, and delete files and directories
Special handling for git commands with safety confirmations
Enhanced editing capabilities for code files
Advanced pattern matching and function-level operations
Operate on your codebase with natural language instructions
curl -LsSf https://raw.githubusercontent.com/54yyyu/code-mcp/main/install.sh | sh
powershell -c "Invoke-WebRequest -Uri https://raw.githubusercontent.com/54yyyu/code-mcp/main/install.ps1 -OutFile install.ps1; .\install.ps1"
pip install git+https://github.com/54yyyu/code-mcp.git
uv pip install git+https://github.com/54yyyu/code-mcp.git
# Clone the repository
git clone https://github.com/54yyyu/code-mcp.git
cd code-mcp
# Install in development mode with uv (recommended)
uv pip install -e .
Run the setup helper to configure Claude Desktop
# With a specific project path
code-mcp-setup /path/to/your/project
# Or run without arguments to use the current directory
code-mcp-setup
Edit Claude Desktop configuration directly
claude_desktop_config.json
:{
"mcpServers": {
"code": {
"command": "code-mcp",
"args": [
"/path/to/your/project"
]
}
}
}
Save the file and restart Claude Desktop
Try asking Claude these commands: