Basic information

Runtime
go
Category
License
Not specified
Transports
stdio
Author
wricardo
Submitted by
Community
Quality
20

About git-mcp Server

MCP server to interact with a git repository

git-mcp is a MCP server in the Version Control category listed in the AddMCP.net directory, published by wricardo. Supported transport: stdio. Runtime: go. Source code is hosted on github.com.

git-mcp config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

git-mcp tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is git-mcp?

git-mcp is a Model Context Protocol (MCP) server that interacts with Git repositories. It provides tools for executing Git operations, viewing commit history, tracking file changes, and examining file differences. It is designed for developers and AI assistants that need programmatic access to Git repository data.

How to use git-mcp?

Install the package with go install github.com/wricardo/git-mcp@latest. Then configure your MCP client settings with a WORKDIR environment variable pointing to a local Git repository. Finally, run git-mcp to start the server. The server exposes four tools: git-log, git-changed-files, git-file-diff, and git-file-history.

Key features of git-mcp

  • Execute Git operations through MCP tools
  • View commit history with hash, author, date, message
  • List files changed between commits
  • Show detailed file differences between commits
  • Track commit history for a specific file

Use cases of git-mcp

  • Exploring a Git repository’s commit history
  • Reviewing file changes between recent commits
  • Inspecting detailed diffs of a specific file
  • Tracking changes to a file over time
  • Enabling AI assistants to query Git data

Frequently asked questions

1 What are the system requirements for git-mcp?

Go 1.23.0 or later and Git must be installed on your system. You also need access to a Git repository.

2 How do I configure git-mcp?

Set the WORKDIR environment variable to the absolute path of your Git repository in your MCP client settings (e.g., "env": {"WORKDIR": "/path/to/repo"}).

3 What tools does git-mcp provide?

git-mcp provides four tools: git-log (commit history), git-changed-files (files changed between HEAD and a given number of commits back), git-file-diff (detailed file differences between commits), and git-file-history (commit history for a specific file).

4 Can I limit the number of commits displayed?

Yes, the git-log and git-file-history tools accept an optional limit parameter (default 10).

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬