Git MCP Server
Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.
Connector by cyanheads · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/cyanheads-git-mcp-server
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 8 read · 9 write · 11 delete
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Tools by what they do 28
Read from the source code; the running server may list different tools.
Read 8 · Look things up without changing anything.
git_blamegit_changelog_analyzegit_diffgit_loggit_refloggit_showgit_statusgit_wrapup_instructions
Write 9 · Create, change, send or run things.
git_addgit_checkoutgit_clonegit_commitgit_fetchgit_mergegit_pushgit_rebasegit_set_working_dir
Delete 11 · Delete, drop, revoke or wipe things.
git_branchgit_cherry_pickgit_cleangit_clear_working_dirgit_initgit_pullgit_remotegit_resetgit_stashgit_taggit_worktree
Secrets and settings it asks for
Other settings (environment variables or headers).
GIT_BASE_DIRMCP_LOG_LEVEL
Network hosts it talks to 3
developer.microsoft.com· found in codegithub.com· found in codetypedoc.org· found in code
Files it touches
/dev/null- Your home directory (~)
- Any path the agent passes to its tools
Tools (28)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
git_addGit AddStage files for commit. Add file contents to the staging area (index) to prepare for the next commit.
git_blameGit Blameread-onlyShow line-by-line authorship information for a file, displaying who last modified each line and when. For large files, use startLine/endLine to limit output.
git_branchGit BranchManage branches: list all branches, show current branch, create a new branch, delete a branch, or rename a branch.
git_changelog_analyzeGit Changelog Analyzeread-onlyGather git history context (commits, tags) and structured review instructions to support LLM-driven changelog analysis. Changelog file should be read separately; this tool provides the supporting git data and analysis framework. Pass one or more review types to control what kind of analysis to perform.
git_checkoutGit CheckoutSwitch branches or restore working tree files. Can checkout an existing branch, create a new branch, or restore specific files.
git_cherry_pickGit Cherry-PickCherry-pick commits from other branches. Apply specific commits to the current branch without merging entire branches.
git_cleanGit CleanRemove untracked files from the working directory. Requires force flag for safety. Use dry-run to preview files that would be removed.
git_clear_working_dirGit Clear Working DirectoryClear the session working directory setting. This resets the context without restarting the server. Subsequent git operations will require an explicit path parameter unless git_set_working_dir is called again.
git_cloneGit CloneClone a repository from a remote URL or local path. Accepts HTTP(S), SSH, git://, file://, and bare filesystem paths, with optional shallow cloning.
git_commitGit CommitCreate a new commit with staged changes in the repository. Records a snapshot of the staging area with a commit message. **Commit Message Format:** Pass commit messages as JSON string parameters. Multi-line messages are supported using standard JSON string escaping. **Examples:** - Single line: { "message": "feat: add user authentication" } - Multi-line: { "message": "feat: add user authentication\n\nImplemented OAuth2 flow with JWT tokens.\nAdded tests for login and logout." } Note: Do not use bash heredoc syntax. Literal escape sequences (\n, \t) in the message string are automatically no…
git_diffGit Diffread-onlyView differences between commits, branches, or working tree. Shows changes in unified diff format.
git_fetchGit FetchFetch updates from a remote repository. Downloads objects and refs without merging them.
git_initGit InitInitialize a new Git repository at the specified path. Creates a .git directory and sets up the initial branch.
git_logGit Logread-onlyView commit history with optional filtering by author, date range, file path, or commit message pattern.
git_mergeGit MergeMerge branches together. Integrates changes from another branch into the current branch with optional merge strategies.
Show 13 more tools
git_pullGit PullPull changes from a remote repository. Fetches and integrates changes into the current branch.
git_pushGit PushPush changes to a remote repository. Uploads local commits to the remote branch.
git_rebaseGit RebaseRebase commits onto another branch. Reapplies commits on top of another base tip for a cleaner history.
git_reflogGit Reflogread-onlyView the reference logs (reflog) to track when branch tips and other references were updated. Useful for recovering lost commits.
git_remoteGit RemoteManage remote repositories: list remotes, add new remotes, remove remotes, rename remotes, or get/set remote URLs.
git_resetGit ResetReset current HEAD to specified state. Can be used to unstage files (soft), discard commits (mixed), or discard all changes (hard).
git_set_working_dirGit Set Working DirectorySet the session working directory for all git operations so subsequent calls can omit the path parameter. Always returns a repository snapshot (status, recent commits, recent tags, remotes) to orient the caller.
git_showGit Showread-onlyShow details of a git object (commit, tree, blob, or tag). Displays commit information and the diff of changes introduced.
git_stashGit StashManage stashes: list stashes, save current changes (push), restore changes (pop/apply), or remove stashes (drop/clear).
git_statusGit Statusread-onlyShow the working tree status including staged, unstaged, and untracked files.
git_tagGit TagManage tags: list all tags, create a new tag, delete a tag, or verify a signed tag. Tags are used to mark specific points in history (releases, milestones). Verify runs `git tag -v` and returns a structured result distinguishing unsigned tags, missing trust configuration, bad signatures, and valid signatures.
git_worktreeGit WorktreeManage multiple working trees: list worktrees, add new worktrees for parallel work, remove worktrees, or move worktrees to new locations.
git_wrapup_instructionsGit Wrap-up Instructionsread-onlyReturns a Git wrap-up protocol: an acceptance-criteria checklist the agent must satisfy before the session is considered shipped. Uses the operator's custom instructions if configured, otherwise emits a generic goals-strict/mechanism-generic default. Enriches the response with a repository snapshot (status, recent commits, recent tags) so the agent has immediate orientation for the commit and release steps.
Signals
- Stars
- 242
- Forks
- 57
- Open issues
- 18
- Contributors
- 2
- Weekly downloads
- 1,633
- Last commit
- Aug 24, 2026 (2 months ago)
- Last release
- Aug 24, 2026 (2 months ago)
- Last package publish
- Aug 24, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.cyanheads/git-mcp-server- Version
- 2.15.3
- Auth
- No auth
- Packages
- npm @cyanheads/git-mcp-servernpm @cyanheads/git-mcp-server
- License
- Apache-2.0
- Repository
- github.com/cyanheads/git-mcp-server
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from cyanheads
- 0.655score
MCP Ts Template
cyanheads
TypeScript template for building MCP servers with declarative tooling, observability, and auth.
ConnectorAFreshness: ARemoteLocalRead-only★ 152Claude Code +5 - 0.618score
Obsidian MCP Server
cyanheads
Read, write, search, and surgically edit Obsidian notes, tags, and frontmatter.
ConnectorAFreshness: ARemoteLocal★ 701Claude Code +5 - 0.597score
PubMed MCP Server
cyanheads
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
ConnectorAFreshness: ARemoteLocalRead-only★ 162↓ 1.6K/wkClaude Code +5 - 0.545score
Ntfy MCP Server
cyanheads
Send, manage, and replay ntfy push notifications.
ConnectorAFreshness: ARemoteLocal★ 23Claude Code +5 - 0.542score
Brapi MCP Server
cyanheads
Collaborative BrAPI v2.1 MCP workspace: studies, germplasm, genotypes across Breedbase, T3, more.
ConnectorAFreshness: ARemoteLocal★ 4↓ 660/wkClaude Code +5 - 0.541score
Toolkit MCP Server
cyanheads
Generate IDs, QR codes, and hashes, encode values, geolocate IPs, plus gated host diagnostics.
ConnectorAFreshness: ARemoteLocalRead-only★ 18↓ 133/wkClaude Code +5
Cite this page
Git MCP Server. Agent Mart. https://agentmart.dev/connectors/cyanheads-git-mcp-server (last updated 2026-10-24)