What is the GitHub MCP server?
GitHub via MCP: search, repos, issues, PRs, files, notifications. OAuth device flow or token.
How to install GitHub
Copy-paste configuration for popular MCP clients.
transport: stdio
Config generated by PluginBench — verify against the source before use.Environment / auth
GITHUB_TOKENsecretA GitHub Personal Access Token (skips the OAuth device flow).
GITHUB_CLIENT_IDOAuth App client id (public) to enable the device-flow login.
GITHUB_READONLYSet to 1 or true to disable issue-creating/commenting tools.
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/github"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>",
"GITHUB_CLIENT_ID": "<YOUR_GITHUB_CLIENT_ID>",
"GITHUB_READONLY": "<YOUR_GITHUB_READONLY>"
}
}
}
}Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/github"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>",
"GITHUB_CLIENT_ID": "<YOUR_GITHUB_CLIENT_ID>",
"GITHUB_READONLY": "<YOUR_GITHUB_READONLY>"
}
}
}
}Windsurf
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/github"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>",
"GITHUB_CLIENT_ID": "<YOUR_GITHUB_CLIENT_ID>",
"GITHUB_READONLY": "<YOUR_GITHUB_READONLY>"
}
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"github": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/github"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>",
"GITHUB_CLIENT_ID": "<YOUR_GITHUB_CLIENT_ID>",
"GITHUB_READONLY": "<YOUR_GITHUB_READONLY>"
}
}
}
}Claude Code
claude mcp add github --env GITHUB_TOKEN=<YOUR_GITHUB_TOKEN> --env GITHUB_CLIENT_ID=<YOUR_GITHUB_CLIENT_ID> --env GITHUB_READONLY=<YOUR_GITHUB_READONLY> -- npx -y @abhishekmcp/githubRelated MCP servers
Files
Active
Sandboxed local filesystem: read, search, edit, copy, archive, and safely manage files.
1
View repository →TypeScript
MIT
Git
Active
Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.
1
View repository →TypeScript
MIT
Notes
Active
Local markdown notes: ranked + semantic search, tags, todos, and a wiki-link knowledge graph.
1
View repository →TypeScript
MIT