GitHub MCP Server
Official GitHub MCP Server connecting AI tools directly to GitHub's platform to manage repos, issues, pull requests, Actions workflows, and code.
About this Server
The official GitHub Model Context Protocol server connects AI agents, assistants, and chatbots directly to GitHub's platform. This gives AI tools the ability to read repositories and code files, search commit histories, manage issues and pull requests, trigger GitHub Actions workflows, inspect CI/CD logs, review Dependabot and code scanning alerts, and automate entire engineering workflows through natural language. Built with enterprise-grade security including Read-Only Mode and Lockdown Mode to protect against untrusted repository prompt injection.
Direct low-latency RPC protocol communication with structured JSON schemas.
Restricted capability bounds to prevent accidental modifications or leakage.
Security & Best Practices
When to Use (and When Not To)
- •Automating GitHub workflows: triaging issues, reviewing PR diffs, and generating structured pull request summaries
- •Querying repository structure, inspecting file contents, and searching code or commit history directly from your editor
- •Monitoring GitHub Actions CI/CD workflows, fetching failed job logs, and triggering manual dispatch runs
- •Auditing security vulnerabilities across Dependabot alerts, code scanning findings, and secret scanning alerts
- •Untracked local file edits and uncommitted scratch files (use local file system or workspace tools instead)
- •High-frequency bulk scraping of massive repositories exceeding GitHub REST API rate limits
- •High-privilege enterprise administration operations without organization owner approval
Install & Setup
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer $GITHUB_TOKEN"Exposed Tools & Endpoints
52 toolsFunctions your AI agent can invoke via this Model Context Protocol server
Get details of GitHub Actions resources (workflows, workflow runs, jobs, and artifacts).
List GitHub Actions workflows, workflow runs, jobs, and run artifacts in a repository.
Trigger GitHub Actions workflow runs or workflow dispatch events with custom inputs.
Get GitHub Actions workflow job logs with optional failed-only filter and tail lines.
Get code quality finding details for a repository.
Get code scanning alert details by alert number.
List code scanning alerts filtered by severity, state, ref, or tool name.
Assign Copilot to an issue with optional custom instructions and base branch.
Request Copilot review on an open pull request.
Assign Copilot to an issue with intent, confidence level, and rationale.
Get authenticated user profile details.
Get team members for an organization.
Get teams for a user or organization.
Get UI data including labels, assignees, milestones, branches, issue fields, and reviewers.
Get Dependabot alert details by alert number.
List Dependabot alerts filtered by severity and state.
Manage discussion comments: add, reply, update, delete, or mark answer.
Get discussion details by discussion number.
Get comments and nested replies for a discussion.
List discussion categories for a repository or organization.
List discussions in a repository or organization.
Create a new public or private single-file Gist.
Get Gist contents and metadata by Gist ID.
List Gists for a user or authenticated account.
Update an existing Gist description or file content.
Get Git repository file tree, optionally recursive with path filtering.
Create a new Git branch in a repository from a source branch.
Create or commit updates to a file in a repository.
Create a new repository under personal account or organization.
Delete a file from a repository with a commit message.
Delete a repository (requires delete_repo scope).
Fork a repository to an organization or authenticated user account.
Get commit details with optional diff patch and line stats.
Get file or directory contents, metadata, or file downloads.
Get the latest published release of a repository.
Get release details by Git release tag name.
Get Git tag details by tag name.
List branches in a repository with pagination.
List commit history with author, date range, path, and SHA filtering.
List releases for a repository with pagination.
List repository collaborators with affiliation filtering.
List Git tags for a repository.
Commit and push multiple files in a single atomic commit.
Search code across repositories with advanced qualifiers and regex patterns.
Search commit messages on default branch by author, date, or query.
Search repositories by name, stars, language, topic, and owner.
Get secret scanning alert details by alert number.
List secret scanning alerts filtered by resolution, secret type, and state.
Get global security advisory by GHSA ID.
List global security advisories filtered by CVE, ecosystem, CWE, and severity.
List security advisories for an organization.
List security advisories for a specific repository.
