Git
Official
Tools to read, search, and manipulate Git repositories
About Git MCP Server
Git is an MCP server in the Development category. It exposes tools, resources to connected AI applications, enabling them to interact with git capabilities through the standardized Model Context Protocol.
Features
Tools
Resources
Category
Development
Getting Started
To use the Git MCP server in your AI application, follow these steps:
- Install the MCP client SDK for your platform
- Connect to the Git MCP server
- Authenticate with your Git credentials
- Start using the tools, resources, and prompts provided by the server
Example Code
// Connect to the Git MCP server
const server = await mcp.connect("git");
// List available tools
const tools = await server.tools.list();
// List available resources
const resources = await server.resources.list();
// List available prompts
const prompts = await server.prompts.list();
Installation
npm
npm install @mcp/server-gitpip
pip install mcp-server-gitCompatible With
Claude Desktop
Cursor
Windsurf
Zed
Any MCP-compatible client