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
- 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.
- 2Or add it to Codex or the API
codex mcp add github --url https://api.githubcopilot.com/mcp/ codex mcp login githubThe 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_writeThings 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
How to add a custom MCP server to ChatGPT with developer modeConnect your own remote MCP server to ChatGPT using developer mode: requirements, auth options, step-by-step setup, refreshing tools and fixing common errors.Intermediate 15 minFor usersUse remote MCP servers in the OpenAI API and Agents SDKCall remote MCP servers from the OpenAI Responses API with the mcp tool type: server_url, allowed_tools, approvals and authorization, plus Agents SDK examples.Intermediate 20 minFor buildersChatGPT plugin and MCP server security checklistCheck these before installing a ChatGPT plugin or MCP server: publisher, OAuth scopes, write actions, prompt injection, data retention and admin controls.7 min read