Loading languages...
GI

git-mcp

@Svtter

A MCP service could handle git command, to process given repo name.

git
version control

Git MCP

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"
    }
  }
}

# mcpServer Config

{
  "mcpServers": {
    "git": {
      "url": "http://<your_host>:8000/sse"
    }
  }
}

# sseURL

http://localhost:8000/sse
Transport:
sse
Language:
Python
Created: 4/24/2025
Updated: 4/24/2025
Homepage: