GitHub API MCP Server
Access GitHub repositories, issues, pull requests, and more. Integrate GitHub workflows directly into your AI agent.
Quick Answer
- 1. The GitHub API MCP server lets Claude, Cursor, and VS Code interact with the GitHub API API through natural language.
- 2. Setup: Add the config to
claude_desktop_config.json, set your OAuth2 variables, and restart. - 3. 4 operations available including Get a repository, List repository issues, List pull requests, and more.
- 4. Quality score: 78/99 — good source quality and documentation coverage.
Overview
Category: Developer Tools
Auth: OAuth2
Endpoints: 4
Transport: STDIO
Command: npx -y @modelcontextprotocol/server-github
Spec: v2022-11-28
Setup time: ~2 min (auth required)
Environment Variables
GITHUB_TOKENExample: your_github_personal_access_token
One-Click Install
Copy the snippet for your MCP client and paste it in — zero editing required.
Claude Desktop
Add to claude_desktop_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_TOKEN": "your_github_personal_access_token"
}
}
}
}Cursor
Settings → MCP Servers → Add
{
"mcpServers": {
"github": {
"url": "https://mcpbridge.org/config/github.json"
}
}
}Saves as .cursor/mcp.json in the download. Move it to your project root.
VS Code
Use with MCP extension
{
"mcpServers": {
"github": {
"url": "https://mcpbridge.org/config/github.json"
}
}
}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"
}
}
}
}What You Can Build
With the GitHub API MCP server, your AI assistant can:
- Access 4 API operations through natural language
- Read, create, and modify developer tools resources without writing HTTP requests
- Chain multiple operations in a single conversation for complex workflows
- Combine with other MCP servers for cross-tool automation
Endpoints
/repos/{owner}/{repo}Get a repository
/repos/{owner}/{repo}/issuesList repository issues
/repos/{owner}/{repo}/pullsList pull requests
/repos/{owner}/{repo}/contents/{path}Get repository content
Authentication
This API requires OAuth2 authentication.
Set the required environment variables in your MCP client before using this server. Refer to the GitHub API API documentation to obtain credentials.
Required environment variables:
GITHUB_TOKEN
Spec Version
Version: 2022-11-28
Spec version published with the OpenAPI document. Config auto-updates when the spec changes.
Page last updated: June 13, 2026
Quality Score
- +Official source (+30)
- +Has documentation (+12)
- +GitHub repo (+12)
- +Auth type defined (+8)
- +OpenAPI spec available (+8)
- +4 endpoints (+8)
Build with GitHub API
Get everything you need in one bundle: MCP config, cursor rules, and framework integration for GitHub API.
View GitHub DevOps Stack→Read the Guide
Step-by-step walkthrough for setting up and using the GitHub API MCP server.
GitHub APIMCP Setup Guide →This listing is verified by the API owner.
Similar APIs
Other APIs in the Developer Tools category.
GitLab API
Manage repositories, CI/CD pipelines, and merge requests through your AI agent.
OAuth2Asana
This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
Box Platform API
[Box Platform](https://box.dev) provides functionality to provide access to content stored within [Box](https://box.com). It provides endpoints for basic manipulation of files and folders, management of users within an enterprise, as well as more complex topics such as legal holds and retention poli
clickup20
Polls is a simple API allowing consumers to view polls and vote in them.