Skip to content
MCP server

MCP Github Enterprise

Govern GitHub Enterprise orgs, rulesets and security alerts from an agent, read-only first

Runs locally
Install

MCP Github Enterprise is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Platforms
CLI, Self-hosted
Runs
Locally
Version
0.1.1
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add mcp-github-enterprise --env GHE_TOKEN='<GHE_TOKEN>' -- npx -y @dockndevai/mcp-github-enterprise

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-github-enterprise": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-github-enterprise"
      ],
      "env": {
        "GHE_TOKEN": "<GHE_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-github-enterprise": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-github-enterprise"
      ],
      "env": {
        "GHE_TOKEN": "<GHE_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-github-enterprise": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-github-enterprise"
      ],
      "env": {
        "GHE_TOKEN": "<GHE_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-github-enterprise": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-github-enterprise"
      ],
      "env": {
        "GHE_TOKEN": "<GHE_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-github-enterprise": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-github-enterprise"
      ],
      "env": {
        "GHE_TOKEN": "<GHE_TOKEN>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • GHE_TOKENGitHub token (fine-grained PAT, classic PAT, or App installation token). Read-only scopes to start.Required
  • GHE_API_URLAPI base URL. Cloud: https://api.github.com (default). Server/GHES: https://HOST/api/v3.
  • GHE_ENTERPRISEEnterprise slug, for enterprise-level endpoints (audit log, Actions policy). Optional.
  • GHE_MODEAccess mode: read-only | read-write | admin. Start with read-only.

About MCP Github Enterprise

The design assumption is that handing an agent an admin token is risky, so this server hides tools above the current access mode. GHE_MODE moves from read-only to read-write to admin, exposing 23, 32 or 38 tools respectively. You can pin an org allowlist, mark orgs as protected, run in dry-run, and every operation writes a JSON audit line to stderr.

Destructive actions are double-gated: admin mode, an explicit delete flag, a typed confirmation and a human prompt that shows the tool, exact arguments and a fingerprint. Webhook and secret-scanning secrets are redacted before reaching the model.

Two tools stand out. assess_org_posture scores an org against a built-in baseline with a graded finding list, and harden_org_settings applies it, covering base permissions, push protection, Dependabot defaults and fork rules. It supports GitHub Enterprise Cloud and Server via GHE_API_URL, and bundles two Agent Skills.

Tools this server provides (14)

Taken from the project documentation; the running server may differ.

whoami
Confirm the token and base URL
list_organizations
List organizations
list_org_rulesets
List organization rulesets
list_secret_scanning_alerts
List secret scanning alerts
list_dependabot_alerts
List Dependabot alerts
get_audit_log
Read the audit log
assess_org_posture
Score an org against the security baseline
recommend_enterprise_setup
Recommend an enterprise setup
harden_org_settings
Apply the security baseline
update_org_settings
Update organization settings
create_org_ruleset
Create an organization ruleset
protect_branch
Protect a branch
create_repository
Create a repository
delete_repository
Delete a repository

What it does

Mode-gated tools
Tools are hidden until the access mode allows them.
Posture assessment
Scores an org against a security baseline with a grade.
One-step hardening
Applies baseline settings, previewable with dry run.
Human approval
High-impact changes prompt a person before running.
Org allowlist
Restrict which organizations can be touched.
Audit log
One JSON line per operation.

Good for

  • Grade an org's security settings
  • Apply a secure default baseline
  • List rulesets and branch protections
  • Review Dependabot and secret scanning alerts

Pricing

Pricing unknown

Install from npm; licence not published

More servers for the same service

MCP Github Enterprise FAQ

Is MCP Github Enterprise read-only by default?

Yes. GHE_MODE defaults to read-only.

Does MCP Github Enterprise work with GHES?

Yes, set GHE_API_URL to https://HOST/api/v3.

What token does MCP Github Enterprise need?

A fine-grained PAT, classic PAT or App installation token in GHE_TOKEN.

Can MCP Github Enterprise enforce 2FA?

No. It reports 2FA but GitHub does not expose a REST toggle.

How do I add MCP Github Enterprise to Claude Code?

Run this command in your terminal: claude mcp add mcp-github-enterprise --env GHE_TOKEN='<GHE_TOKEN>' -- npx -y @dockndevai/mcp-github-enterprise

What are the best alternatives to MCP Github Enterprise?

The closest alternatives to MCP Github Enterprise are GitHub CI/CD MCP Server, Git MCP Server, MCP Hangar, GitHub and Golem Context.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers