GitHub MCP Server
Full GitHub API integration for repositories, issues, and pull requests
GitHub MCP Server enables AI assistants to interact directly with GitHub repositories, create and manage issues, review pull requests, search code, and manage repository settings. It requires a GitHub Personal Access Token and supports both public and private repositories for streamlined development workflows.
GitHub MCP Server Configuration
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_token_here"
}
}
}
}How to setup GitHub MCP Server?
- 1
Go to GitHub Settings > Developer settings > Personal access tokens > Tokens (classic).
- 2
Generate a new token with 'repo', 'read:org', and 'read:user' scopes.
- 3
Copy the token and replace 'your_github_token_here' in the config above.
- 4
Add the configuration to your Claude Desktop config file.
- 5
Restart Claude Desktop and test by asking it to list your repositories or create an issue.
Is GitHub MCP Server free to use?
Yes, the server itself is free and open-source. You need a GitHub account (free tier works) and a Personal Access Token to authenticate API requests.
How to setup GitHub MCP Server?
Generate a GitHub Personal Access Token with repo permissions, add it to the environment variables in your Claude Desktop config, and restart. The server handles all GitHub API communication automatically.
Can GitHub MCP Server access private repositories?
Yes, as long as your Personal Access Token has the 'repo' scope, it can access all repositories your GitHub account has permission to view, including private repos.
GitHub MCP Server vs Competitors
| Feature | GitHub MCP Server | Competitor |
|---|---|---|
| Issue Management | ✅ Yes | ❌ No |
| Pull Request Review | ✅ Yes | ❌ Partial |
| Code Search | ✅ Yes | ✅ Yes |
| Private Repo Access | ✅ Yes | ❌ No |
| Branch Operations | ✅ Yes | ❌ No |
Tags
Are you the developer?
Claim this profile to update data, add documentation, view lead analytics, and control your tool's listing on MCPIndex.