
A Model Context Protocol server for Git repository interaction and automation. This server provides
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.
·
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.
Source: https://github.com/modelcontextprotocol/servers/tree/main/src/git
Requires MCP Python SDK 1.x (mcp>=1.29.0,<2). SDK 2.0 renamed APIs this server uses. The port to v2 is in progress.
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.
git_status
repo_path (string): Path to Git repositorygit_diff_unstaged
repo_path (string): Path to Git repositorycontext_lines (number, optional): Number of context lines to show (default: 3)git_diff_staged
repo_path (string): Path to Git repositorycontext_lines (number, optional): Number of context lines to show (default: 3)git_diff
repo_path (string): Path to Git repositorytarget (string): Target branch or commit to compare withcontext_lines (number, optional): Number of context lines to show (default: 3)git_commit
repo_path (string): Path to Git repositorymessage (string): Commit messagegit_add
repo_path (string): Path to Git repositoryfiles (string[]): Array of file paths to stagegit_reset
repo_path (string): Path to Git repositorygit_log
repo_path (string): Path to Git repositorymax_count (number, optional): Maximum number of commits to show (default: 10)start_timestamp (string, optional): Start timestamp for filtering commits. Accepts ISO 8601 format (e.g., '2024-01-15T14:30:25'), relative dates (e.g., '2 weeks ago', 'yesterday'), or absolute dates (e.g., '2024-01-15', 'Jan 15 2024')end_timestamp (string, optional): End timestamp for filtering commits. Accepts ISO 8601 format (e.g., '2024-01-15T14:30:25'), relative dates (e.g., '2 weeks ago', 'yesterday'), or absolute dates (e.g., '2024-01-15', 'Jan 15 2024')git_create_branch
repo_path (string): Path to Git repositorybranch_name (string): Name of the new branchbase_branch (string, optional): Base branch to create from (defaults to current branch)git_checkout
repo_path (string): Path to Git repositorybranch_name (string): Name of branch to checkoutgit_showrepo_path (string): Path to Git repositoryrevision (string): The revision (commit hash, branch name, tag) to showgit_branchrepo_path (string): Path to the Git repository.branch_type (string): Whether to list local branches ('local'), remote branches ('remote') or all branches('all').contains (string, optional): The commit sha that branch should contain. Do not pass anything to this param if no commit sha is specifiednot_contains (string, optional): The commit sha that branch should NOT contain. Do not pass anything to this param if no commit sha is specifiedWhen using uv no specific installation is needed. We will
use uvx to directly run mcp-server-git.
Alternatively you can install mcp-server-git via pip:
pip install mcp-server-gitAfter installation, you can run it as a script using:
python -m mcp_server_gitAdd this to your claude_desktop_config.json:
"mcpServers": {
"git": {
"command": "uvx",
"args": ["mcp-server-git", "--repository", "path/to/git/repo"]
}
}"mcpServers": {
"git": {
"command": "docker",
"args": ["run", "--rm", "-i", "--mount", "type=bind,src=/Users/username,dst=/Users/username", "mcp/git"]
}
}"mcpServers": {
"git": {
"command": "python",
"args": ["-m", "mcp_server_git", "--repository", "path/to/git/repo"]
}
}For quick installation, use one of the one-click install buttons below...
For manual installation, you can configure the MCP server using one of these methods:
Method 1: User Configuration (Recommended)
Add the configuration to your user-level MCP configuration file. Open the Command Palette (Ctrl + Shift + P) and run MCP: Open User Configuration. This will open your user mcp.json file where you can add the server configuration.
Method 2: Workspace Configuration
Alternatively, you can add the configuration to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.
For more details about MCP configuration in VS Code, see the official VS Code MCP documentation.
{
"servers": {
"git": {
"command": "uvx",
"args": ["mcp-server-git"]
}
}
}For Docker installation:
{
"mcp": {
"servers": {
"git": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--mount", "type=bind,src=${workspaceFolder},dst=/workspace",
"mcp/git"
]
}
}
}
}Add to your Zed settings.json:
"context_servers": [
"mcp-server-git": {
"command": {
"path": "uvx",
"args": ["mcp-server-git"]
}
}
],"context_servers": {
"mcp-server-git": {
"command": {
"path": "python",
"args": ["-m", "mcp_server_git"]
}
}
},Agent ToolsAdd Custom MCPInstall button{
"command": "uvx",
"args": ["mcp-server-git", "--repository", "path/to/git/repo"]
}You can use the MCP inspector to debug the server. For uvx installations:
npx @modelcontextprotocol/inspector uvx mcp-server-gitOr 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-gitRunning tail -n 20 -f ~/Library/Logs/Claude/mcp*.log will show the logs from the server and may
help you debug any issues.
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:
{
"mcpServers": {
"git": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--mount", "type=bind,src=/Users/username/Desktop,dst=/projects/Desktop",
"--mount", "type=bind,src=/path/to/other/allowed/dir,dst=/projects/other/allowed/dir,ro",
"--mount", "type=bind,src=/path/to/file.txt,dst=/projects/path/to/file.txt",
"mcp/git"
]
}
}
}{
"mcpServers": {
"git": {
"command": "uv",
"args": [
"--directory",
"/<path to mcp-servers>/mcp-servers/src/git",
"run",
"mcp-server-git"
]
}
}
}Docker build:
cd src/git
docker build -t mcp/git .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.
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add git -- uvx mcp-server-git{
"mcpServers": {
"git": {
"args": [
"mcp-server-git"
],
"command": "uvx"
}
}
}code --add-mcp '{"name":"git","args":["mcp-server-git"],"command":"uvx"}'[mcp_servers.git]
command = "uvx"
args = ["mcp-server-git"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/git-mcp-server to learn what the "Git MCP Server" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
npx @modelcontextprotocol/inspector uvx mcp-server-git
npx @modelcontextprotocol/inspector uv run mcp-server-gitThis server runs locally, so we can't read its tool list over the web yet.
Evidence-first AI URL intelligence agent for crawling, entity resolution, social discovery, SEO, tec
MCP server for FetchSandbox. Turn any OpenAPI spec into a stateful, schema-validated sandbox your
2026.8.31Release 2026.8.31Release notes2026.8.18Release 2026.8.18Release notes2026.7.10Release 2026.7.10Release notes2026.7.4Release 2026.7.4Release notes2026.1.26Release 2026.1.26Release notes2026.1.14Release 2026.1.14Release notes2025.12.18Release 2025.12.18Release notes2025.11.25Release 2025.11.25Release notes2025.9.25Release 2025.9.25Release notes2025.8.4Release 2025.8.4Release notes2025.7.1Release 2025.7.1Release notes2025.4.24Release 2025.4.24Release notes2025.4.6Release 2025.4.6Release notes2025.1.17Release 2025.1.17Release notes2025.1.14Release 2025.1.14Release notestypescript-servers-0.6.2Release notespython-servers-0.6.2Release notestypescript-servers-0.6.1Release notestypescript-servers-0.6.0Release notespython-servers-0.6.1Release notesConnect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "git-mcp-server" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
Evidence-first AI URL intelligence agent for crawling, entity resolution, social discovery, SEO, tec
Browser & Scraping
MCP server for FetchSandbox. Turn any OpenAPI spec into a stateful, schema-validated sandbox your
Developer Tools
One email a week. New agents, MCP servers and skills, and what is actually getting traction.