
codemcp
MCP server that lets Claude edit your local code, auto-commit each change to Git, and run
codemcp is an open-source MCP server for developer tools. It is available on CLI, macOS, Linux, Windows and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, macOS, Linux
- GitHub stars
- 1.6K
- Last commit
- Language
- Python
- License
- Apache-2.0
Similar MCP servers
About codemcp
codemcp runs locally as an MCP server so that Claude can read, edit and test files in a project directory on your machine. Instead of pasting snippets back and forth, you describe the change in a chat and Claude applies it directly to the repository.
Every edit the model makes is recorded as a Git commit, which makes it possible to roll back individual agent changes after a session. Shell access is restricted: the commands Claude may run, such as a formatter or test runner, are declared ahead of time in a codemcp.toml file, and a designated format command runs after every file edit.
The project is aimed at developers who use Claude on a subscription and prefer reviewing a batch of changes at the end of a session rather than approving each step. It works alongside any editor, since review happens in whatever IDE or terminal the developer already uses. The author notes the project is no longer actively promoted because Claude Code now covers similar ground.
What it does
- Direct file editing
- Claude modifies files in a local checkout and can run the project's tests as part of the same chat.
- Commit per change
- Each edit made by the model is saved as a Git commit so changes can be rolled back individually.
- Predeclared commands
- Shell use is limited to commands listed in codemcp.toml, such as format and test scripts.
- Automatic formatting
- A configured format command runs after every file edit.
- Project prompt setup
- A project_prompt option in the config supplies instructions Claude reads when a project is initialized.
- Remote host binding
- The server can listen on a chosen port or host address, for example a Tailscale IP.
Good for
- Implementing a new feature in a local repository from a Claude chat
- Fixing failing tests by letting the model edit code and rerun the suite
- Carrying out a refactor across several files and reviewing the commits afterward
- Reviewing and rolling back individual AI-generated edits with Git
Pricing
Open source
Free and open source under Apache-2.0.
codemcp FAQ
How do I install codemcp?
Install uv and git, then run the server with uvx from the project's Git repository and connect an MCP client to the printed SSE URL.
Can the agent run any shell command?
No. Only commands declared in codemcp.toml are available to the agent.
Where are the logs written?
Logs are written to ~/.codemcp/codemcp.log, and the verbosity can be set in ~/.codemcprc.
Is codemcp free?
Yes. codemcp is open source, so you can use and self-host it for free.
What are the best alternatives to codemcp?
The closest alternatives to codemcp are Codex MCP Tool, codemem, Claude Code Explorer MCP, Cursor MCP and vscode-mcp-server.
Where this comes from
- Description: written from the project's README.
