HomeOther › git-mcp-server

git-mcp-server

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

TypeScript
★ 241 stars Last pushed 2026-08-24 License: Apache-2.0

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 2.15.3)

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

Or add to your MCP client config:

{
  "mcpServers": {
    "git-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/git-mcp-server@2.15.3"
      ],
      "env": {
        "MCP_LOG_LEVEL": "<YOUR_VALUE>",
        "GIT_BASE_DIR": "<YOUR_VALUE>"
      }
    }
  }
}
  • 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.

This server takes extra arguments — see its repository.

Package (npm 2.15.3)

Package: npm @cyanheads/git-mcp-server

  • 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'.
  • 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.

This server takes extra arguments — see its repository.

Related servers

Data from the Official MCP Registry