G
GitHub MCP Server
Provides access to the GitHub API through MCP, enabling AI assistants to manage repositories, issues, pull requests, and more.
stdioLocalApiKeynpm
What This Server Exposes
Tools
create_issuelist_reposcreate_pull_requestsearch_code
Resources
- •repository metadata
- •issue details
- •pull request data
Setup Instructions
- 1Create a GitHub personal access token with appropriate scopes
- 2Add the GitHub server config to your Claude Desktop configuration
- 3Set the GITHUB_TOKEN environment variable
- 4Restart Claude Desktop
Configuration
Claude Desktop Configuration
claude_desktop_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_TOKEN": "your-github-token"
}
}
}
}Environment Variables
| Name | Required | Secret | Description |
|---|---|---|---|
| GITHUB_TOKEN | ✓ | 🔒 | GitHub personal access token |
GITHUB_TOKEN
GitHub personal access token
Required🔒 Secret
Server Manifest
No official server.json manifest found. Generate one with our MCP server.json Generator →
Compatibility
Claude DesktopClaude Code
⚠
Safety Notes
Your GitHub token grants access to repositories and organizations. Use a fine-grained token with minimal scopes needed. Never share your token or commit it to version control.
This listing is for informational purposes only. CodexSpot is not affiliated with GitHub MCP Server.