MCP GITHUB ENTERPRISE π
@vipink1203
A powerful Model Context Protocol (MCP) server for GitHub Enterprise that enables AI agents to access and manage enterprise users, organizations, and licenses.
Overview
What is MCP GITHUB ENTERPRISE π?
A Model Context Protocol (MCP) server that lets AI agents query your GitHub Enterprise license data. It fetches license summaries, per-user details, org memberships, and enterprise roles via the /consumed-licenses endpoint. Designed for enterprise admins and AI workflows.
How to use MCP GITHUB ENTERPRISE π?
Requires Python 3.9+, a GitHub PAT with read:enterprise / license scopes, and a GitHub Enterprise Cloud tenant. Clone the repo, install dependencies, set GITHUB_TOKEN and GITHUB_ENTERPRISE_URL in a .env file, then run with TRANSPORT=stdio or TRANSPORT=sse PORT=8050. Also available as a Docker image for n8n or Kubernetes deployment.
Key features of MCP GITHUB ENTERPRISE π
- License analytics: total vs. consumed seats
- User lookup: org memberships, roles, 2FA status, SAML ID
- Automatic pagination for large enterprises
- Dual transports: stdio and SSE
- Kubernetes-ready (EKS/GKE compatible)
- MCP tools:
list_consumed_licenses,get_user_organizations,get_user_enterprise_roles,get_user_detail
Use cases of MCP GITHUB ENTERPRISE π
- Automate enterprise user onboarding and offboarding
- Monitor license usage and receive near-expiry alerts
- Analyze organization structures and relationships
- Audit user permissions and access levels
- Let AI analyze enterprise GitHub data interactively
FAQ from MCP GITHUB ENTERPRISE π
What data does this server access?
It accesses GitHub Enterprise license data via the /consumed-licenses endpoint, including license summaries, user details, org memberships, and enterprise roles.
What transports are available?
Two transports: stdio (for direct MCP client integration like Claude Desktop) and SSE (for HTTP-based access, e.g., with n8n).
What are the prerequisites?
Python 3.9+, a GitHub Personal Access Token with read:enterprise and license scopes, and a GitHub Enterprise Cloud tenant.
How do I secure my GitHub token?
Store your token in environment variables (.env), use limited scopes, and consider AWS Secrets Manager or similar for production deployments.
Does it handle large enterprises?
Yes, pagination is built-in to automatically handle enterprises with many users.