git MCP serverServer

modelcontextprotocol
GitHub
GitVersion ControlDeveloper Tools

Loading subscription status...

💡 Description

A Model Context Protocol server for interacting and automating operations on Git repositories through large language models, providing tools for reading, searching, and manipulating Git repositories.

📝 JSON Entries

{
  "mcpServers": [
    {
      "git": {
        "args": [
          "mcp-server-git",
          "--repository",
          "path/to/git/repo"
        ],
        "command": "uvx"
      }
    },
    {
      "git": {
        "args": [
          "run",
          "--rm",
          "-i",
          "--mount",
          "type=bind,src=/Users/username,dst=/Users/username",
          "mcp/git"
        ],
        "command": "docker"
      }
    },
    {
      "git": {
        "args": [
          "-m",
          "mcp_server_git",
          "--repository",
          "path/to/git/repo"
        ],
        "command": "python"
      }
    }
  ]
}

🛠️ Tools

git_statusgit_diff_unstagedgit_diff_stagedgit_addgit_commitgit_resetgit_loggit_create_branchgit_checkoutgit_showgit_init

Features

  • View git status
  • Show git diffs
  • Commit changes
  • Manage branches
  • Initialize git repository

💬 Example Queries

  • Show me the current status of my git repository.
  • What are the unstaged changes in my repository?
  • Create a new branch in my git repository.