Skip to content
Agentmart
Submit a tool

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

IndexedApache-2.0Local (stdio)Remote (HTTP)★ 242
Write a review

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.

We use your email only for this newsletter. Privacy

About

Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.

No 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_blame
  • git_changelog_analyze
  • git_diff
  • git_log
  • git_reflog
  • git_show
  • git_status
  • git_wrapup_instructions

Write 9 · Create, change, send or run things.

  • git_add
  • git_checkout
  • git_clone
  • git_commit
  • git_fetch
  • git_merge
  • git_push
  • git_rebase
  • git_set_working_dir

Delete 11 · Delete, drop, revoke or wipe things.

  • git_branch
  • git_cherry_pick
  • git_clean
  • git_clear_working_dir
  • git_init
  • git_pull
  • git_remote
  • git_reset
  • git_stash
  • git_tag
  • git_worktree

Secrets and settings it asks for

Other settings (environment variables or headers).

  • GIT_BASE_DIR
  • MCP_LOG_LEVEL

Network hosts it talks to 3

  • developer.microsoft.com · found in code
  • github.com · found in code
  • typedoc.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 Add

    Stage files for commit. Add file contents to the staging area (index) to prepare for the next commit.

  • git_blameGit Blameread-only

    Show 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 Branch

    Manage branches: list all branches, show current branch, create a new branch, delete a branch, or rename a branch.

  • git_changelog_analyzeGit Changelog Analyzeread-only

    Gather 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 Checkout

    Switch branches or restore working tree files. Can checkout an existing branch, create a new branch, or restore specific files.

  • git_cherry_pickGit Cherry-Pick

    Cherry-pick commits from other branches. Apply specific commits to the current branch without merging entire branches.

  • git_cleanGit Clean

    Remove 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 Directory

    Clear 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 Clone

    Clone 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 Commit

    Create 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-only

    View differences between commits, branches, or working tree. Shows changes in unified diff format.

  • git_fetchGit Fetch

    Fetch updates from a remote repository. Downloads objects and refs without merging them.

  • git_initGit Init

    Initialize a new Git repository at the specified path. Creates a .git directory and sets up the initial branch.

  • git_logGit Logread-only

    View commit history with optional filtering by author, date range, file path, or commit message pattern.

  • git_mergeGit Merge

    Merge branches together. Integrates changes from another branch into the current branch with optional merge strategies.

Show 13 more tools
  • git_pullGit Pull

    Pull changes from a remote repository. Fetches and integrates changes into the current branch.

  • git_pushGit Push

    Push changes to a remote repository. Uploads local commits to the remote branch.

  • git_rebaseGit Rebase

    Rebase commits onto another branch. Reapplies commits on top of another base tip for a cleaner history.

  • git_reflogGit Reflogread-only

    View the reference logs (reflog) to track when branch tips and other references were updated. Useful for recovering lost commits.

  • git_remoteGit Remote

    Manage remote repositories: list remotes, add new remotes, remove remotes, rename remotes, or get/set remote URLs.

  • git_resetGit Reset

    Reset 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 Directory

    Set 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-only

    Show details of a git object (commit, tree, blob, or tag). Displays commit information and the diff of changes introduced.

  • git_stashGit Stash

    Manage stashes: list stashes, save current changes (push), restore changes (pop/apply), or remove stashes (drop/clear).

  • git_statusGit Statusread-only

    Show the working tree status including staged, unstaged, and untracked files.

  • git_tagGit Tag

    Manage 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 Worktree

    Manage 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-only

    Returns 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
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from cyanheads

Cite this page

Git MCP Server. Agent Mart. https://agentmart.dev/connectors/cyanheads-git-mcp-server (last updated 2026-10-24)