Skip to content

Svtter/git-mcp

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors