trackmcp
Back to directory
vipink1203

mcp-github-enterprise

View on GitHub

A powerful Model Context Protocol (MCP) server for GitHub Enterprise that enables AI agents to access and manage enterprise users, organizations, and licenses.

0 stars PythonAI & Machine Learning Updated Apr 29, 2025

Documentation

MCP GITHUB ENTERPRISE ๐ŸŒ‰

Python >=3.9
MCP Protocol
GitHub API

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.


๐Ÿ“Š Capabilities & Example Prompts

  • 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?"`


๐ŸŒŸ Features

  • License Analytics: Total vs. consumed seats
  • User Lookup: Org memberships, roles, 2FA, SAML ID
  • Pagination: Handles large enterprises automatically
  • Dual Transports: stdio for direct MCP, SSE for HTTP
  • Kubernetes-Ready: Deploy on EKS/GKE or any K8s cluster

๐Ÿ“‹ Prerequisites

  • Python 3.9+
  • GitHub PAT with `read:enterprise` / license scopes
  • GitHub Enterprise Cloud tenant

๐Ÿš€ Quick Start

1. Clone & Install

bash
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

2. Configure

bash
cp .env.example .env
# Edit .env: set GITHUB_TOKEN and GITHUB_ENTERPRISE_URL

3. Run

stdio transport

bash
export TRANSPORT=stdio
python main.py

SSE transport

bash
export TRANSPORT=sse PORT=8050
python main.py

๐Ÿณ Docker & n8n

Add this service to your docker-compose.yml alongside n8n:

yaml
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:

  • Settings โ†’ Credentials โ†’ New Credential
  • Choose MCP Client API, set URL to http://github-mcp:8050/sse

๐Ÿ”Œ Client Configuration

### Claude Desktop / Windsurf / Cursor

Add this configuration to your Claude Desktop settings:

json
{
   "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"
      }
    }
}

### SSE Configuration

json
{
   "mcpServers": {
     "github": {
       "transport": "sse",
       "url": "http://localhost:8050/sse"
     }
   }
 }

## ๐Ÿ“Š Example Use Cases

    ๐Ÿ”Œ MCP Tools & Resources

    Tools

    NameDescription
    `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

    Resources

    URIDescription
    `github://consumed-licenses/{dummy}`Full license usage + user details
    `github://user/{username}/roles`Org & enterprise roles for a user

    ## ๐Ÿ”’ Security Considerations

      ## ๐Ÿค Contributing

      Contributions are welcome! Please feel free to submit a Pull Request.

      1. Fork the repository

      2. Create your feature branch (`git checkout -b feature/amazing-feature`)

      3. Commit your changes (`git commit -m 'Add some amazing feature'`)

      4. Push to the branch (`git push origin feature/amazing-feature`)

      5. Open a Pull Request

      ## ๐Ÿ“œ License

      This project is licensed under the MIT License - see the LICENSE file for details.

      ## ๐Ÿ™ Acknowledgements


        Built with โค๏ธ for seamless AI โ†”๏ธ GitHub Enterprise integration.

        Frequently asked questions

        What is mcp-github-enterprise?

        mcp-github-enterprise is A powerful Model Context Protocol (MCP) server for GitHub Enterprise that enables AI agents to access and manage enterprise users, organizations, and licenses.

        How do I install mcp-github-enterprise?

        Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

        Is mcp-github-enterprise open source?

        Yes โ€” it is hosted on GitHub at https://github.com/vipink1203/github-mcp-bridge.

        Related MCP tools

        All-Hands-AIopenhands

        ๐Ÿ™Œ OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.

        64,677 Python
        agentartificial-intelligencechatgpt+6
        mem0aimem0

        Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.

        42,646 Python
        agentsaiai-agents+12
        zhayujiechatgpt-on-wechat

        ๅŸบไบŽๅคงๆจกๅž‹ๆญๅปบ็š„่Šๅคฉๆœบๅ™จไบบ๏ผŒๅŒๆ—ถๆ”ฏๆŒ ๅพฎไฟกๅ…ฌไผ—ๅทใ€ไผไธšๅพฎไฟกๅบ”็”จใ€้ฃžไนฆใ€้’‰้’‰ ็ญ‰ๆŽฅๅ…ฅ๏ผŒๅฏ้€‰ๆ‹ฉChatGPT/Claude/DeepSeek/ๆ–‡ๅฟƒไธ€่จ€/่ฎฏ้ฃžๆ˜Ÿ็ซ/้€šไน‰ๅƒ้—ฎ/ Gemini/GLM-4/Kimi/LinkAI๏ผŒ่ƒฝๅค„็†ๆ–‡ๆœฌใ€่ฏญ้Ÿณๅ’Œๅ›พ็‰‡๏ผŒ่ฎฟ้—ฎๆ“ไฝœ็ณป็ปŸๅ’Œไบ’่”็ฝ‘๏ผŒๆ”ฏๆŒๅŸบไบŽ่‡ชๆœ‰็Ÿฅ่ฏ†ๅบ“่ฟ›่กŒๅฎšๅˆถไผไธšๆ™บ่ƒฝๅฎขๆœใ€‚

        39,573 Python
        aiai-agentchatgpt+17
        assafelovicgpt-researcher

        An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to

        24,026 Python
        agentaiautomation+8
        jlowinfastmcp

        ๐Ÿš€ The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.

        19,927 Python
        agentsfastmcpllms+6
        1Panel-devmaxkb

        ๐Ÿ”ฅ MaxKB is an open-source platform for building enterprise-grade agents. MaxKB ๆ˜ฏๅผบๅคงๆ˜“็”จ็š„ๅผ€ๆบไผไธš็บงๆ™บ่ƒฝไฝ“ๅนณๅฐใ€‚ for the Model Context Protocol. Enhance AI assistants with po

        19,062 Python
        agentagentic-aichatbot+11

        Run your own MCP server? See who uses it and what to fix.

        Measure it with TrackMCP