mcp-server-git: A git MCP server

mcp-server-git: A git MCP server

3.8

If you are the rightful owner of mcp-server-git: A 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 server for Git repository interaction and automation.

mcp-server-git is a Model Context Protocol server designed to facilitate interaction and automation with Git repositories using Large Language Models. It provides a suite of tools to read, search, and manipulate Git repositories, making it easier for developers to manage their codebases. The server is currently in early development, and its functionality is expected to evolve as it matures. Users can perform various Git operations such as checking the status of the working directory, viewing diffs, committing changes, and managing branches. The server can be installed using different methods, including uv, pip, and Docker, and is compatible with platforms like Claude Desktop, VS Code, and Zed. Debugging and development support are also available, making it a versatile tool for developers looking to integrate Git operations into their workflows.

Features

  • Provides tools to interact with Git repositories using LLMs.
  • Supports operations like git status, diff, commit, and branch management.
  • Compatible with platforms like Claude Desktop, VS Code, and Zed.
  • Offers multiple installation methods including uv, pip, and Docker.
  • Includes debugging and development support for ease of use.

Tools

  1. git_status

    Shows the working tree status

  2. git_diff_unstaged

    Shows changes in working directory not yet staged

  3. git_diff_staged

    Shows changes that are staged for commit

  4. git_diff

    Shows differences between branches or commits

  5. git_commit

    Records changes to the repository

  6. git_add

    Adds file contents to the staging area

  7. git_reset

    Unstages all staged changes

  8. git_log

    Shows the commit logs

  9. git_create_branch

    Creates a new branch

  10. git_checkout

    Switches branches

  11. git_show

    Shows the contents of a commit

  12. git_init

    Initializes a Git repository