GitMCP — Git MCP server: what it does, how to connect
GitMCP — an MCP server that gives an AI client tools for Git repositories, so the agent can reach the repo without files being pasted into the chat.
no license updated 2026-10-29
Open on GitHubWhat GitMCP does
GitMCP is an MCP server that hands an AI client a set of tools for Git repositories. The agent goes through that server process instead of having project files dropped into the chat window.
The project is published under docker, and the stated scope is single: Git repository work. It does not reach past the repo, so don't count on it for pull request reviews or issue triage.
It is listed for Claude, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed and Gemini CLI. That is a long list, and in every client the server entry lives in that client's own config.
What it helps with
- hook an agent up to a Git repository
- give a client tools for repository operations
- stop pasting project files into the chat by hand
- keep Git work in one MCP server instead of homegrown wrappers
Example prompts for the agent
- Connect GitMCP and list the repositories you can reach.
- Use GitMCP to check the latest changes in this repo.
- Ask GitMCP for the commit history of
main.py.
How to install GitMCP
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about GitMCP
What does GitMCP do?
It is an MCP server exposing tools for Git repositories. A client picks them up over MCP and can work with a repo from inside the agent.
Which clients does GitMCP support?
Claude, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed and Gemini CLI are listed.
Who maintains GitMCP?
The project is published under docker.