clients/codex
Codex CLI logo

MCP servers for Codex CLI

Local

Codex CLI, OpenAI's open-source coding agent, declares MCP servers in ~/.codex/config.toml. Each runs over stdio and its tools are available in every session.

How to add a server Browse 20,566 compatible servers OpenAI website ↗

How to add an MCP server to Codex CLI

  1. Open or create ~/.codex/config.toml.
  2. Add a [mcp_servers.<name>] table with command and args, plus an optional env table for secrets.
  3. Start a new codex session and run /mcp to see the loaded servers and their tools.
~/.codex/config.toml
[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/projects"]

[mcp_servers.filesystem.env]
EXAMPLE_TOKEN = "..."

The example uses the reference filesystem server. Every listing on mcp.site shows its own command, args and environment variables, usually with a ready-made snippet for Codex CLI.

Hosted servers. For a hosted server, use a stdio bridge: set command = "npx" and args = ["-y", "mcp-remote", "https://example.com/mcp"].

Config formats change between releases. If a step looks different in your version, the OpenAI documentation ↗ is the source of truth.

Servers to try in Codex CLI

All 20,566 →
GM
GitHub MCP
Version Control Remote

Official GitHub MCP server for repository search, issues, pull requests, and CI/CD workflows in MCP-compatible AI clients.

★ 32.5k Updated 2h ago →
PM
Playwright MCP
Web Scraping

Browser automation, page inspection, screenshots, and web interaction from Claude, Cursor, and other AI agents.

★ 21.3k Updated 5h ago →
CO
Context7
Development Remote

Up-to-date, version-specific library documentation and code examples inside AI coding prompts.

★ 18.2k Updated 1d ago →
FM
Firecrawl MCP
Web Scraping Remote

Powerful web scraping and search capabilities for LLM clients like Cursor and Claude.

★ 12.4k Updated 3h ago →
SM
Supabase MCP
Database Remote

Manage Supabase projects, databases, auth, storage, and SQL workflows from AI agents.

★ 9.8k Updated 9h ago →
CM
Cloudflare MCP
Cloud Service Remote

Deploy, configure & interrogate resources on the Cloudflare developer platform (Workers, KV, R2, D1).

★ 7.9k Updated 1d ago →
EM
Exa MCP
Search Remote

Search engine made for AIs by Exa.

★ 6.1k Updated 4h ago →
NM
Notion MCP
Productivity Remote

Connect AI agents to Notion pages, databases, and workspaces.

★ 5.4k Updated 7h ago →
WO
WooCommerce Orders
GetMCP Finance Remote

Query orders, customers, and products from your WooCommerce store.

★ 256 Hosted · OAuth →
GP
Ghost Publisher
GetMCP Marketing Remote

Create, edit, and schedule Ghost blog posts and newsletters.

★ 53 Hosted · API Key →
ME
Medplum
Database Remote

FHIR-native healthcare data platform tools for AI agents.

★ 2.5k Added 2 weeks ago →
PM
PLUR Memory
Memory

Persistent long-term memory graph shared across MCP clients.

★ 226 Added 1 week ago →
>_ esc
↑↓ navigate↵ openesc close