Stay Updated
Subscribe to our newsletter for the latest news and updates about MCP servers
Subscribe to our newsletter for the latest news and updates about MCP servers
MCP Server for Git repository interaction, offering core Git commands and workflow automation
Git MCP Server provides a standardized interface for Large Language Models to interact with Git repositories. Part of the official Model Context Protocol server collection, it enables reading, searching, and manipulating Git repositories through a secure and extensible architecture. Currently in early development stage, this server's functionality continues to expand as the project matures, making repository workflows more accessible to AI systems.
git_status
: Shows working tree statusgit_diff_unstaged
: Displays unstaged changes in the working directorygit_diff_staged
: Shows changes staged for commitgit_diff
: Compares differences between branches or commitsgit_commit
: Records changes to the repository with messagegit_add
: Stages file contents for the next commitgit_reset
: Unstages all staged changesgit_log
: Shows commit history with configurable display limitsgit_create_branch
: Creates new branches with optional starting pointsgit_checkout
: Switches between branchesgit_show
: Displays contents of specified commitsgit_init
: Initializes new Git repositories3/5 - Moderate. Requires configuration of environment and repository paths, but offers multiple installation methods.
Add to your Claude Desktop configuration:
"mcpServers": {
"git": {
"command": "uvx",
"args": ["mcp-server-git", "--repository", "path/to/git/repo"]
}
}
Add to your Claude Desktop configuration:
"mcpServers": {
"git": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--mount",
"type=bind,src=/Users/username,dst=/Users/username",
"mcp/git"
]
}
}
pip install mcp-server-git
"mcpServers": {
"git": {
"command": "python",
"args": ["-m", "mcp_server_git", "--repository", "path/to/git/repo"]
}
}
MIT License
https://github.com/modelcontextprotocol/servers/tree/main/src/git