Git MCP
Run Git commands through your AI assistant — stage changes, commit, branch, merge, rebase, and inspect history without leaving your chat interface. Wraps common Git operations with safety checks for production repositories.
What Git MCP is for
modelcontextprotocol publishes Git MCP for version control work: stage and commit changes, create and switch branches, view commit history and diffs.
Filed under Git, Version Control, CLI. official — modelcontextprotocol owns the repository, no prior setup required.
1.“stage and commit changes”
2.“create and switch branches”
3.“view commit history and diffs”
How to configure Git MCP
- 1. Gather what it needsAn MCP-capable client (Claude Desktop, Cursor, VS Code, or anything in the official client list)
- 2. Confirm the detailsThe runtime the server is published for — npm wants Node.js, Python wants a 3.10+ interpreter
- 3. Check the riskOne credential, usually an API token or a local path
Client config shape
{
"mcpServers": {
"git": {
"command": "<command from the README>",
"args": ["<package>@<latest>", "--<flag>"],
"env": {
"<TOKEN_NAME>": "<your credential>"
}
}
}
}The placeholders are deliberate — take the exact package name and variables from https://github.com/modelcontextprotocol/servers.
Install command
npx @anthropic/mcp-server-gitGit MCP vs. other version control servers
Six alternatives in the same category, so you can weigh them before you install anything.
Manage Azure Repos Git repositories — create and manage repos, review pull requests, set branch policies, and link work items. Essential for Azure DevOps version control workflows with deep Microsoft ecosystem integration.
by Azure · official
Version control operations for Bazaar — branch management, commit history, merge operations, and repository inspection. Legacy VCS support for older projects still using Bazaar in enterprise environments requiring migration assistance.
by bazaar
Manage Bitbucket repositories, pull requests, pipelines, and branch permissions through AI. Built for teams using Atlassian Git solution with Jira integration for seamless development workflow tracking.
by atlassian · official
Generate changelogs from Git commit history — parse conventional commits, categorize changes, and produce release notes in markdown. Streamlines release documentation and version tracking for open-source and internal projects.
by changelog
Enforce and validate conventional commit format — lint commit messages, suggest proper formatting, and ensure semantic versioning compliance across your repository history for automated release workflows.
by conventional-changelog
Concurrent Versions System operations — checkout, commit, update, and branch management. Legacy CVS support for migrating old repositories and maintaining historical projects with decades of version history.
by cvs-mcp
Server specs
- Publisher
- modelcontextprotocol
- Category
- Version Control
- Setup difficulty
- Beginner-friendly
- Maintenance
- Vendor-maintained
- GitHub Stars
- 86,100
- Tags
- GitVersion ControlCLI
Get Git MCP
Git MCP questions
- Is Git MCP an official MCP server?
- Yes — modelcontextprotocol owns the repository and the release schedule.
- Who publishes Git MCP?
- modelcontextprotocol. Source, install command and breaking changes: https://github.com/modelcontextprotocol/servers
- What can my assistant do with Git MCP?
- stage and commit changes, create and switch branches, view commit history and diffs.
- How do I install Git MCP?
- Add a server block for it to your client's config file, using the exact package name and command from https://github.com/modelcontextprotocol/servers.
- Does Git MCP need an API key?
- Usually — https://github.com/modelcontextprotocol/servers lists the exact variables.
- How hard is Git MCP to set up?
- Beginner-friendly. A beginner setup is three decisions: which client hosts it, which credential it needs, and where the config file lives.
- What are the alternatives to Git MCP?
- Within Version Control: Azure Repos MCP, Bazaar MCP, Bitbucket MCP.
- Is Git MCP still maintained?
- modelcontextprotocol owns the maintenance, so it tracks the upstream product.