Enables comprehensive interaction with GitHub repositories, providing tools to search repositories, manage issues and pull requests, browse file contents, and handle branches and commits.
Allows for the management of GitHub Actions workflows, including listing workflow files, monitoring workflow run status, and triggering manual workflow dispatches.
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 Servershow me open issues labeled 'bug' in 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 enables LLMs to interact with GitHub repositories, issues, pull requests, workflows, and more.
Features
Repository Management
search_repositories - Search repos by query, language, stars
get_repository - Get detailed repo information
list_repository_files - Browse directory contents
get_file_contents - Read file content
Issue Tracking
list_issues - List/filter issues by state, labels, assignee
get_issue - Get issue details with comments
create_issue - Create new issues
update_issue - Update existing issues
add_issue_comment - Comment on issues
Pull Requests
list_pull_requests - List PRs with filters
get_pull_request - Get PR details with diff stats
create_pull_request - Create new PRs
list_pr_files - List changed files
merge_pull_request - Merge PRs (merge/squash/rebase)
Branches & Commits
list_branches - List branches with protection status
get_commits - Get commit history
compare_commits - Compare branches/tags/commits
GitHub Actions
list_workflows - List workflow files
get_workflow_runs - Get recent workflow runs
trigger_workflow - Dispatch workflow runs
Code Search
search_code - Search code across repositories
Users & Organizations
get_user - Get user/org profile
list_user_repos - List user's repositories
Installation
Configuration
GitHub Token
Create a Personal Access Token at https://github.com/settings/tokens with these scopes:
repo- Full control of private repositoriesread:org- Read organization membershipworkflow- Update GitHub Action workflows
Set the token as an environment variable:
Usage
Running the Server
Claude Desktop Integration
Add to your Claude Desktop config (~/.config/claude/claude_desktop_config.json):
Tool Examples
Search Repositories
Get Repository Info
List Issues
Create Issue
List Pull Requests
Create Pull Request
Search Code
Get Workflow Runs
Response Formats
All tools support two response formats:
markdown (default) - Human-readable formatted output
json - Structured data for programmatic use
Error Handling
The server provides actionable error messages:
Rate Limiting: Indicates when limits reset
Not Found: Suggests verifying resource exists
Authentication: Prompts to check token validity
Validation: Lists specific field errors
Architecture
Development
Testing Syntax
Running in Development
License
MIT License
Author
Hansen Nkefor