G

Git Mcp Server

MCP server · by cyanheads

Developer Tools npm v2.15.3

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

View source ↗ Generate config for multiple servers More servers

Install

registry version 2.15.3

npm
npx -y @cyanheads/git-mcp-server
npm
npx -y @cyanheads/git-mcp-server

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "git-mcp-server-2": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/git-mcp-server"
      ]
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • MCP_LOG_LEVEL — Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').
  • GIT_BASE_DIR — Optional absolute path to restrict all git operations to a specific directory tree. Provides security sandboxing for multi-tenant or shared environments.
  • MCP_HTTP_HOST — The hostname for the HTTP server.
  • MCP_HTTP_PORT — The port to run the HTTP server on.
  • MCP_HTTP_ENDPOINT_PATH — The endpoint path for the MCP server.
  • MCP_AUTH_MODE — Authentication mode to use: 'none', 'jwt', or 'oauth'.

GitHub

⭐ 241 stars · 最近更新于 46 天前 · Apache-2.0 license

About this server

@cyanheads/git mcp server A Git MCP server for AI agents. STDIO & Streamable HTTP. 28 Tools · 1 Resource · 1 Prompt Tools 28 git operations organized into seven categories: Category Tools Description : : : Repository…

Summary from the project README — github.com/cyanheads/git-mcp-server

Distributed as npm, listed under Developer Tools. Review our MCP security guide before granting access to real data.

Frequently asked questions

What does the Git Mcp Server MCP server do?

@cyanheads/git mcp server A Git MCP server for AI agents. STDIO & Streamable HTTP. 28 Tools · 1 Resource · 1 Prompt Tools 28 git operations organized into seven categories: Category Tools Description : : : Repository

How do I install Git Mcp Server?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is Git Mcp Server free to use?

The MCP server itself is free to install. The source is public on https://github.com/cyanheads/git-mcp-server. Any third-party service it calls may require its own API key and account.

Which clients support Git Mcp Server?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/git-mcp-server-2.svg)](https://mcpnav.net/server/git-mcp-server-2/)

HTML

<a href="https://mcpnav.net/server/git-mcp-server-2/"><img src="https://mcpnav.net/badge/git-mcp-server-2.svg" alt="Listed on MCPNav" height="20"></a>