MCP Server for the GitHub Enterprise APIs, enabling file operations, repository management, search functionality, and more.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add github-enterprice --env GITHUB_PERSONAL_ACCESS_TOKEN='<GITHUB_PERSONAL_ACCESS_TOKEN>' -- node /path/to/github-enterprise-mcp/dist/index.js~/.codex/config.toml
[mcp_servers.github-enterprice]
command = "node"
args = ["/path/to/github-enterprise-mcp/dist/index.js"]
env = { GITHUB_PERSONAL_ACCESS_TOKEN = "<GITHUB_PERSONAL_ACCESS_TOKEN>" }
# codex mcp add github-enterprice --env GITHUB_PERSONAL_ACCESS_TOKEN='<GITHUB_PERSONAL_ACCESS_TOKEN>' -- node /path/to/github-enterprise-mcp/dist/index.js~/.cursor/mcp.json
{
"mcpServers": {
"github-enterprice": {
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"github-enterprice": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"github-enterprice": {
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"github-enterprice": {
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"github-enterprice": {
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}Environment variables
GITHUB_PERSONAL_ACCESS_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.