Provides comprehensive GitHub integration, enabling management of repositories, issues, pull requests, files, and branches, as well as searching across repositories, code, and user information.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub MCP ServerFind all open pull requests for the repository 'microsoft/vscode'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub MCP Server
A Model Context Protocol (MCP) server that provides comprehensive GitHub integration for Claude Desktop.
Quick Setup
1. Get the Complete Source Code
The complete src/index.ts file (613 lines) is available in the files I shared with you. Look for the file named COMPLETE-INDEX-TS.txt.
To create the index.ts file:
Open the
COMPLETE-INDEX-TS.txtfileCopy everything EXCEPT the first 3 comment lines
Save it as
src/index.tsin this directory
Alternatively, you can download the complete src/index.ts from the original package files.
2. Install Dependencies
3. Build the Project
4. Create GitHub Personal Access Token
Visit: https://github.com/settings/tokens/new
Name it: "Claude MCP Server"
Select scopes:
✅
repo(Full control of private repositories - includes all sub-scopes)✅
user:read(Read user information)✅
read:org(Read organization data)
Click "Generate token"
Copy the token immediately
5. Configure Claude Desktop
Edit your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add this configuration:
Replace your_github_token_here with your actual GitHub token.
6. Restart Claude Desktop
Completely quit and restart Claude Desktop.
Features
✅ Repositories - List, get, create ✅ Issues - Full CRUD + comments ✅ Pull Requests - Create, merge, list ✅ Files - Read and write ✅ Branches - List and create ✅ Search - Repos, code, issues ✅ Users - Get user info
Usage Examples
Once installed:
Troubleshooting
Server not found
Check the path in config is absolute and correct
Verify
dist/index.jsexistsMake sure you ran
npm run build
Authentication failed
Verify token is correct
Check token hasn't expired
Ensure token has correct scopes
Build fails
Security
⚠️ Never commit your GitHub token to version control
Keep your token secure
Use minimal required permissions
Set token expiration (90 days recommended)
License
MIT