MCP server / GitHub

GitHub MCP Server for Codex

Give Codex tools for GitHub repositories, issues and pull requests.

Docs reviewedChecked 2026-09-10Runtime not tested

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

  1. Follow GitHub's Codex guide to prepare a PAT with access appropriate to the task.
  2. Make it available to your local process as GITHUB_PAT_TOKEN without placing it in project source.
  3. Add the hosted server using the documented command.
  4. 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_TOKEN
Review before running
Read the installation source

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