ghe-mcp-gateway
Enables natural language admin tasks for GitHub Enterprise Cloud, like listing private repos, access reviews, and secret scanning, with read-only safety by default.
README
ghe-mcp-gateway
An MCP (Model Context Protocol) server that exposes GitHub Enterprise administration operations as agent tools. Point Claude (Code or Desktop) at it and ask things like "list private repos in the org with no recent pushes" or "who has admin on payments-api?" - the model calls the GitHub API through typed, permissioned tools instead of raw curl.
Built as a working reference for GitHub Enterprise Cloud administration: repository management, access governance, audit-log review, webhook management, and secret-scanning triage.
Why
Admin work is repetitive API calls (access reviews, alert triage, config audits). Wrapping the GitHub REST/GraphQL API as MCP tools lets an agent do the legwork while keeping a human in the loop - and keeps writes behind an explicit safety switch.
Tools (21)
| Category | Tools |
|---|---|
| Repository admin | list_repositories, get_repository |
| Access & teams | list_organization_members, list_teams, list_team_members, list_repo_collaborators, get_repo_permission, list_team_repos, set_repo_collaborator_permission, set_team_repo_permission |
| Branch protection | get_branch_protection, set_branch_protection*, list_org_rulesets, get_org_ruleset |
| Security (GHAS) | list_secret_scanning_alerts, list_code_scanning_alerts, list_dependabot_alerts, resolve_secret_scanning_alert* |
| Audit log | get_org_audit_log |
| Webhooks | list_org_webhooks |
| Escape hatch | graphql_query |
* write operation - blocked unless GITHUB_MCP_READ_ONLY=false.
Companion skill
.claude/skills/github-admin/SKILL.md packages these
tools into admin playbooks - access review/certification, leaked-secret response, repo
onboarding & governance, security-posture audit, and access changes. Open Claude Code in this
repo and the /github-admin skill is available; it drives the MCP tools with a read-first,
least-privilege, confirm-before-write discipline.
Setup
uv sync # create venv + install deps
cp .env.example .env # then add your GITHUB_TOKEN
Suggested token scopes (classic): repo, read:org, admin:org, read:audit_log,
admin:org_hook, security_events. For GitHub Enterprise Server, set GITHUB_API_URL to
https://<host>/api/v3.
Run
# stdio server (how MCP clients launch it)
uv run github-admin-mcp
# quick manual check with the MCP Inspector
uv run mcp dev src/github_admin_mcp/server.py
Register with Claude Code
claude mcp add github-admin -- uv run --directory /Users/mikeholzinger/src/github_mcp github-admin-mcp
(or add an entry to your client's MCP config pointing at the same command).
60-second demo
# 1. add your token (read-only by default - safe)
cp .env.example .env && $EDITOR .env # set GITHUB_TOKEN
# 2. register the server + open Claude Code in this repo
claude mcp add github-admin -- uv run --directory "$PWD" github-admin-mcp
claude
# 3. the /github-admin skill is now available. Try, in natural language:
# "Run an access review on the <org> organization"
# "Audit the security posture of <org>/<repo>"
# "Who has admin on <org>/<repo>?"
# The skill calls the MCP tools read-only and reports an auditor-ready summary.
Safety
- Read-only by default (
GITHUB_MCP_READ_ONLY=true); mutating tools refuse until you opt in. - No credentials in code - token comes from the environment.
.envis git-ignored.
Layout
src/github_admin_mcp/
client.py # async REST + GraphQL client (auth, pagination, GHES-aware, read-only guard)
server.py # FastMCP server; one @mcp.tool() per operation
docs/
GITHUB_API_REFERENCE.md # the endpoint research this server is built on
Example GitHub Actions workflows
Healthcare-oriented admin automation lives in .github/workflows/ with the logic in
scripts/ (Python + requests). All follow least-privilege permissions: and pin actions.
| Workflow | Trigger | What it does |
|---|---|---|
Access Review (access-review.yml) |
Monthly cron + manual | Certifies repo access org-wide; flags outside collaborators, admin grants, write-on-archived; emits a JSON evidence artifact (13-mo retention) and files a tracking issue. |
Secret Scanning Alerts (secret-scanning-alerts.yml) |
secret_scanning_alert event + hourly sweep |
Real-time + safety-net notification to a security Slack channel. Sends metadata only - never the secret value. |
Repository Governance (repo-governance.yml) |
Org repo-created → repository_dispatch + weekly sweep |
Enforces the branch-protection baseline (PR + 2 reviews, Code Owner, signed commits, no force-push/delete, conversation resolution, Dependabot). Dry-run by default; auto-applies to brand-new repos. |
Required CI config: secret ORG_ADMIN_TOKEN (org PAT/App), secret SECURITY_SLACK_WEBHOOK,
and variable GITHUB_ORG. The scripts honor GITHUB_API_URL for GitHub Enterprise Server.
Roadmap
- Branch-protection / rulesets tools, team-repo access management
- Secret-scanning alert resolution, code-scanning + Dependabot alerts
- Audit-log streaming config; enterprise-level endpoints
- A companion Claude skill that drives these tools for common admin playbooks
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。