A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs
Project description
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.
Available Tools
The current list of tools includes:
git_status
: Shows the working tree statusgit_diff_unstaged
: Shows changes in the working directory that are not yet stagedgit_diff_staged
: Shows changes that are staged for commitgit_commit
: Records changes to the repositorygit_add
: Adds file contents to the staging areagit_reset
: Unstages all staged changesgit_log
: Shows the commit logs
This list is expected to grow as we add more functionality to the server. We welcome contributions from the community to expand and enhance the available tools.
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:
pip install mcp-server-git
After installation, you can run it as a script using:
python -m mcp_server_git
Configuration
Configure for Claude.app
Add to your Claude settings:
Using uvx
"mcpServers": {
"git": {
"command": "uvx",
"args": ["mcp-server-git", "--repository", "path/to/git/repo"]
}
}
Using pip installation
"mcpServers": {
"git": {
"command": "python",
"args": ["-m", "mcp_server_git", "--repository", "path/to/git/repo"]
}
}
Configure for Zed
Add to your Zed settings.json:
Using uvx
"context_servers": [
"mcp-server-git": {
"command": "uvx",
"args": ["mcp-server-git"]
}
],
Using pip installation
"context_servers": {
"mcp-server-git": {
"command": "python",
"args": ["-m", "mcp_server_git"]
}
},
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
npx @modelcontextprotocol/inspector uvx mcp-server-git
Or if you've installed the package in a specific directory or are developing on it:
cd path/to/servers/src/git
npx @modelcontextprotocol/inspector uv run mcp-server-git
Contributing
We encourage contributions to help expand and improve mcp-server-git. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.
For examples of other MCP servers and implementation patterns, see: https://github.com/modelcontextprotocol/servers
Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-git even more powerful and useful.
License
mcp-server-git 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mcp_server_git-0.4.0.tar.gz
.
File metadata
- Download URL: mcp_server_git-0.4.0.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e629a44af85194ed829544dbcd86c1db919edeaac1aeaaecbe92b44fc731789 |
|
MD5 | a45e1d70b16164f24a3d7f780b630ac7 |
|
BLAKE2b-256 | e53e95c3cb8c74af3e6df0fa8d56c3973dabce9fdbb904b1a825466870faf3c1 |
Provenance
The following attestation bundles were made for mcp_server_git-0.4.0.tar.gz
:
Publisher:
python.yml
on modelcontextprotocol/servers
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mcp_server_git-0.4.0.tar.gz
- Subject digest:
7e629a44af85194ed829544dbcd86c1db919edeaac1aeaaecbe92b44fc731789
- Sigstore transparency entry: 150642193
- Sigstore integration time:
- Predicate type:
File details
Details for the file mcp_server_git-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: mcp_server_git-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e26544ee179c1531651eed9a933e0c2d1c782e67274d6c892830295ee7d27b87 |
|
MD5 | 6baa24a0ee24b57f84dbf27d7a71231b |
|
BLAKE2b-256 | 8a757ebde1e7e0e65661f0095d1cf60315d900f17b1d24524dc6bd4c395aa6e4 |
Provenance
The following attestation bundles were made for mcp_server_git-0.4.0-py3-none-any.whl
:
Publisher:
python.yml
on modelcontextprotocol/servers
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mcp_server_git-0.4.0-py3-none-any.whl
- Subject digest:
e26544ee179c1531651eed9a933e0c2d1c782e67274d6c892830295ee7d27b87
- Sigstore transparency entry: 150642194
- Sigstore integration time:
- Predicate type: