Securely monitor GitHub Enterprise licenses and user roles with MCP protocol for AI integrations
The MCP-Github-Enterprise Server acts as an essential bridge, allowing AI applications such as Claude Desktop, ChatGPT, and other similar tools to interact with GitHub Enterprise licenses securely. This server adheres strictly to the Model Context Protocol (MCP), enabling detailed license analysis, user management, and real-time data updates, thereby streamlining the use of enterprise resources through a unified interface.
The MCC-Github-Enterprise Server leverages MCP to provide robust capabilities that enhance AI application integrations. By securely fetching and presenting GitHub Enterprise-related data, it supports dynamic license management, user role querying, and comprehensive license usage analysis. Key features include:
stdio
and SSE transports.The architecture integrates seamlessly with the Model Context Protocol (MCP) infrastructure. The server exposes an /consumed-licenses
endpoint, allowing AI applications to query essential enterprise data:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
This structure ensures that the server can effectively communicate with various AI applications and data sources, providing real-time updates on GitHub Enterprise license consumption.
Starting your MCP-Github-Enterprise Server is straightforward. Follow these steps:
Clone & Install
git 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
Configure
cp .env.example .env
# Edit .env: set GITHUB_TOKEN and GITHUB_ENTERPRISE_URL
Run the Server
stdio transport
export TRANSPORT=stdio
python main.py
SSE transport
export TRANSPORT=sse PORT=8050
python main.py
The MCC-Github-Enterprise Server can significantly boost AI workflows by providing valuable insights and automating tasks:
To integrate this server with different AI applications like Claude Desktop, Continue, and Cursor, refer to the following configuration details:
Add the following configuration to your Claude Desktop settings:
{
"mcpServers": {
"github-ent": {
"command": "/path/to/your/venv/bin/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"
}
}
}
The MCC-Github-Enterprise Server offers broad compatibility with several MCP clients:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Partial |
To ensure secure and reliable operation, follow these steps:
GITHUB_TOKEN
and ensure it has the required scopes. Verify your /consumed-licenses
endpoint is correctly configured.stdio
and SSE
), making integration flexible.Contributions are always welcome! Follow these steps to contribute:
The MCP ecosystem is rich in tools and resources that can further enhance integration:
list_consumed_licenses
: Summarizes licenses, optionally including usersget_user_organizations
: Lists all organizations associated with a userget_user_enterprise_roles
: Retrieves enterprise roles for a specified userget_user_detail
: Provides detailed information about a user's license usage and moregithub://consumed-licenses/{dummy}
: Full license summary + user data.github://user/{username}/roles
: Org memberships, roles, 2FA status.Ensure that:
By following these guidelines, you can effectively secure your MCP-Github-Enterprise Server's environment and protect sensitive data against unauthorized access.
With the MCC-Github-Enterprise Server, developers can significantly streamline their AI workflows by integrating seamless communication with GitHub Enterprise. The server leverages the Model Context Protocol to provide comprehensive features for license monitoring, user management, and more — all while adhering to strict security standards. We hope this documentation serves as a valuable resource for implementing MCP integrations in your own projects.
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Python MCP client for testing servers avoid message limits and customize with API key
Discover easy deployment and management of MCP servers with Glutamate platform for Windows Linux Mac
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions
Analyze search intent with MCP API for SEO insights and keyword categorization