Context7
Upstash
Up-to-date, version-specific library docs for your prompts.
mcp.context7.com/mcpRepos, issues, pull requests and Actions from chat.
Authorization with the value Bearer YOUR_GITHUB_PAT.
https://api.githubcopilot.com/mcp/
VS Code and some other clients can sign in with GitHub OAuth instead of a token.
mcpServers (merge with any servers you already have).
YOUR_GITHUB_PAT with your own values (a fine-grained personal access token.).
{ "mcpServers": { "github": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT" } } }}
Limit the tools it exposes with the GITHUB_TOOLSETS environment variable.
--scope user to make it available in every project.
YOUR_GITHUB_PAT with your token. A fine-grained personal access token with only the repo scopes you need.
/mcp any time to check status.
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ \
--header 'Authorization: Bearer YOUR_GITHUB_PAT'
{ "mcpServers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer ${GITHUB_PAT}" } } }}
VS Code and some other clients can sign in with GitHub OAuth instead of a token.
--scope user for every project, or --scope project to share it via .mcp.json.
YOUR_GITHUB_PAT with your own values (a fine-grained personal access token.).
claude and run /mcp to confirm the server is connected.
claude mcp add --env GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_PAT --transport stdio github -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
{ "mcpServers": { "github": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}" } } }}
Limit the tools it exposes with the GITHUB_TOOLSETS environment variable.
GitHub's hosted server needs an API-key header, which ChatGPT can't send. ChatGPT supports OAuth or no-auth servers.
ChatGPT only connects to remote servers. Use the remote option for GitHub.
~/.codex/config.toml, then set the secret in your shell: export GITHUB_PAT=YOUR_GITHUB_PAT.
codex and type /mcp to see the server's tools.
[mcp_servers.github]url = "https://api.githubcopilot.com/mcp/"bearer_token_env_var = "GITHUB_PAT"
VS Code and some other clients can sign in with GitHub OAuth instead of a token.
~/.codex/config.toml.
YOUR_GITHUB_PAT with your own values (a fine-grained personal access token.).
codex and type /mcp to see the server's tools.
codex mcp add github --env GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
[mcp_servers.github]command = "docker"args = ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"]env = { GITHUB_PERSONAL_ACCESS_TOKEN = "YOUR_GITHUB_PAT" }
Limit the tools it exposes with the GITHUB_TOOLSETS environment variable.
-s user makes it global), or edit ~/.gemini/settings.json.
YOUR_GITHUB_PAT with your token.
/mcp inside Gemini CLI to list the server's tools.
gemini mcp add -s user -t http -H 'Authorization: Bearer YOUR_GITHUB_PAT' github https://api.githubcopilot.com/mcp/
{ "mcpServers": { "github": { "httpUrl": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer $GITHUB_PAT" } } }}
VS Code and some other clients can sign in with GitHub OAuth instead of a token.
-s user makes it global), or edit ~/.gemini/settings.json.
YOUR_GITHUB_PAT with your own values (a fine-grained personal access token.).
/mcp inside Gemini CLI to confirm it's connected.
gemini mcp add -s user -e GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_PAT github docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
{ "mcpServers": { "github": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PERSONAL_ACCESS_TOKEN" } } }}
Limit the tools it exposes with the GITHUB_TOOLSETS environment variable.
~/.cursor/mcp.json (global) or .cursor/mcp.json (this project).
GITHUB_PAT in your environment. Cursor reads it through ${env:…}.
{ "mcpServers": { "github": { "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer ${env:GITHUB_PAT}" } } }}
VS Code and some other clients can sign in with GitHub OAuth instead of a token.
~/.cursor/mcp.json (global) or .cursor/mcp.json (this project).
YOUR_GITHUB_PAT with your own values (a fine-grained personal access token.).
{ "mcpServers": { "github": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT" } } }}
Limit the tools it exposes with the GITHUB_TOOLSETS environment variable.
.vscode/mcp.json in your project (or run MCP: Open User Configuration) and paste the JSON.
{ "inputs": [ { "type": "promptString", "id": "github-pat", "description": "A fine-grained personal access token with only the repo scopes you need.", "password": true } ], "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer ${input:github-pat}" } } }}
VS Code and some other clients can sign in with GitHub OAuth instead of a token.
.vscode/mcp.json in your project (or run MCP: Open User Configuration) and paste the JSON.
{ "inputs": [ { "type": "promptString", "id": "github-personal-access-token", "description": "A fine-grained personal access token.", "password": true } ], "servers": { "github": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-personal-access-token}" } } }}
Limit the tools it exposes with the GITHUB_TOOLSETS environment variable.
mcp_config.json).
mcpServers and save.
YOUR_GITHUB_PAT with your token. A fine-grained personal access token with only the repo scopes you need.
{ "mcpServers": { "github": { "serverUrl": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } }}
VS Code and some other clients can sign in with GitHub OAuth instead of a token.
mcp_config.json).
mcpServers and save.
YOUR_GITHUB_PAT with your own values (a fine-grained personal access token.).
{ "mcpServers": { "github": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT" } } }}
Limit the tools it exposes with the GITHUB_TOOLSETS environment variable.
context_servers.
YOUR_GITHUB_PAT with your token.
{ "context_servers": { "github": { "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } }}
VS Code and some other clients can sign in with GitHub OAuth instead of a token.
context_servers.
YOUR_GITHUB_PAT with your own values (a fine-grained personal access token.).
{ "context_servers": { "github": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT" } } }}
Limit the tools it exposes with the GITHUB_TOOLSETS environment variable.