git-mcp
@wricardo
关于 git-mcp
MCP server to interact with a git repository
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
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
FAQ from git-mcp
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.
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"}).
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).
Can I limit the number of commits displayed?
Yes, the git-log and git-file-history tools accept an optional limit parameter (default 10).
版本控制 分类下的更多 MCP 服务器

Github
modelcontextprotocolModel Context Protocol Servers
MCP Atlassian Server (by phuc-nt)
phuc-ntMCP server connecting AI assistants with Jira & Confluence for smart project management.
GitHub Actions 工作流使用说明
HenryHaosonYuque mcp server
GitLab MCP Server
yoda-digitalProduction-grade GitLab MCP server with 86 tools — full GitLab control from any AI agent (Claude, Cursor, Zed).
🚀 GitLab MR MCP
kopfrechnerInteract seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
评论