Mooring
OfficialMooring — Git & GitHub MCP 服务器
为你的代码提供系泊缆绳 — 专为 AI 工具设计的 Git 和 GitHub 操作。
Mooring 是一个 MCP 服务器,为 AI 助手提供对本地 Git 仓库和 GitHub API 的结构化访问。本地操作使用 GitPython(无子进程调用)。GitHub 操作使用 PyGithub 库,并内置了令牌屏蔽和速率限制处理。
工具
本地 Git
工具 | 描述 | 关键参数 |
| 分支、领先/落后情况、暂存数量、已暂存/未暂存/未追踪文件 |
|
| 带有可选过滤器的提交日志 |
|
| 统一差异 — 工作树、已暂存或引用之间的差异 |
|
| 带有可选行范围的 Git blame |
|
| 带有追踪信息、最后一次提交、领先/落后情况的所有分支 |
|
| 暂存操作:列表、推送、弹出、应用 |
|
GitHub
工具 | 描述 | 关键参数 |
| 列出拉取请求 |
|
| 包含审查、评论和检查运行的 PR 详情 |
|
| 创建拉取请求 |
|
| 列出、创建或更新 Issue |
|
| 列出最近的 GitHub Actions 工作流运行 |
|
实用工具
工具 | 描述 | 关键参数 |
| 服务器版本和状态检查 | (无) |
Related MCP server: Git MCP Server
安装
# PyPI
pip install mooring-mcp
# Isolated install
pipx install mooring-mcp使用方法
直接运行服务器:
mooringClaude Code
claude mcp add mooring -- mooringClaude Desktop
添加到你的 Claude Desktop 配置文件 (claude_desktop_config.json) 中:
{
"mcpServers": {
"mooring": {
"command": "mooring",
"env": {
"GITHUB_TOKEN": "your-github-personal-access-token"
}
}
}
}所有 GitHub 工具 (gh_*) 都需要 GITHUB_TOKEN 环境变量。本地 Git 工具无需此变量即可工作。
安全性
路径遍历保护 — 在进行任何操作之前,文件路径都会被解析并根据仓库根目录进行验证
符号链接逃逸检测 — 解析到仓库外部的符号链接将被拒绝
引用验证 — Git 引用会在使用前根据安全字符模式进行检查并验证其是否存在
令牌屏蔽 — 错误消息在返回前会清除 GitHub 令牌模式 (
ghp_*,gho_*,github_pat_*)速率限制处理 — GitHub 403 响应会被捕获并作为清晰的消息呈现,而不是原始异常
开发
git clone https://github.com/seayniclabs/mooring.git
cd mooring
python -m venv .venv && source .venv/bin/activate
pip install -e ".[test]"
python -m pytest tests/ -q许可证
TDQS
Clear separation between GitHub API (gh_*) and local git (repo_*) operations. While gh_issues combines list/create/update into one tool whereas PR operations are split into separate tools, the descriptions clearly distinguish their purposes with no overlapping functionality between different tools.
Uses consistent prefixes (gh_ and repo_) but mixes naming patterns: gh_issues and gh_actions use nouns while PR tools use verb_noun (gh_pr_create, gh_pr_list). Local git tools follow git command names (mostly nouns) but lack verb consistency with the GitHub action-oriented names.
Twelve tools is well-scoped for a server bridging GitHub API and local git operations. The count covers essential inspection and management tasks without bloat, with each tool earning its place in the set.
Strong read-only coverage (status, log, diff, blame, list operations) but notable gaps in write operations: no PR update/merge/close, no local git commit/push/pull/checkout, and limited Actions support (list only). The surface supports inspection workflows well but leaves agents unable to complete full git/PR lifecycle operations.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Plain-English git via MCP: 22 tools to branch, commit, push, and tag. No git jargon.
GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
Manage repositories, users, releases, and automate GitHub workflows
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables code review operations on GitHub and GitLab, including fetching pull/merge requests, viewing diffs, adding comments, analyzing code quality, and creating merge requests directly from your MCP client.1584MIT
- AlicenseBqualityDmaintenanceProvides comprehensive Git functionality to MCP clients, enabling users to manage repositories through operations like commits, diffs, and branch management via natural language. It automatically detects the current working directory and supports multi-project workflows across different local environments.166072MIT

Gitrama MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceProvides 15 MCP tools for AI-powered Git intelligence, enabling commit messages, branch creation, PR descriptions, code review, diff analysis, and push operations directly from your AI assistant.MIT- AlicenseNot gradedqualityFmaintenanceProvides comprehensive git tooling via MCP, including status, diffs, commits, branches, stashes, and multi-root inventory, enabling AI agents to manage repositories.40MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/seayniclabs/mooring'
If you have feedback or need assistance with the MCP directory API, please join our Discord server