MCP Server

Connect your data to Codex

Use Codex to query your databases, explore schemas, and run analyses — powered by Sequel's MCP server. Pick a data source to get started.

Setup

Add Sequel to Codex

One config block is all it takes. Replace sql_your_api_key with a key from Settings → API Keys, then restart Codex.

~/.codex/config.yaml

mcp_servers:
  sequel:
    type: http
    url: https://api.sequel.sh/mcp
    headers:
      Authorization: "Bearer sql_your_api_key"

Frequently asked questions

How do I configure Sequel for Codex CLI?

Add the Sequel MCP server to ~/.codex/config.yaml as shown above. Create the file if it doesn't exist. Replace `sql_your_api_key` with a real key from Settings → API Keys, then restart Codex.

Does Codex CLI support HTTP MCP servers?

Yes. Codex CLI supports MCP over HTTP (Streamable HTTP transport). The `type: http` field in the config tells Codex to use this transport when connecting to Sequel.

Can I limit which databases Codex can access?

Sequel MCP is scoped to your organization's connected data sources. You can create separate API keys for different environments and revoke them at any time from Settings → API Keys.

Is this the same as the original OpenAI Codex model?

No — Codex CLI is OpenAI's agentic terminal coding tool, separate from the original Codex language model. It uses the latest OpenAI models (GPT-4o and o-series) with MCP tool support.

Start using your data in Codex

Generate a free API key and connect in under a minute.