Connects Claude to local Git repos via GitPython and the GitHub API through PyGithub. You get repo status, diffs, blame, branch management, and stash operations locally, plus PR creation, issue tracking, and Actions workflow monitoring on GitHub. Ships with path traversal protection, symlink escape detection, and token scrubbing in error messages. Rate limit handling is built in so you won't hit cryptic 403s. Useful when you want Claude to review diffs, check CI status, or draft PRs without leaving the conversation. Requires a GitHub token for remote operations but local Git tools work standalone.
Mooring lines for your code — Git and GitHub operations for AI tools.
Mooring is an MCP server that gives AI assistants structured access to local Git repositories and the GitHub API. Local operations use GitPython (no subprocess calls). GitHub operations use the PyGithub library with token masking and rate limit handling built in.
| Tool | Description | Key Parameters |
|---|---|---|
repo_status | Branch, ahead/behind, stash count, staged/unstaged/untracked files | repo_path |
repo_log | Commit log with optional filters | repo_path, max_count, author, since, path, search |
repo_diff | Unified diff — working tree, staged, or between refs | repo_path, staged, from_ref, to_ref |
repo_blame | Git blame with optional line range | repo_path, file_path, start_line, end_line |
repo_branches | All branches with tracking info, last commit, ahead/behind | repo_path |
repo_stash | Stash operations: list, push, pop, apply | repo_path, action, message |
| Tool | Description | Key Parameters |
|---|---|---|
gh_pr_list | List pull requests | repo, state, author, label |
gh_pr_detail | PR detail with reviews, comments, and check runs | repo, number |
gh_pr_create | Create a pull request | repo, title, body, head, base, labels, reviewers |
gh_issues | List, create, or update issues | repo, state, action, title, body, number |
gh_actions | List recent GitHub Actions workflow runs | repo, workflow, status |
| Tool | Description | Key Parameters |
|---|---|---|
health | Server version and status check | (none) |
# PyPI
pip install mooring-mcp
# Isolated install
pipx install mooring-mcp
Run the server directly:
mooring
claude mcp add mooring -- mooring
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"mooring": {
"command": "mooring",
"env": {
"GITHUB_TOKEN": "your-github-personal-access-token"
}
}
}
}
The GITHUB_TOKEN environment variable is required for all GitHub tools (gh_*). Local Git tools work without it.
ghp_*, gho_*, github_pat_*) before being returnedgit 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
If you're running multiple MCP servers, route them through a gateway like tbxark/mcp-proxy to manage all child processes from a single persistent service. The proxy handles process lifecycle, centralized config, and crash recovery — each server still gets its own SSE endpoint but you manage everything from one config file instead of scattered Claude Code entries.
For a full walkthrough of how this works in practice, see The Hidden Cost of a Loaded MCP Stack on charlieseay.com.
ray0907/git-mcp-server
cyanheads/git-mcp-server
io.github.b1ff/atlassian-dc-mcp-bitbucket
io.github.b1ff/atlassian-dc-mcp-jira
com.mcparmory/atlassian-jira
sirlordt/vscode-terminal-mcp