# MCP Github Enterprise

> MCP Github Enterprise is an MCP server for developer tools. Govern GitHub Enterprise orgs, rulesets and security alerts from an agent, read-only first. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/dockndevai/mcp-github-enterprise
- **MCP Registry name:** io.github.dockndevai/mcp-github-enterprise
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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

## 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.

## Alternatives

- [GitHub CI/CD MCP Server](https://ai-powered.com/mcp/github-ci-cd-mcp-server): GitHub CI/CD MCP Server is an open-source MCP server for developer tools.
- [Git MCP Server](https://ai-powered.com/mcp/git-mcp-server): Git MCP Server is an open-source MCP server for developer tools.
- [MCP Hangar](https://ai-powered.com/mcp/mcp-hangar): MCP Hangar is an open-source MCP server for security.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Golem Context](https://ai-powered.com/mcp/golem-context): Golem Context is a free MCP server for security.
- [mcp-gatehouse](https://ai-powered.com/mcp/mcp-gatehouse): mcp-gatehouse is an open-source MCP server for security.
- [Toolmesh](https://ai-powered.com/mcp/toolmesh): Toolmesh is an MCP server for developer tools.
- [gitpro](https://ai-powered.com/mcp/gitpro): gitpro is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-github-enterprise
