# Connect Codex

Add the Keywrds MCP server to Codex.

**Server URL:** `https://keywrds.ai/mcp`

**How it signs in:** Sign in with Keywrds, or an API key

1. Run these to add Keywrds and sign in.

```bash
codex mcp add keywrds --url https://keywrds.ai/mcp
codex mcp login keywrds
```

Or with an API key instead of signing in:

```toml
# ~/.codex/config.toml
[mcp_servers.keywrds]
url = "https://keywrds.ai/mcp"
bearer_token_env_var = "KEYWRDS_API_KEY"
```

## Next

Ask Codex something like "What's the most valuable thing I can fix on my site this week, according to Keywrds?" See the [MCP tools](/docs/mcp/) for everything it can do, and [Connect an agent](/docs/connect/) for permissions and disconnecting.
