# Codex

> Add the Reveata MCP server to OpenAI Codex and ask about your analytics from the terminal.

Codex connects to remote MCP servers and signs in to them with OAuth.

```bash
codex mcp add reveata --url https://reveata.com/api/mcp
codex mcp login reveata
```

`codex mcp login` opens Reveata in your browser: pick the websites and permissions, then approve. Start `codex` and run `/mcp` to see the Reveata tools, or run `codex mcp list` in the terminal.

## Add it by hand

In `~/.codex/config.toml`:

```toml
[mcp_servers.reveata]
url = "https://reveata.com/api/mcp"
```

Then run `codex mcp login reveata`. The Codex IDE extension reads the same file.

Try: "Which pages brought the most new customers last month?"

## Good to know

- Read-only access is the default. Codex can change goals or funnels only if you grant those permissions.
- A connection never has more access than your role on each website.
- Revoke access under **Account → API / MCP → Connected apps** in Reveata.
