Interact with local Git repositories for version control tasks.
Created byApr 22, 2025
mcp-server-git: A git MCP server
Overview
A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.
Please note that mcp-server-git is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.
Tools
git_status
git_diff_unstaged
git_diff_staged
git_diff
git_commit
git_add
git_reset
git_log
git_create_branch
git_checkout
Switches branches
Inputs:
Returns: Confirmation of branch switch
git_show
Shows the contents of a commit
Inputs:
Returns: Contents of the specified commit
git_init
Initializes a Git repository
Inputs:
Returns: Confirmation of repository initialization
Installation
Using uv (recommended)
When using `uv` no specific installation is needed. We will
use `uvx` to directly run mcp-server-git.
Using PIP
Alternatively you can install mcp-server-git via pip:
After installation, you can run it as a script using:
Configuration
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
Note: replace '/Users/username' with the a path that you want to be accessible by this tool
Usage with [Zed](https://github.com/zed-industries/zed)
Add to your Zed settings.json:
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
Or if you've installed the package in a specific directory or are developing on it:
Running tail -n 20 -f ~/Library/Logs/Claude/mcp*.log will show the logs from the server and may
help you debug any issues.
Development
If you are doing local development, there are two ways to test your changes:
Run the MCP inspector to test your changes. See Debugging for run instructions.
Test using the Claude desktop app. Add the following to your claude_desktop_config.json:
Docker
UVX
Build
Docker build:
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
mcp-server-git: A git MCP server
Overview
A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.
Please note that mcp-server-git is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.
Tools
git_status
git_diff_unstaged
git_diff_staged
git_diff
git_commit
git_add
git_reset
git_log
git_create_branch
git_checkout
Switches branches
Inputs:
Returns: Confirmation of branch switch
git_show
Shows the contents of a commit
Inputs:
Returns: Contents of the specified commit
git_init
Initializes a Git repository
Inputs:
Returns: Confirmation of repository initialization
Installation
Using uv (recommended)
When using `uv` no specific installation is needed. We will
use `uvx` to directly run mcp-server-git.
Using PIP
Alternatively you can install mcp-server-git via pip:
After installation, you can run it as a script using:
Configuration
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
Note: replace '/Users/username' with the a path that you want to be accessible by this tool
Usage with [Zed](https://github.com/zed-industries/zed)
Add to your Zed settings.json:
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
Or if you've installed the package in a specific directory or are developing on it:
Running tail -n 20 -f ~/Library/Logs/Claude/mcp*.log will show the logs from the server and may
help you debug any issues.
Development
If you are doing local development, there are two ways to test your changes:
Run the MCP inspector to test your changes. See Debugging for run instructions.
Test using the Claude desktop app. Add the following to your claude_desktop_config.json:
Docker
UVX
Build
Docker build:
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.