GitHub MCP Server

Lets an assistant read code and manage repositories, issues, pull requests and Actions on GitHub.

Official · GitHub Go Remote (hosted) · Streamable HTTPLocal · stdio Git and code hostingDeveloper toolsDevOps and monitoring

72 popularity score ★ 34k

Connect your client

Remote (hosted)

Add in one click

Opens the app, which asks before it adds the server.

Or add it by command or config

Its sign-in lets no client register itself: a client signs in only with an app (a client ID) registered with its maker first, so these snippets work only after that step.

Claude CodeTerminal
claude mcp add --transport http github https://api.githubcopilot.com/mcp/
Claude (desktop and web)Settings → Connectors → Add custom connector
https://api.githubcopilot.com/mcp/
ChatGPTSettings → Apps → Advanced → Developer mode, then Create app
https://api.githubcopilot.com/mcp/
Cursor~/.cursor/mcp.json
{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}
VS Code.vscode/mcp.json
{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}
Codex~/.codex/config.toml
[mcp_servers.github]
url = "https://api.githubcopilot.com/mcp/"
Gemini CLITerminal
gemini mcp add --scope user --transport http github https://api.githubcopilot.com/mcp/

Settings 5

GITHUB_PERSONAL_ACCESS_TOKEN Optional: GitHub personal access token for the local server; takes precedence over the OAuth login.
GITHUB_TOOLSETS Optional: Comma-separated toolsets to enable, for example default,actions.
GITHUB_READ_ONLY Optional: Set to 1 to offer only read-only tools.
GITHUB_LOCKDOWN_MODE Optional: Set to 1 to filter public-repository content from users without push access.
GITHUB_HOST Optional: Hostname for GitHub Enterprise Server or ghe.com.

What it does

The GitHub MCP Server is GitHub's own MCP server. It lets an assistant browse and search code and files in any repository the user can access, look at commits, branches, tags and releases, create and update issues and pull requests, review pull requests, follow GitHub Actions runs and their logs, and read security findings such as code scanning, Dependabot and secret scanning alerts. Optional toolsets cover discussions, gists, notifications, projects, labels, organisations, stargazers, governance rulesets and Copilot.

Tools are grouped into toolsets; by default context, repos, issues, pull requests and users are on, and others can be enabled with GITHUB_TOOLSETS or individual tools chosen. A read-only mode offers only tools that do not change anything, and a lockdown mode filters content from public repositories written by people without push access, to reduce prompt-injection risk.

GitHub hosts it at https://api.githubcopilot.com/mcp/, which signs in with OAuth in clients that support remote servers. It can also run locally from the Docker image ghcr.io/github/github-mcp-server (or a built binary), signing in through a browser OAuth flow or with a personal access token in GITHUB_PERSONAL_ACCESS_TOKEN. GitHub Enterprise Server and ghe.com are supported.

Tools 60

get_me
Get my user profile
get_team_members
Get team members
get_teams
Get teams
ui_get
Get UI data
create_branch
Create branch
create_or_update_file
Create or update file
create_repository
Create repository
delete_file
Delete file
delete_repository
Delete repository
fork_repository
Fork repository
get_commit
Get commit details
get_file_contents
Get file or directory contents
get_latest_release
Get latest release
get_release_by_tag
Get a release by tag name
get_tag
Get tag details
list_branches
List branches
list_commits
List commits
list_releases
List releases
list_repository_collaborators
List repository collaborators
list_tags
List tags
push_files
Push files to repository
search_code
Search code
search_commits
Search commits
search_repositories
Search repositories
add_issue_comment
Add comment to issue or pull request
get_label
Get a specific label from a repository
issue_read
Get issue details
issue_write
Create or update issue/pull request
list_issue_fields
List issue fields
list_issue_types
List available issue types
list_issues
List issues
search_issues
Search issues
sub_issue_write
Change sub-issue
update_issue_comment
Update issue comment
add_comment_to_pending_review
Add review comment to the requester's latest pending pull request review
add_reply_to_pull_request_comment
Add reply to pull request comment
create_pull_request
Open new pull request
list_pull_requests
List pull requests
merge_pull_request
Merge pull request
pull_request_read
Get details for a single pull request
pull_request_review_write
Write operations (create, submit, delete) on pull request reviews
search_pull_requests
Search pull requests
update_pull_request
Edit pull request
update_pull_request_branch
Update pull request branch
search_users
Search users
actions_get
Get details of GitHub Actions resources (workflows, workflow runs, jobs, and artifacts)
actions_list
List GitHub Actions workflows in a repository
actions_run_trigger
Trigger GitHub Actions workflow actions
get_job_logs
Get GitHub Actions workflow job logs
get_code_scanning_alert
Get code scanning alert
list_code_scanning_alerts
List code scanning alerts
get_dependabot_alert
Get dependabot alert
list_dependabot_alerts
List dependabot alerts
get_secret_scanning_alert
Get secret scanning alert
list_secret_scanning_alerts
List secret scanning alerts
discussion_comment_write
Manage discussion comments
get_discussion
Get discussion
get_discussion_comments
Get discussion comments
create_gist
Create Gist
get_gist
Get Gist Content

Similar servers