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