Sponsored by Deepsite.site

Github Mcp Bridge

Created By
tree8 months ago
Content

GitHub MCP Bridge 🌉

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

git clone https://github.com/vipink1203/github-mcp-bridge.git
cd github-mcp-bridge
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

2. Configure

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

3. Run

stdio transport

export TRANSPORT=stdio
python main.py

SSE transport

export TRANSPORT=sse PORT=8050
python main.py

🐳 Docker & n8n

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

services:
  github-mcp:
    image: ghcr.io/vipink1203/github-mcp-bridge: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:

🔌 MCP Tools & Resources

Tools

NameDescription
list_consumed_licensesSummarize licenses, optionally include users
get_user_organizationsList a user's GitHub org memberships
get_user_enterprise_rolesList a user's enterprise roles
get_user_detailFull license detail for a user

Resources

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

🤝 Contributing

  1. Fork & branch
  2. git commit -m "feat: …"
  3. git push & open a PR

📜 License

MIT — see LICENSE

Built with ❤️ for seamless AI ↔️ GitHub Enterprise integration.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Serper MCP ServerA Serper MCP Server
Tavily Mcp
Amap Maps高德地图官方 MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
ChatWiseThe second fastest AI chatbot™
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.