MCP Configs2026年4月8日·1 分钟阅读

Git MCP — Version Control Server for AI Agents

MCP server that gives AI agents full Git capabilities. Git MCP enables Claude Code and Cursor to manage repositories, branches, commits, diffs, and history via tool calls.

What is Git MCP?

An MCP server providing structured Git access for AI agents. Typed tools replace raw shell commands, with structured output that's easier to reason about.

TL;DR: Git MCP server. AI agents operate log/diff/status/branch/commit/blame via tool calls. Structured output. Part of the official MCP servers collection.

Best for: AI agent users who need structured Git access.

Core Tools

  1. git_status — Working tree status
  2. git_log — Commit history
  3. git_diff — Change comparison
  4. git_branch — Branch management
  5. git_commit — Create commits
  6. git_blame — Line-level attribution

FAQ

Q: Read-only by default? A: No — it supports read/write. Use --read-only to restrict.

🙏

来源与感谢

modelcontextprotocol/servers — Official MCP servers

讨论

登录后参与讨论。
还没有评论,来写第一条吧。