Codex
Codex keeps MCP servers in a TOML config shared by the CLI and the IDE extension. Add servers with codex mcp add or edit the file directly.
Setup
-
Run the command below, or add the TOML to
~/.codex/config.toml. -
Sign in with
codex mcp login linear. -
Start
codexand type/mcpto see the server's tools.
codex mcp add linear --url https://mcp.linear.app/mcp
[mcp_servers.linear]
url = "https://mcp.linear.app/mcp"
Prefer read-only? Use https://mcp.linear.app/mcp/readonly.
-
Run the command below, or add the TOML to
~/.codex/config.toml. -
Start
codexand type/mcpto see the server's tools.
codex mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/folder
[mcp_servers.filesystem]command = "npx"args = ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/folder"]
Replace the path. You can pass several folders, and the server can't access anything outside them.
Good to know
- Run
codex mcp listto see configured servers, andcodex mcp login <name>to sign in to OAuth servers. - Use
bearer_token_env_varto read a token from your environment instead of writing secrets into the config. - Tune
startup_timeout_sec(default 10) andtool_timeout_sec(default 60) for slow servers. - Limit what a server exposes with
enabled_toolsordisabled_tools.
Config file:
~/.codex/config.toml.codex/config.tomlWorks with 76 servers
- GitHub
- Context7
- Sentry
- Git
- SAP UI5
- SAP CAP
- Shopify Dev MCP
- Playwright
- Chrome DevTools
- Exa
- Brave Search
- Tavily
- Firecrawl
- Perplexity
- Fetch
- DeepWiki
- Microsoft Learn
- AWS Knowledge
- Hugging Face
- Supabase
- Neon
- MongoDB
- Vercel
- Cloudflare
- Kubernetes
- Terraform
- Grafana
- Docker MCP Gateway
- IONOS Cloud
- Notion
- Linear
- Atlassian Rovo
- Asana
- DeepL
- monday.com
- Slack
- Airtable
- n8n
- Zapier
- Make
- Contentful
- Webflow
- WordPress.com
- WordPress MCP Adapter
- Sanity
- Wix
- Figma
- Canva
- HeyGen
- ElevenLabs
- Mux
- Cloudinary
- Runway
- Descript
- Kapwing
- VEED Fabric
- Shotstack
- Kinocut
- DaVinci Resolve
- Ahrefs
- Semrush
- Similarweb
- Klaviyo
- Google Analytics
- HubSpot
- Intercom
- Zendesk
- Stripe
- Personio
- Shopware
- E-Rechnung
- PayPal
- Filesystem
- Memory
- Sequential Thinking
- Time