

Convert Claude Desktop JSON to Codex CLI config.toml
Convert claude_desktop_config.json (JSON) to OpenAI Codex CLI config.toml ([mcp_servers.x] tables). Handles env, args, and headers — runs in your browser.
Your config never leaves your browser.
Paste your
claude_desktop_config.jsonRuns in your browser. Nothing uploaded.
0 chars
Paste your
claude_desktop_config.json to convert it to config.toml, or click to see how it works.What's actually different
OpenAI Codex CLI is the only major MCP client that uses TOML. Each server becomes a [mcp_servers.<id>] table with snake_case keys, and inline tables replace JSON object values for env/headers. The structural conversion is mechanical, but Codex-specific fields (startup_timeout_sec, bearer_token_env_var, etc.) can only be added by you — the converter handles the common shape.
Conversion gotchas
- •JSON objects (`env`, `headers`) become TOML inline tables: `env = { K = "v" }`.
- •Arrays use the same syntax in both: `args = ["-y", "x"]`.
- •TOML allows trailing commas in arrays/inline tables but not in tables themselves — the emitter omits them.
- •Codex-specific fields (snake_case) aren't auto-added; if you want startup timeouts or OAuth, add them after conversion.
- •The Windows path for Codex CLI's config.toml isn't documented in OpenAI's reference — use the same `~/.codex/config.toml` convention.
Other conversions
Validate after converting
Paste the converted output into our Codex CLI validator to confirm it'll load.