This server has been archived and is no longer actively maintained.
The page is preserved for reference. Consider alternatives in the same category.
Interact with GitHub repositories, issues, pull requests, and more
The GitHub MCP Server provides tools to interact with the GitHub API, enabling AI assistants to manage repositories, issues, pull requests, branches, and file contents. You can search for repositories, create or update files, push code, manage issues and PRs, create branches, and fork repos — all through natural conversation with your AI assistant.
Is it safe?
No known CVEs for @modelcontextprotocol/server-github.
No authentication — any process on your machine can connect to this server.
MIT. View license →
Last scanned 0 days ago.
Is it maintained?
Last commit 5 days ago. 82,819 GitHub stars. 116,945 weekly downloads.
Will it work with my client?
Transport: stdio. Works with claude-desktop, cursor, claude-code, windsurf. Requires an API key.
How much context will it use?
6 tools. Estimated ~200 tokens of your context window (0.1% of 200K).
What if it doesn't work?
Common issues: JSON syntax errors in config, wrong Node.js version, npx cache, missing or expired API key. Setup guide covers troubleshooting. Or check GitHub issues for known problems.
{
"mcpServers": {
"github": {
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<your-token>"
},
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"command": "npx"
}
}
}GITHUB_PERSONAL_ACCESS_TOKENGitHub Personal Access Token1. Go to github.com/settings/tokens 2. Click "Generate new token (classic)" 3. Select scopes: repo, read:org, read:user 4. Click Generate token 5. Copy the token (starts with ghp_)Open GitHub Personal Access Token page
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y @modelcontextprotocol/server-github 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
create_or_update_fileCreate or update a file in a repository
search_repositoriesSearch for GitHub repositories
create_issueCreate a new issue
create_pull_requestCreate a pull request
list_commitsList commits on a branch
get_file_contentsGet contents of a file
Last scanned just now
No known vulnerabilities.
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.