GitHub Enterprise MCP Server

MCP Server for the GitHub Enterprise APIs, enabling file operations, repository management, search functionality, and more.

Local serverstdioTypeScript

What is the GitHub Enterprise MCP server?

MCP Server for the GitHub Enterprise APIs, enabling file operations, repository management, search functionality, and more. The github enterprise mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 5 defined tools rather than through you.

What it actually does

  • Automatic Branch Creation — When creating/updating files or pushing changes, branches are automatically created if they don't exist
  • Comprehensive Error Handling — Clear error messages for common issues
  • Git History Preservation — Operations maintain proper Git history without force pushing
  • Batch Operations — Support for both single-file and multi-file operations
  • Advanced Search — Support for searching code, issues/PRs, and users

Its toolset

Everything the assistant can do here goes through one of these:

  • Inputs — - owner (string): Repository owner (username or organization)
  • Returns — File content and commit details
  • Prerequisites — 1. Node.js installed on your system 2. A GitHub Personal Access Token with appropriate permissions 3. Cline installed on your system
  • Verification — To verify that the GitHub Enterprise MCP server is properly installed and configured, you can ask Cline to use one of the GitHub tools:
  • Troubleshooting — If you encounter issues with the GitHub Enterprise MCP server:

Configuration

You will need 4 environment variables: GITHUB_PERSONAL_ACCESS_TOKEN, GITHUB_API_URL, GITHUB_API_VERSION, YOUR_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  1. Node.js installed on your system 2. A GitHub Personal Access Token with appropriate permissions 3. Cline installed on your system

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at npm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. GitHub Enterprise's toolset — Inputs, Returns, Prerequisites and 2 more — is a fair guide to whether it matches your workflow. It is maintained by piyushgIITian; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the github enterprise mcp server does with a few real requests.

Available tools

ToolWhat it does
Inputs- owner (string): Repository owner (username or organization)
ReturnsFile content and commit details
Prerequisites1. Node.js installed on your system 2. A GitHub Personal Access Token with appropriate permissions 3. Cline installed on your system
VerificationTo verify that the GitHub Enterprise MCP server is properly installed and configured, you can ask Cline to use one of the GitHub tools:
TroubleshootingIf you encounter issues with the GitHub Enterprise MCP server:

How to install the GitHub Enterprise MCP server

{
  "mcpServers": {
    "github": {
      "command": "node",
      "args": [
        "/path/to/github-enterprise-mcp/dist/index.js"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  1. Node.js installed on your system 2. A GitHub Personal Access Token with appropriate permissions 3. Cline installed on your system
VariableDescriptionRequired
GITHUB_PERSONAL_ACCESS_TOKENCredential the server authenticates with.Yes
GITHUB_API_URLEndpoint or connection string the server talks to.Yes
GITHUB_API_VERSIONConfiguration value read at startup.Optional
YOUR_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use GitHub Enterprise to Inputs.
  • Use GitHub Enterprise to Returns.
  • Use GitHub Enterprise to Prerequisites.

Frequently asked questions

Node.js must be installed, you need a GitHub Personal Access Token with appropriate permissions (e.g., `repo` scope for private repos), and Cline must be installed.