Git MCP Server
JSON →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
npx @cyanheads/git-mcp-server@latest` Tools · 28
- 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
Environment variables
MCP_HTTP_PORTMCP_HTTP_HOSTMCP_AUTH_SECRET_KEYOAUTH_ISSUER_URL
Links
★ 219 GitHub stars