Share:
About
Official reference MCP server from Anthropic that lets an LLM inspect and operate on local Git repositories — reading commit history, searching content, and staging changes. Runs locally via `uvx mcp-server-git`.
Example tools
Illustrative tool names — the actual tool set is defined by the server at runtime.
list_resources
Enumerate resources exposed by this MCP
get_resource
Fetch a resource by ID
invoke
Invoke the primary action of this MCP
Screenshots
No screenshots yet.
Frequently Asked Questions
Common questions about Git.
- What is the purpose of the Git MCP server?
- The Git MCP server enables Language Model Models (LLMs) to interact with local Git repositories. It allows LLMs to read commit histories, search repository content, and stage changes, facilitating automated version control operations.
- How do I install the Git MCP server?
- You can install the Git MCP server by running uvx mcp-server-git locally. This command initializes and starts the server, making it available for use by an MCP client.
- Does the Git MCP server require any authentication or API keys?
- No, the Git MCP server does not require an API key, OAuth, or any other authentication credentials. It is designed for local operation with no authentication layer.
- What are the core capabilities of the Git MCP server?
- The core capabilities include inspecting Git repository commit history, searching content within a repository, and performing actions like staging changes. It provides an interface for LLMs to manage local Git workflows.
- Can the Git MCP server interact with remote Git repositories?
- The Git MCP server is designed to operate on local Git repositories. While it can interact with parts of a local clone, it does not directly support operations on remote repositories; those operations would still require Git to fetch or push.
- What are the licensing costs associated with using the Git MCP server?
- The Git MCP server is an official reference implementation. Its usage is typically governed by the open-source license under which the repository is made available, meaning there are no direct licensing costs for the server itself.
Install Git
Claude Desktop
Add this to claude_desktop_config.json.
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git"
]
}
}
}Cursor
Add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git"
]
}
}
}VS Code
Add this to your workspace settings.json.
{
"mcp.servers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git"
]
}
}
}Reviews
Sign in to leave a review.
No reviews yet. Be the first!
Discussion(0)
No comments yet.