Back to converter (any format)
CursorCodex

Convert Cursor mcp.json to Codex CLI config.toml

Convert your Cursor mcp.json (JSON) to OpenAI Codex CLI config.toml ([mcp_servers.x] tables). Handles env, headers, and the JSON→TOML structural shift.

Your config never leaves your browser.
Paste your mcp.json
Runs in your browser. Nothing uploaded.
0 chars
Paste your mcp.json to convert it to config.toml, or click to see how it works.

What's actually different

Cursor's JSON `mcpServers` becomes Codex's TOML `[mcp_servers.<id>]` tables. The conversion is mechanical for the common shape (command, args, env, url, headers); Cursor-specific fields like `envFile` and `auth` get warnings.

Conversion gotchas

  • Each Cursor server entry becomes a `[mcp_servers.<name>]` table in TOML.
  • Cursor's `type: "stdio"` is dropped — Codex CLI infers transport from `command` vs `url`.
  • `env` and `headers` JSON objects become TOML inline tables.
  • Cursor `envFile` and `auth` blocks have no Codex equivalent and are flagged.

Other conversions

Validate after converting

Paste the converted output into our Codex CLI validator to confirm it'll load.