MCP.so
登录

Git Command MCP Server

@ukiuni

关于 Git Command MCP Server

mcp server for git command wrapper

基本信息

分类

版本控制

许可证

MIT license

运行时

node

传输方式

stdio

发布者

ukiuni

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mpc-git": {
      "command": "node",
      "args": [
        "/path_to_mcp-git/mcp-git/dist/index.js"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Git Command MCP Server?

It is an MCP server that provides tools for executing various Git commands. It requires a local installation of Git (git or git.exe) and is designed for use with MCP clients like Roo Code or Claude Desktop.

How to use Git Command MCP Server?

Install via npm i mcp-git or clone the repository, then run npm install. Configure your MCP client with the command node and an argument pointing to the absolute path of dist/index.js. Tools are invoked using a git- prefix (e.g., git-status, git-commit).

Key features of Git Command MCP Server

  • Executes Git commands through the Model Context Protocol.
  • Tools follow a consistent git- naming convention.
  • Returns STDOUT, STDERR, and server-side error messages.
  • Requires Git installed locally on the system.
  • Supports popular MCP clients like GitHub Copilot and Cursor.
  • Open source under the MIT License.

Use cases of Git Command MCP Server

  • Automate Git operations via AI assistants (e.g., committing, adding files).
  • Integrate version control commands directly into MCP‑powered workflows.
  • Run Git status, logs, or diffs without leaving the chat interface.
  • Enable AI agents to manage repositories programmatically.

FAQ from Git Command MCP Server

What Git commands are supported?

The server provides tools for many common Git commands, each named with a git- prefix (e.g., git-add, git-commit, git-status). The exact list is not exhaustive in the README but covers standard operations.

What are the runtime requirements?

You need Node.js, npm, and a local Git installation (git or git.exe).

Where can I report issues or get help?

Visit the GitHub repository at http://github.com/ukiuni/mcp-git to open issues or discuss.

How do I connect this server from an MCP client?

Use the JSON configuration:

{
  "mcpServers": {
    "mpc-git": {
      "command": "node",
      "args": ["/path_to_mcp-git/mcp-git/dist/index.js"]
    }
  }
}

How is the tool output structured?

Results are returned as text content containing STDOUT, STDERR, or ERROR sections. If the command succeeds with no output, a success message is provided instead.

评论

版本控制 分类下的更多 MCP 服务器