Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

git-mcp-server

local MCP server

git-mcp-server is a local MCP server: Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more. Install it from npm as @cyanheads/git-mcp-server.

Installation

Terminal

claude mcp add io-github-cyanheads-git-mcp-server -e MCP_LOG_LEVEL=... -e GIT_BASE_DIR=... -- npx -y @cyanheads/git-mcp-server

Run in your project folder. Add --scope user to use it everywhere.

Claude Desktop, Cursor & other clients

Add to claude_desktop_config.json or .cursor/mcp.json.

{
  "mcpServers": {
    "io-github-cyanheads-git-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/git-mcp-server"
      ],
      "env": {
        "MCP_LOG_LEVEL": "...",
        "GIT_BASE_DIR": "..."
      }
    }
  }
}

Fill in the environment variables with your own credentials.

What you need

  • Runtime: Node.js 18+ (runs with npx) or Node.js 18+ (runs with npx).
  • MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
  • Environment variables: MCP_LOG_LEVEL, GIT_BASE_DIR, MCP_HTTP_HOST, MCP_HTTP_PORT, MCP_HTTP_ENDPOINT_PATH, MCP_AUTH_MODE

Summary

Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.

git-mcp-server vs similar servers

ServerStarsTypeAPI keyRuntime
git-mcp-server241LocalYesnpm
pg-aiguide1,850HostedYesNone
gopeak261LocalNonpm
virustotal149LocalYesnpm
MediaWiki MCP Server134LocalYesmcpb

Questions

It reads 6 environment variables: MCP_LOG_LEVEL, GIT_BASE_DIR, MCP_HTTP_HOST, MCP_HTTP_PORT, MCP_HTTP_ENDPOINT_PATH, MCP_AUTH_MODE. Set them in your MCP config before starting the server.

Node.js 18+ (runs with npx) or Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.

git-mcp-server is a local MCP server distributed as the npm package @cyanheads/git-mcp-server.

Run: claude mcp add io-github-cyanheads-git-mcp-server -e MCP_LOG_LEVEL=... -e GIT_BASE_DIR=... -- npx -y @cyanheads/git-mcp-server

Run: codex mcp add io-github-cyanheads-git-mcp-server --env MCP_LOG_LEVEL=... --env GIT_BASE_DIR=... -- npx -y @cyanheads/git-mcp-server

Similar MCP servers

NameStars
  1. pg-aiguideio.github.timescale/pg-aiguide1,850
  2. gopeakio.github.HaD0Yun/gopeak261
  3. virustotalio.github.BurtTheCoder/virustotal149
  4. MediaWiki MCP Serverio.github.ProfessionalWiki/mediawiki-mcp-server134
  5. Unraid MCPai.dinglebear/unraid-mcp131
  6. Unraid MCPtv.tootie/unraid-mcp131
  7. code-indexio.github.Regsorm/code-index130
  8. ha-mcpio.github.homeassistant-ai/ha-mcp4,868