TL;DR. Open Codex → Settings → MCP servers → Add server, name it, paste the URL, save, then click Authenticate. For Hatchable, the URL is https://hatchable.com/mcp — OAuth signs you in and creates the free account.

What is an MCP server in Codex?

OpenAI Codex is an AI coding agent with a desktop app and CLI. It supports the Model Context Protocol (MCP), which lets it call external tools (databases, APIs, deployment targets) as first-class functions during a session. Registering an MCP server in Codex adds a new tool category to what Codex can do without any new model training.

Hatchable's MCP server exposes tools for creating projects, deploying code, and querying the app's database, so Codex can take you from "describe the app" to "live URL" in one session.

Before you start

Add the server

  1. Open Codex settings

    In the Codex desktop app, open Settings from the sidebar (or the gear icon), then select MCP servers. Click + Add server.

  2. Fill in the custom MCP form

    In the Connect to a custom MCP dialog:

    • Name: Hatchable
    • Transport: select Streamable HTTP
    • URL: https://hatchable.com/mcp

    Leave Bearer token env var, Headers, and Headers from environment variables blank — Hatchable uses OAuth, so none of them apply. Click Save.

  3. Authenticate

    Codex returns you to the MCP servers list with hatchable now showing. Click the Authenticate button on that row. A browser tab opens on hatchable.com — approve, and Codex stores the OAuth credentials for future sessions.

    If this is your first visit to Hatchable, approving also creates your free account. No email step, no credit card.

  4. Try it

    Back in Codex, ask it to do something that requires the server:

    "Build a small habit-tracker web app on Hatchable. Make it for personal use."

    Codex will propose a plan, ask for permission, then call Hatchable's tools to create the project, write the files, and deploy it. You'll get a live URL back in the same session.

Why OAuth over a bearer token? OAuth credentials are scoped per-client, rotate transparently, and can't leak out of Codex the way a shell env var can. Codex still supports bearer tokens via the Bearer token env var field for MCP servers that don't speak OAuth — Hatchable does, so you skip that.

Removing or updating a server

Click the gear icon next to hatchable in the MCP servers list. From there you can disable the server (toggle off), edit the URL, or remove it entirely. If OAuth ever falls out of sync — say you revoked Hatchable access from your account — click Authenticate again to re-link.

Troubleshooting

"Tool not available" or Codex doesn't list Hatchable tools

Walk through these in order:

Authenticate button does nothing, or the browser tab hangs

Codex runs in the cloud — does OAuth still work?

Yes. Codex's cloud execution mode reuses the OAuth credentials stored when you authenticated locally. They ride along with the session, authenticate the MCP calls from the cloud runner, and aren't logged on OpenAI's side.

Deploy Codex-built apps to a live URL, free.

Hatchable hosts everything your AI builds. Free forever — bring your own AI.

Get started free →

Frequently asked questions

Is Codex's MCP support the same as Claude Code's?

The protocol is the same — any server that speaks MCP works in both. The setup flow differs: Claude Code uses a claude mcp add CLI command, while Codex uses its desktop-app settings UI. Servers are interchangeable; only the client config differs.

Do I need an OpenAI account separately from my Hatchable account?

Yes. Your OpenAI account authenticates Codex to OpenAI's models. Your Hatchable account (created automatically the first time you click Authenticate) authorizes Codex's MCP calls to Hatchable. They're separate services and separate logins.

Can I use multiple MCP servers in Codex at once?

Yes — click + Add server for each one. Codex surfaces every enabled server's tools to the model in the same session, so you can mix Hatchable with other MCP-speaking services like databases, issue trackers, or browser automation.

Does Codex work with the free OpenAI tier?

The Codex app itself is free. You need an OpenAI account with model access for the calls Codex makes. Most Hatchable users on Codex spend a few cents per project because tool-heavy sessions are short.

What if my Codex version doesn't have the MCP servers tab?

The in-app MCP servers UI ships in recent builds. Update Codex to the latest version from openai.com/codex. Once you're on a current build, Settings will show MCP servers in the sidebar.