GitHub MCP Server Setup Guide
June 2026 · 4 min read
The GitHub MCP server lets your AI assistant browse repositories, manage issues and pull requests, review code, and push changes — all through natural language.
What You Can Do
- Browse repository contents and file structures
- Create, update, and search issues
- List and review pull requests
- Read and write file contents
- Search code across repositories
Setup
Generate your config on our GitHub MCP page or use this directly:
{"mcpServers":{"github":{"command":"npx","args":["-y","@modelcontextprotocol/server-github"],"env":{"GITHUB_TOKEN":"ghp_..."}}}}You'll need a GitHub personal access token with repo scope.
Testing the Connection
After adding the config to Claude Desktop or Cursor, try: “List my recent GitHub issues” or “Show me the contents of my README.md.”
More APIs: Browse all 115+ MCP server configs in our directory.