GitHub API Claude Desktop Config
Add the GitHub API MCP server to Claude Desktop with this ready-to-use configuration.
Setup Instructions
- Open Claude Desktop
- Go to Settings → Developer → Edit Config →
claude_desktop_config.json - Paste the JSON below into the file
- Set your OAuth2 in the
envsection - Restart Claude Desktop
Configuration JSON
Copy the entire block into your claude_desktop_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_TOKEN": "your_github_personal_access_token"
}
}
}
}Environment Variables
GITHUB_TOKENReplace your_github_personal_access_token with your actual github token
Endpoints
GET
/repos/{owner}/{repo}Get a repository
GET
/repos/{owner}/{repo}/issuesList repository issues
GET
/repos/{owner}/{repo}/pullsList pull requests
GET
/repos/{owner}/{repo}/contents/{path}Get repository content