cyanheads_git-mcp-server
A Model Context Protocol server that provides comprehensive Git functionality to Large Language Models, enabling them to perform version control operations through a secure and standardized interface.
The Git MCP Server implements the Model Context Protocol (MCP), created by Anthropic, which provides a standardized communication protocol between LLMs and external systems. The architecture consists of clients (such as Claude Desktop and IDEs) that maintain server connections, servers that provide tools and resources to clients, and LLMs that interact with servers through client applications. This architecture creates a secure boundary between LLMs and external systems while enabling controlled access to Git functionality. Through the MCP protocol, the Git server empowers LLMs to perform version control operations, manage repositories, and handle complex Git workflows — all within a secure and validated environment.
Features
- {'name': 'Core Git Operations', 'description': 'Repository initialization and cloning, file staging and committing, branch management, remote operations, tag handling, and stash management.'}
- {'name': 'Bulk Operations', 'description': 'Sequential operation execution, atomic commits, smart defaults, and error resilience.'}
- {'name': 'Safety Features', 'description': 'Path validation, repository state verification, embedded repository handling, and comprehensive error reporting.'}
MCP Tools
- init: Initializes a new Git repository.
- clone: Clones a repository.
- status: Gets repository status.
- bulk_action: Executes multiple Git operations in sequence.
- branch_list, branch_create, branch_delete, checkout: Manage branches and working tree.
- tag_list, tag_create, tag_delete: Manage repository tags.
- remote_list, remote_add, remote_remove: Manage remote repositories.
- stash_list, stash_save, stash_pop: Manage working directory changes.
Usage with Different Platforms
mcp
{
"mcpServers": {
"git": {
"command": "node",
"args": ["/path/to/git-mcp-server/build/index.js"],
"env": {
"GIT_DEFAULT_PATH": "/optional/default/path/for/git/operations"
}
}
}
}
Related MCP Servers
View all developer_tools servers →Sequential Thinking🏅
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
context7
by upstash
Context7 MCP provides up-to-date, version-specific documentation and code examples directly into your prompt, enhancing the capabilities of LLMs by avoiding outdated or hallucinated information.
git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Everything MCP Server
by modelcontextprotocol
The Everything MCP Server is a comprehensive test server designed to demonstrate the full capabilities of the Model Context Protocol (MCP). It is not intended for production use but serves as a valuable tool for developers building MCP clients.
exa-mcp-server
by exa-labs
A Model Context Protocol (MCP) server allows AI assistants to use the Exa AI Search API for real-time web searches in a secure manner.
repomix
by yamadashy
Repomix is a tool that packages your entire codebase into a single, AI-friendly file, making it easier to use with AI tools like LLMs.
Sequential Thinking MCP Server
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.