Git MCP Server
Git MCP Server is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more. It has 245 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @cyanheads/git-mcp-server.
github.com/cyanheads/git-mcp-server (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install Git MCP Server
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"git-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "your-value",
"GIT_BASE_DIR": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env MCP_LOG_LEVEL=your-value --env GIT_BASE_DIR=your-value --transport stdio git-mcp-server -- npx -y @cyanheads/git-mcp-serverCursor
{
"mcpServers": {
"git-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "your-value",
"GIT_BASE_DIR": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"git-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "your-value",
"GIT_BASE_DIR": "your-value"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
MCP_LOG_LEVEL | No | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
GIT_BASE_DIR | No | Optional absolute path to restrict all git operations to a specific directory tree. Provides security sandboxing for multi-tenant or shared environments. |
About Git MCP Server
@cyanheads/git-mcp-server A Git MCP server for AI agents. STDIO & Streamable HTTP. 28 Tools · 1 Resource · 1 Prompt 28 git operations organized into seven categories:
- git
- mcp
- mcp-server
- model-context-protocol
- git-tools
- cyanheads
- ai-agents
- ai-tools
- developer-tools
- llm-tools
Similar MCP servers
More developer tools MCP servers
Mobai MCP
MobAI-App/mobai-mcp
AI-powered mobile device automation for Android and iOS devices, emulators, and simulators.
Maintained · last commit Nov 6, 2026
Developer toolsTypeScriptFlameox
morluto/flameox
Bounded local runtime evidence from explicit artifacts and typed direct targets.
Active · last commit Oct 11, 2026
Developer toolsPythonolcli
aloth/olcli
Overleaf projects from an MCP client: files, compile and PDF, diff, comments and tracked changes.
Active · last commit Nov 15, 2026
Developer toolsTypeScriptdsh-baton
JialaoLiu/dsh-baton
Hand tasks from Claude Code, Codex or any MCP client to a local DeepSeek Harness.
Too new to judge · created Oct 18, 2026
Developer toolsJavaScriptBuddy phone tools
ghorbelhamdi/buddy-android
Android phone tools for AI agents (read the screen, tap, type, open apps), served by the Buddy app.
Too new to judge · created Oct 7, 2026
Developer toolsJavaSqueez
claudioemmanuel/squeez
Hook-based token compressor for 7 AI CLI hosts (Claude Code, Copilot CLI, OpenCode, Gemini CLI, Codex CLI, Pi, Hermes).
Active · last commit Nov 13, 2026
Developer toolsRust
How do I install the Git MCP Server MCP server?
Add the command npx -y @cyanheads/git-mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Git MCP Server free?
The server is open source under the Apache-2.0 license, so running it is free. It does not declare any required API key.
Is Git MCP Server actively maintained?
The most recent commit was on Aug 24, 2026. appsgit only lists MCP servers with a commit in the last six months.