Provides comprehensive access to GitHub's platform including repository management, issue tracking, pull request operations, commit history, releases, code search, and user profile information.
Enables management and monitoring of GitHub Actions workflows including listing workflows, tracking run status, controlling execution (cancel, re-run), triggering workflow dispatch events, managing artifacts, and accessing usage analytics.
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 recent workflow runs for my react-app repository"
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 comprehensive Model Context Protocol server for GitHub integration, providing access to repositories, issues, pull requests, commits, releases, and GitHub Actions workflows.
π Publishing-Safe Setup
This MCP is designed to be safely published without exposing sensitive credentials.
Environment Configuration
DO NOT store your GitHub token in the MCP directory. Instead, use one of these secure methods:
Method 1: External Environment File (Recommended)
Store your environment file outside the project:
Method 2: Claude Desktop Config (Most Secure)
Store credentials directly in your Claude Desktop configuration (recommended for production).
Features
Repository Management
List repositories with filtering and sorting
Get detailed repository information
Browse branches and file contents
Search code across repositories
Issue Management
List issues with filtering by state, labels, assignee
Get detailed issue information
Create new issues with labels and assignees
Pull Request Management
List pull requests with filtering
Get detailed PR information including stats
Track PR status and mergeability
Commit & Release Tracking
List commits with filtering by date, path, branch
Get detailed commit information with file changes
List releases and get latest release info
π GitHub Actions & Workflows (NEW!)
Workflow Management: List all workflows in repositories
Run Monitoring: Track workflow runs with real-time status updates
Job Details: Get detailed information about individual jobs
Execution Control: Cancel, re-run, or re-run failed jobs
Workflow Dispatch: Trigger workflows with custom inputs
Artifact Management: List and download workflow artifacts
Usage Analytics: Get workflow usage statistics and billing info
Status Tracking: Monitor CI/CD pipeline health with status emojis
User Information
Get authenticated user details
Look up other user profiles
Setup
1. Install Dependencies
2. Create GitHub Personal Access Token
Go to GitHub β Settings β Developer Settings β Personal Access Tokens β Tokens (classic)
Create new token with these scopes:
repo - Full repository access
actions:read - Read workflow information
actions:write - Trigger and manage workflows
read:user - Read user profile data
read:org - Read organization data (if using organization)
3. Configure Environment
Secure Method: External Environment File
Most Secure: Claude Desktop Config Only
Add directly to Claude Desktop config with no environment files.
Claude Desktop Configuration
Method 1: External Environment File
Method 2: Direct Environment Variables (Most Secure)
Usage Examples
Once configured, you can ask Claude things like:
Repository & Code Management
"List my repositories sorted by last updated"
"Show me the open issues in my project-name repository"
"Get the content of README.md from my repo"
"What are the recent commits in the main branch?"
"Create an issue titled 'Bug fix needed' in my repo"
"Search for 'authentication' across all my repositories"
π GitHub Actions & Workflows
"Show me all workflows in my repository"
"What are the recent workflow runs for my project?"
"Check the status of workflow run #123"
"Show me failed GitHub Actions runs"
"Cancel the currently running workflow"
"Re-run the failed jobs in the last workflow"
"Trigger the deployment workflow with production environment"
"List artifacts from the latest build"
"How much GitHub Actions usage have I consumed this month?"
Available Tools
Core Repository Tools
list_repositories- List repositories with filtering/sortingget_repository- Get detailed repository infoget_file_content- Get file/directory contentsearch_code- Search code across reposlist_issues- List issues with filteringcreate_issue- Create new issueslist_pull_requests- List PRs with filteringlist_commits- List commits with filteringget_user_info- Get user profile information
π GitHub Actions Tools
list_workflows- List all workflows in a repositoryget_workflow- Get details of a specific workflowlist_workflow_runs- List workflow runs with status filteringget_workflow_run- Get detailed information about a specific runget_workflow_run_jobs- Get jobs for a workflow runcancel_workflow_run- Cancel a running workflowrerun_workflow- Re-run an entire workflowrerun_failed_jobs- Re-run only failed jobstrigger_workflow_dispatch- Trigger workflows with custom inputslist_workflow_artifacts- List artifacts from workflow runsdownload_artifact- Get artifact download informationget_workflow_usage- Get workflow usage statistics
π Workflow Examples
Monitor CI/CD Pipeline
Automate Deployments
Troubleshoot Failed Builds
Manage Artifacts
Security Notes
β Publishing Safe: No sensitive data stored in code repository
β Environment Isolation: Credentials stored outside project directory
β .gitignore Protection: Comprehensive ignore patterns prevent accidental commits
β Minimal Permissions: Only request necessary GitHub scopes
β External Storage: Use
~/.config/mcp-environments/for credentialsβ Actions Security: Workflow triggers respect repository permissions
Publishing Checklist
Before publishing this MCP:
β No
.envfiles in the repositoryβ No hardcoded tokens or credentials
β
.gitignoreincludes comprehensive patternsβ README documents secure setup methods
β Example configurations use placeholders
Troubleshooting
Common Issues
Authentication Failed
Verify your PAT is correct and has required scopes
For workflows: ensure token has
actions:readandactions:writescopesCheck that GITHUB_OWNER matches your username/org
Environment File Not Found
Ensure the environment file path in Claude config is correct
Check file permissions on the environment file
Rate Limiting
GitHub API has rate limits (5000 requests/hour for authenticated users)
The MCP will show rate limit errors if exceeded
Workflow Dispatch Failed
Ensure the workflow file has
workflow_dispatchtrigger configuredVerify workflow inputs match the schema defined in the workflow file
Check that the branch/ref exists
Cannot Cancel/Re-run Workflows
Verify your token has
actions:writepermissionEnsure you have push access to the repository
Some workflows may not be cancellable if they're already completed
Version History
v0.2.0 - Added comprehensive GitHub Actions and workflow support
v0.1.0 - Initial release with repository, issues, and PR management