Git Tools
Git status, commits, rebases, worktrees and pushes for coding agents, with guard rails
- Pricing
- Open source
- Platforms
- CLI
- Runs
- Locally
- Version
- 0.5.0
- Listing updated
- today
Similar MCP servers
About Git Tools
Git Tools is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
Git Tools gives an agent git operations grouped into five toolsets rather than one raw command line. repo covers local reads: status, history, where a change came from and conflicts, through one read tool that changes nothing and reaches no remote. commit handles staging, the checks before a commit, committing, amending and fixups. rebase covers rebasing, stacked branches rebased together and the rewrite rule. worktree creates, lists and removes worktrees, and push pushes one or more branches against the remote commit each is expected to have. The first three are on by default; worktree and push are opt-in.
It works against any git remote. Pull requests and GitHub's native stacks belong to the sister package github-tools. Where origin is on GitHub, a few safety checks also read it, authenticated as you. It needs Node.js 24 or later and git.
Each toolset has a skill that explains when to use each method. Delivery depends on the harness: a native plugin for OpenCode, a plugin with MCP server and skills for Claude Code, Codex, Grok Build and Antigravity, a Python plugin for Hermes, or the npm package for any other MCP host. A read-only flag is available.
Install
Run in a terminal
claude mcp add git-tools -- npx -y @craftsamo/git-toolsAdd to claude_desktop_config.json
{
"mcpServers": {
"git-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/git-tools"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"git-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/git-tools"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"git-tools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@craftsamo/git-tools"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"git-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/git-tools"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"git-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/git-tools"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
What it does
- Five toolsets
- repo, commit, rebase, worktree and push, with the first three on by default.
- Read-only repo tool
- One method-based tool reads status, history, origin of a change and conflicts.
- Stacked rebases
- Rebase stacked branches together under a rewrite rule.
- Expected-commit pushes
- Push each branch against the remote commit it is expected to have.
- Worktree support
- Create, list and remove worktrees.
- Skills included
- Each toolset has a skill describing when to use each method.
Good for
- Let an agent stage and commit with checks run first
- Rebase a stack of branches in one step
- Find where a change came from and resolve conflicts
- Push several branches safely
- Manage worktrees for parallel tasks
Pricing
Open source
Free npm package.
More servers for the same service
Git Tools FAQ
Which toolsets are on by default?
repo, commit and rebase; worktree and push are opt-in.
Does it handle pull requests?
No. Pull requests and native stacks on GitHub are in the sister package github-tools.
What does it need?
Node.js 24 or later and git.
Does it work with non-GitHub remotes?
Yes, it works against any git remote.
Is Git Tools free?
Yes. Git Tools is open source, so you can use and self-host it for free.
How do I add Git Tools to Claude Code?
Run this command in your terminal: claude mcp add git-tools -- npx -y @craftsamo/git-tools
What are the best alternatives to Git Tools?
The closest alternatives to Git Tools are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


