MCP server

GitHub

Manage repos, issues, pull requests and Actions from your AI agent

GitHub's official MCP server connects AI tools to repositories, issues, pull requests, Actions, code security alerts and more. It is available as a hosted remote server with OAuth or as a local Docker/binary server using a personal access token. Toolsets can be enabled selectively to limit the exposed tools.

Also available as

Connect

  1. 1Connect it in ChatGPT

    Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://api.githubcopilot.com/mcp/ as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.

  2. 2Or add it to Codex or the API
    codex mcp add github --url https://api.githubcopilot.com/mcp/
    codex mcp login github

    The login command opens a browser to finish OAuth.

Configs are generated from the publisher's documented endpoint. Check their docs for plan requirements and scopes. New to this? Read the step-by-step tutorial.

Tools 12

get_meget_file_contentslist_issuessearch_issuesissue_writecreate_pull_requestpull_request_readmerge_pull_requestcreate_branchactions_listlist_code_scanning_alertsprojects_write

Things to ask

  • “List the open issues assigned to me in my-org/api”
  • “Open a pull request from feature/login into main with a summary of the changes”
  • “Why did the latest GitHub Actions run on main fail?”
  • “Show code scanning alerts for this repository”

Learn more

Related