GitHub Enterprise MCP Server

GitHub Enterprise MCP Server

0

Enterprise Git Management with AI via Model Context Protocol

Published: 16/August/2025 Views: 163

What is GitHub Enterprise MCP Server?

github-enterprise-mcp is a Model Context Protocol (MCP) server that provides seamless integration between AI assistants and GitHub Enterprise environments. It exposes comprehensive tools for enterprise Git management:

  • list-repositories – retrieves repository lists for users or organizations with advanced filtering
  • get-repository – fetches detailed repository information and metadata
  • list-branches – displays repository branches with protection status filtering
  • get-content – accesses file and directory contents from repositories
  • list-pull-requests – manages pull requests with state and sorting options
  • create-pull-request – initiates new pull requests with full configuration
  • merge-pull-request – handles PR merging with customizable methods
  • list-issues – queries repository issues with comprehensive filtering
  • create-issue – generates new issues with labels, assignees, and milestones
  • list-workflows – manages GitHub Actions workflows and runs
  • list-users – handles enterprise user management and administration
  • get-license-info – retrieves GitHub Enterprise licensing information
  • get-enterprise-stats – provides enterprise-level system statistics

This enables enterprise teams to manage their Git workflows, code reviews, and repository operations through natural language AI interactions.

GitHub Enterprise MCP Server Key Features

  • Multi-environment support: Works with GitHub Enterprise Server, GitHub.com, and Enterprise Cloud
  • Comprehensive repository management: Full CRUD operations for repositories, issues, and pull requests
  • Enterprise user administration: Create, update, suspend, and manage enterprise users
  • GitHub Actions integration: Trigger workflows, monitor runs, and manage CI/CD pipelines
  • Advanced filtering and pagination: Sophisticated querying across all repository resources
  • Enterprise-specific features: License information and system statistics for administrators
  • Multi-language support: Built-in English and Korean language options
  • Flexible deployment options: Docker, npm, local development, and URL-based connections
  • Enhanced error handling: User-friendly response formatting and timeout management
  • Permission-aware operations: Proper Personal Access Token validation and scope checking

GitHub Enterprise MCP Server Use Cases

  • Enterprise DevOps automation: Streamline repository management and CI/CD operations across large organizations
  • Code review orchestration: Automate pull request workflows and merge processes through AI conversations
  • Issue triage and management: Efficiently categorize, assign, and track issues across multiple repositories
  • User lifecycle management: Handle enterprise user onboarding, updates, and access control
  • Compliance and reporting: Generate enterprise statistics and license usage reports
  • Release management: Coordinate releases across multiple repositories and teams
  • Developer productivity: Enable non-technical stakeholders to interact with Git workflows
  • Automated documentation: Generate repository insights and project status updates

Installation & Setup

Requires Node.js ≥18, GitHub Enterprise access, and Personal Access Token with appropriate permissions.

Docker Configuration:

bash

docker run -p 3000:3000 \
-e GITHUB_TOKEN="your_github_token" \
-e GITHUB_ENTERPRISE_URL="https://github.your-company.com/api/v3" \
-e DEBUG=true \
github-enterprise-mcp

Cursor Integration (URL Mode – Recommended):

json

{
"mcpServers": {
"github-enterprise": {
"url": "http://localhost:3000/sse"
}
}
}

Claude Desktop Configuration:

json

{
"mcpServers": {
"github-enterprise": {
"command": "npx",
"args": ["-y", "@ddukbg/github-enterprise-mcp", "--token=YOUR_TOKEN", "--github-enterprise-url=YOUR_URL"]
}
}
}

Local Development:

bash

git clone https://github.com/ddukbg/github-enterprise-mcp.git
cd github-enterprise-mcp
npm install
npm run build
npm run dev

Example Usage

With an MCP-aware AI assistant:

"List all repositories in the engineering organization"
"Show me open pull requests in the main-backend repository"
"Create a new issue in project-alpha about the login bug with high priority label"
"Get the contents of the config.yaml file from the staging branch"
"Trigger the deployment workflow for the production environment"
"Show enterprise license usage and user statistics"

The server will automatically:

  • Authenticate with your GitHub Enterprise instance using PAT
  • Handle pagination for large result sets
  • Provide detailed error context for failed operations
  • Format responses in user-friendly language (English/Korean)
  • Validate permissions and scope requirements for each operation