LogoSTMCP
Download
git-mcp-go

Git MCP Server (Go)

A Model Context Protocol (MCP) server for Git repository interaction and automation, written in Go. Provides tools to read, search, and manipulate Git repositories via Large Language Models with multi-repository support.

Tools

1. git_status

Shows the working tree status.

2. git_diff_unstaged

Shows changes in the working directory that are 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 from an optional base branch.

10. git_checkout

Switches branches.

11. git_show

Shows the contents of a commit.

12. git_init

Initialize a new Git repository.

13. git_push

Pushes local commits to a remote repository (requires --write-access flag).

14. git_list_repositories

Lists all available Git repositories.

Open Graph image for Git MCP Server (Go)

JSON Config

{
  "mcpServers": {
    "git": {
      "command": "/path/to/git-mcp-go",
      "args": ["serve", "-r=/path/to/repo1,/path/to/repo2", "--mode", "shell"]
    }
  }
}

Useful Links

Information

  • Author@geropl
  • Published date2025/09/21