Git MCP
April 24, 2025 ยท View on GitHub
A MCP tool to using git, built with FastMCP.
Usage
You set up your repos folder on your own disk.
Run from source code
REPO_DIR=<your repo dir>
Start server.py
uv run server.py
This will start a MCP server on your machine.
Run from Docker
In your repos folder, run:
docker run --rm -t -v $(pwd):/repos -p 8000:8000 -e REPO_DIR=/repos svtter/git-mcp
Config
Config your MCP application
{
"mcpServers": {
"git": {
"url": "http://<your_host>:8000/sse"
}
}
}
For example,
{
"mcpServers": {
"git": {
"url": "http://localhost:8000/sse"
}
}
}