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
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_read_file
: Read contents of a file at a specific Git referencegit_list_files
: List all files in a repository or subdirectorygit_file_history
: Get commit history for a specific filegit_commit
: Create Git commits with messages and specified filesgit_search_code
: Search repository content with pattern matchinggit_get_diff
: View diffs between Git referencesgit_get_repo_structure
: View repository file structuregit_list_repos
: List available Git repositoriesgit_log
: Retrieve commit log for the repositorygit_list_branches
: List all branches in the repositorygit_list_tags
: List all tags in the repository
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:
"mcpServers": {
"git": {
"command": "uvx",
"args": ["mcp-server-git", "--repository", "path/to/git/repo"]
}
}
Alternatively, if 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:
"context_servers": [
"mcp-server-git": {
"command": "uvx",
"args": ["mcp-server-git"]
}
],
Alternatively, if using pip installation:
"context_servers": {
"mcp-server-git": {
"command": "python",
"args": ["-m", "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.
Project details
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.3.0.tar.gz
.
File metadata
- Download URL: mcp_server_git-0.3.0.tar.gz
- Upload date:
- Size: 20.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 | 04fc1209d039d928a0caad32b5ecac262456fa15c7fce7dba4d73c8f9f1bc650 |
|
MD5 | 0b697ad31b932dd05ae3b1dcc55b45b5 |
|
BLAKE2b-256 | 1aeaad272b1806d7e263031d72e76915a5d1d9ec885e9fea9bbad9dbc0bb59db |
Provenance
The following attestation bundles were made for mcp_server_git-0.3.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.3.0.tar.gz
- Subject digest:
04fc1209d039d928a0caad32b5ecac262456fa15c7fce7dba4d73c8f9f1bc650
- Sigstore transparency entry: 150634340
- Sigstore integration time:
- Predicate type:
File details
Details for the file mcp_server_git-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: mcp_server_git-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.8 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 | aa1bfaf292d874127c11a8aa6edaa5d2953184de39ed6868a6c15142dc48f6d4 |
|
MD5 | bc9eeeec011799a86bdca6bf7540582f |
|
BLAKE2b-256 | 11f59538ff1dd7035417397f853427bbaa42f199431efaff4c7fe45ac8b13e33 |
Provenance
The following attestation bundles were made for mcp_server_git-0.3.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.3.0-py3-none-any.whl
- Subject digest:
aa1bfaf292d874127c11a8aa6edaa5d2953184de39ed6868a6c15142dc48f6d4
- Sigstore transparency entry: 150634344
- Sigstore integration time:
- Predicate type: