git-mcp-server

git-mcp-server

3.2

If you are the rightful owner of git-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server that provides tools for interacting with Git repositories.

The GIT MCP Server is a robust Model Context Protocol server designed to facilitate interaction with Git repositories. It allows AI assistants and LLM agents to manage repositories, branches, commits, and files through a standardized interface, eliminating the need for direct filesystem or command-line access. The server exposes Git operations as MCP resources and tools, ensuring secure and efficient management of Git repositories. Key capabilities include repository management, branch operations, working directory management, remote operations, and advanced Git commands. The architecture is built around core components such as the MCP Server, Git Service, Resources, Tools, and Error Handling, providing a comprehensive solution for Git operations.

Features

  • Resource Access: Expose Git repository information through MCP resources, including repository information, branches, remotes, tags, file content, directory listing, diffs, commit history, file blame, and commit details.
  • Git Operations: Execute Git commands through MCP tools, including repository operations, branch operations, working directory operations, remote operations, and advanced operations.

Tools

  1. Repository Operations

    Tools for initializing, cloning, and checking the status of repositories.

  2. Branch Operations

    Tools for creating, listing, checking out, deleting, and merging branches.

  3. Working Directory Operations

    Tools for staging files, committing changes, and creating diffs.

  4. Remote Operations

    Tools for adding remotes, fetching, pulling, and pushing changes.

  5. Advanced Operations

    Tools for managing tags, stashing changes, cherry-picking, and rebasing.