McpMCP guides

Connect with Codex

Add Era to Codex's config.toml; the key is read from an environment variable.

Codex reads the key from an environment variable rather than the config file. Put your key in a variable named ERA_MCP_KEY, then add the server.

Get your key first

Finish the first step of MCP setup: Apps → MCP → Create key. Compare the address in the example with the one on your card.

Configuration

~/.codex/config.toml
[mcp_servers.era]
url = "https://app.getera.io/api/mcp"
bearer_token_env_var = "ERA_MCP_KEY"

Check the connection

Terminal
codex mcp list

First read-only request

First request
List Era's tools. Find the demo customers and only summarise them.
Don't change any record; show the result with IDs and sources.

Check the tool's connection state and the real result of the records_find call. When you rotate the key, update the tool and reconnect. Role and module limits are enforced on Era's side; don't call an action that is waiting for approval again.

What's next

Official configuration docs