An MCP server that exposes 28 Git operations for AI agents, including repository management, commits, history inspection, branching/merging, remotes, and advanced workflows. It supports STDIO and Streamable HTTP transports and can manage a session working directory for git tasks.
From the registry: Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.
Please install the `git-mcp-server-cyanheads` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **git** — git CLI must be installed locally (provider wraps native git)
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["@cyanheads/git-mcp-server@latest"]
- optional environment variables:
- `MCP_TRANSPORT_TYPE`: Transport: stdio or http (example: `stdio`)
- `MCP_LOG_LEVEL`: Log level (example: `info`)
- `GIT_BASE_DIR`: Absolute path restricting git operations to a directory tree (example: `<your-base-dir>`)
- `LOGS_DIR`: Directory where the server writes logs (example: `<your-logs-dir>`)
- `GIT_AUTHOR_NAME`: Git author name (alias: GIT_USERNAME) (example: `<your-git-username>`)
- `GIT_AUTHOR_EMAIL`: Git author email (alias: GIT_EMAIL) (example: `<your-git-email>`)
- `GIT_SIGN_COMMITS`: Enable GPG/SSH signing (example: `false`)
- `MCP_HTTP_PORT`: HTTP port when MCP_TRANSPORT_TYPE=http (example: `3015`)
Note: Also supports Streamable HTTP via MCP_TRANSPORT_TYPE=http on MCP_HTTP_PORT (default 3015).
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.MCP_AUTH_SECRET_KEYrequiredSecret key required when using JWT authenticationOAUTH_ISSUER_URLrequiredOIDC issuer URL required when using OAuth authenticationConnect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
The GitKraken MCP Server for managing repos, PRs, issues across GitHub, GitLab, Bitbucket and more.
Pare Git ג€” Structured git operations (status, log, diff, branch, commit, push) as typed JSON.