Skip to main content
Codex supports MCP servers in both the CLI and the IDE extension. Configuration is shared between them, so you only set it up once. Use either option below; both end with the same entry in config.toml.

Option A, CLI

Run from your terminal:
Then open ~/.codex/config.toml and add your key to the entry it created. Please make an account at openfinance.tech to get your keys. The finished entry looks like this:
Verify it is configured:

Option B, edit config.toml

Open ~/.codex/config.toml (or a project-scoped .codex/config.toml in trusted projects) and add:
Codex uses TOML, not JSON. The header block is a TOML inline table, so note the = instead of :.

First-time MCP users

If this is your first MCP server in Codex, you may need to enable the rmcp client. Add the following to ~/.codex/config.toml:

Verify

After starting Codex (CLI or IDE), run /mcp in the TUI or open the IDE MCP panel. openfinance-tech should appear with its tools listed.