MCP Servers / version-control / Git MCP Server

Git MCP Server

JSON →
stdionone219version-control

An MCP server that allows AI agents to interact with Git repositories, supporting a wide range of operations like clone, commit, branch, and push.

Install
How to run this server
[ { "cmd": "npx @cyanheads/git-mcp-server@latest`", "imports": [] } ]
server path: git-mcp-server-3
Tools
What this server exposes
git_init
Initialize repos
git_clone
Clone from remotes
git_status
Check status
git_clean
Clean untracked files
git_add
Stage changes
git_commit
Create commits
git_diff
Compare changes
git_log
View commit history
git_show
Inspect objects
git_blame
Trace authorship
git_reflog
View ref logs
git_changelog_analyze
Gather git context and instructions for LLM-driven changelog analysis
git_branch
Manage branches
git_checkout
Switch contexts
git_merge
Integrate changes
git_rebase
Integrate changes
git_cherry_pick
Apply specific commits
git_remote
Configure remotes
git_fetch
Fetch updates
git_pull
Synchronize repositories
git_push
Publish changes
git_tag
Tag releases (list/create/delete/verify)
git_stash
Stash changes
git_reset
Reset state
git_worktree
Manage worktrees
git_set_working_dir
Set session directory
git_clear_working_dir
Clear session directory
git_wrapup_instructions
Wrap up instructions
Configuration
Environment & auth
authnone
envMCP_HTTP_PORT
envMCP_HTTP_HOST
envMCP_AUTH_SECRET_KEY
envOAUTH_ISSUER_URL
Resources
Git MCP Server — MCP Server · libregistry