Model Context Protocol
A comprehensive MCP Server that provides seamless integration with GitHub's API, offering a wide range of tools for repository management, code operations, and collaboration features.
Key Features: • Automatic Branch Creation & Git History Preservation • Comprehensive Error Handling • Batch Operations Support • Advanced Search Capabilities • Complete Pull Request Management • Issue Tracking Integration
Available Tools:
File Operations
• create_or_update_file
: Create or update files with automatic branch creation
• push_files
: Push multiple files in a single commit
• get_file_contents
: Retrieve file or directory contents
Repository Management
• create_repository
: Create new GitHub repositories
• search_repositories
: Search across GitHub repositories
• list_commits
: View repository commit history
Pull Request Tools
• create_pull_request_review
: Create PR reviews with inline comments
• merge_pull_request
: Merge PRs with various strategies
• update_pull_request_branch
: Update PR branches
• get_pull_request_files
: List changed files in PRs
• get_pull_request_status
: Check PR status and checks
Issue Management
• create_issue
: Create new issues
• get_issue
: Retrieve issue details
• search_issues
: Search issues and PRs
Search Capabilities
• search_code
: Search code with language and path filters
• search_users
: Find users and organizations
• search_repositories
: Discover repositories
Installation:
Configure in Claude Desktop:
Add to your claude_desktop_config.json
:
{ "mcpServers": { "github": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-github" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>" } } } }
Docker Installation:
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN mcp/github
Setup Requirements:
Search Query Examples:
• Code: language:javascript path:src/ "import express"
• Issues: is:issue is:open label:bug
• Users: type:user location:London followers:>100
Requirements: • GitHub Account • Personal Access Token • Node.js (for NPX installation) • Docker (for container installation)