GitHub MCP Server Config
MCP ServersConnect your agent to GitHub for repo management, PR creation, and issue tracking.
1803/23/2026
Version 1
PublishedInitial version
Created 3/23/2026
Initial version — no previous version to compare
mcp-server
# GitHub MCP Server
## Configuration (.mcp.json)
```json
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "ghp_your_personal_access_token"
}
}
}
}
```
## Token Scopes Required
- repo (full control of private repos)
- read:org (read org membership)
## Available Tools
- search_repositories
- get_file_contents
- create_or_update_file
- push_files
- create_issue
- create_pull_request
- list_issues
- list_pull_requests
## Tips
- Use a fine-grained personal access token for better security
- Scope to specific repos if possible
- The agent can create PRs, so set branch protection rules