Install Git in Claude Code
claude mcp add ray0907-git -e GIT_TOKEN=... -- npx -y @raytien/git-mcp-server{
"mcpServers": {
"ray0907-git": {
"command": "npx",
"args": [
"-y",
"@raytien/git-mcp-server"
],
"env": {
"GIT_TOKEN": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the Git MCP server do?
MCP server for GitLab and GitHub
Is the Git MCP server free?
The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.
Does Git run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add Git to Claude Code?
Run: claude mcp add ray0907-git -e GIT_TOKEN=... -- npx -y @raytien/git-mcp-server
More version control MCP servers
View allGitHub
github/github-mcp-server
GitHub integration for repository management, pull requests, issues and more.
GitDiagram
ahmedkhaleel2004/gitdiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
GitLab
zereight/gitlab-mcp
GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more.
OpenOSINT
OpenOSINT/OpenOSINT
AI-powered OSINT agent & MCP server. 21 tools: email, breach, IP, WHOIS, DNS, Shodan, GitHub & more.
SoloMD
zhitongblog/solomd
Read and search a folder of Markdown notes: search, backlinks, tags, tasks, outlines, git history.
Best of Agent Harnesses
RyanAlberts/best-of-Agent-Harnesses
Agent-harness picks, decision guides, setup templates, and skills; live GitHub/HN discovery.