GitHub MCP Server
Connect GitHub repos, issues, pull requests, file content, and commits directly to Claude and Cursor.
⚡ 1-Line CLI Test Command
npx -y @modelcontextprotocol/server-github
⚙️ Claude Desktop Config (claude_desktop_config.json)
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
}
}
}
🛠️ Exposed Tools
get_file_contents, create_or_update_file, push_files, create_issue, create_pull_request, fork_repository