Query GitHub Enterprise license data, including summaries, per-user details, organization memberships, and enterprise roles.
A Model Context Protocol (MCP) server that lets AI agents (Claude, ChatGPT, etc.) query your GitHub Enterprise license data. Securely fetch license summaries, per-user details, org memberships, and enterprise roles via the /consumed-licenses
endpoint.
License Summary
• "Show me our GitHub Enterprise license summary"
• "How many licenses are we currently using?"
Detailed License Usage
• "List all consumed GitHub licenses"
• "Do we have any unused GitHub licenses?"
User Lookup
• "What GitHub orgs does johndoe belong to?"
• "What enterprise roles does johndoe have?"
• "Is johndoe an owner in our enterprise?"
• "Get detailed info about johndoe"
• "Does johndoe have 2FA enabled?"
read:enterprise
/ license scopesgit clone https://github.com/vipink1203/mcp-github-enterprise.git
cd mcp-github-enterprise
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
# Edit .env: set GITHUB_TOKEN and GITHUB_ENTERPRISE_URL
export TRANSPORT=stdio
python main.py
export TRANSPORT=sse PORT=8050
python main.py
Add this service to your docker-compose.yml alongside n8n:
services:
github-mcp:
image: ghcr.io/vipink1203/mcp-github-enterprise:latest
environment:
- GITHUB_TOKEN=${GITHUB_TOKEN}
- GITHUB_ENTERPRISE_URL=${GITHUB_ENTERPRISE_URL}
- TRANSPORT=sse
- PORT=8050
ports:
- "8050:8050"
restart: unless-stopped
networks:
- n8n-network
In n8n's UI, enable the MCP client:
Add this configuration to your Claude Desktop settings:
{
"mcpServers": {
"github-ent": {
"command": "/path/to/your/venv/python",
"args": ["/path/to/main.py"],
"env": {
"GITHUB_TOKEN": "",
"GITHUB_ENTERPRISE_URL": "https://api.github.com/enterprises/{enterprise_name}",
"TRANSPORT": "stdio"
}
}
}
{
"mcpServers": {
"github": {
"transport": "sse",
"url": "http://localhost:8050/sse"
}
}
}
Name | Description |
---|---|
list_consumed_licenses | Summarize licenses, optionally include users |
get_user_organizations | List a user's GitHub org memberships |
get_user_enterprise_roles | List a user's enterprise roles |
get_user_detail | Full license detail for a user |
URI | Description |
---|---|
github://consumed-licenses/{dummy} | Full license usage + user details |
github://user/{username}/roles | Org & enterprise roles for a user |
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ for seamless AI ↔️ GitHub Enterprise integration.
Connects AI assistants to Obsidian vaults stored in GitHub repositories, enabling them to read, search, and analyze your notes and documentation.
Gitee API integration, repository, issue, and pull request management, and more.
Interact with GitHub repositories, including issues, pull requests, commits, releases, and actions.
Perform Git operations on Azure DevOps repositories using a Personal Access Token (PAT).
Analyze and query GitHub repositories using the GitHub Chat API.
Token-based GitHub automation management. No Docker, Flexible configuration, 80+ tools with direct API integration.
Integrate with the GitHub Enterprise API to access repositories, issues, pull requests, and workflows.
A CLI for interacting with GitKraken APIs. Includes an MCP server via `gk mcp` that not only wraps GitKraken APIs, but also Jira, GitHub, GitLab, and more.
A lightweight server for analyzing GitHub issues and pull requests using a Personal Access Token.
An MCP server for integrating with and managing Subversion (SVN) repositories, enabling AI agents to perform version control tasks.