GitHub MCP Server for Codex
Give Codex tools for GitHub repositories, issues and pull requests.
What it adds
GitHub's official MCP server supports a hosted connection and local deployment. The documented Codex hosted route uses a token environment variable, while local deployment has separate authentication options.
githubissuespull-requests
Get set up
- Follow GitHub's Codex guide to prepare a PAT with access appropriate to the task.
- Make it available to your local process as GITHUB_PAT_TOKEN without placing it in project source.
- Add the hosted server using the documented command.
- Open Codex, inspect the server in the MCP list and confirm access to the intended repository.
codex mcp add github --url https://api.githubcopilot.com/mcp/ --bearer-token-env-var GITHUB_PAT_TOKENReview before running
Before you install
- GitHub account and permissions for intended repositories
- A securely configured PAT for the documented remote route
- Docker/runtime only when selecting local deployment
Compatibility & limitations
Documented for Codex and Cursor
Cursor: Dedicated Cursor guide documents hosted PAT setup and local alternatives.
- Hosted PAT and local OAuth setup paths are different.
- Organization policies and token permissions can restrict available actions.
This listing is based on source documentation. We have not installed or runtime-tested this asset.
How it fits together
Used by the OpenAI GitHub plugin's API-key path. Browser-testing collection inclusion supports issue handoff, not browser execution.
Playwright MCP · MCP serverInspect and interact with a browser through structured snapshots.GitHub · PluginBring GitHub repository context into Codex workflows.Sources & provenance
Reviewed 2026-09-10. Source revision: main (mutable; commit not pinned).
View recorded revision- Original sourcehttps://github.com/github/github-mcp-server
- Installation documentationhttps://github.com/github/github-mcp-server/blob/main/docs/installation-guides/install-codex.md
- License evidencehttps://github.com/github/github-mcp-server/blob/main/LICENSE
- Command sourcehttps://github.com/github/github-mcp-server/blob/main/docs/installation-guides/install-codex.md
- Repository history checked 2026-09-10https://github.com/github/github-mcp-server/commits/main/