- Home
- MCP servers
- MCP Git
MCP Git
- javascript
0
GitHub Stars
javascript
Language
5 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"mikeybeez-mcp-git": {
"command": "node",
"args": [
"/Users/bard/Code/mcp-git/src/index.js"
]
}
}
}This MCP server enables Claude to perform Git version control operations directly through the Model Context Protocol, giving you convenient in-app access to status, diffs, staging, commits, branches, history, pushes, pulls, cloning, and repository initialization.
How to use
You interact with the MCP Git server through your MCP client to manage Git repositories from Claude. Use the available tools to check status, view changes, stage files, commit updates, manage branches, inspect history, and synchronize with remotes. The server exposes a straightforward set of commands that mirror common Git workflows, making it easy to perform routine source control tasks without leaving Claude.
How to install
Prerequisites you need before installation are Node.js 18+ and Git installed and configured on your machine.
Step 1: Install the MCP server dependencies and prepare the runtime environment.
cd /Users/bard/Code/mcp-git
npm install
Step 2: Add the MCP server to Claude Desktop configuration so Claude can launch the server when needed.
{
"mcpServers": {
"git": {
"command": "node",
"args": ["/Users/bard/Code/mcp-git/src/index.js"]
}
}
}
Step 3: Restart Claude Desktop to apply the new server configuration.
Additional setup and notes
The MCP Git server exposes a set of filesystem and Git operations that you can invoke from your MCP client. You will typically use it to initialize repositories, clone from remotes, check status, view diffs, stage changes, commit with messages, manage branches, push to and pull from remotes, and inspect commit history.
Available tools
git_status
Show repository status including working tree state and changes to tracked files.
git_diff
Show differences between working tree and index or between commits, with options for staged or unstaged changes.
git_add
Stage specified files or all changes to prepare for commit.
git_commit
Create a new commit with a message to record changes in the local repository.
git_branch
List, create, switch, and delete branches in the repository.
git_log
View commit history with options for detail level and line format.
git_push
Push commits from your local branches to remote repositories.
git_pull
Fetch and integrate changes from remote repositories into your local branch.
git_clone
Clone a remote repository into a new local directory.
git_init
Initialize a new Git repository or create a bare repository.