Developer ToolsOAuth2Official MCP
GitHub API MCP Server
Access GitHub repositories, issues, pull requests, and more. Integrate GitHub workflows directly into your AI agent.
Quick Setup
Transport: STDIO
Command: npx -y @modelcontextprotocol/server-github
Environment Variables
GITHUB_TOKENExample: your_github_personal_access_token
MCP Server Configuration
Add this to your claude_desktop_config.json or Cursor MCP settings.
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y","@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "your_github_personal_access_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