Table of contents

When you hand Codex a task to build an Airtable sync or an integration endpoint, you'd describe your base's structure in the prompt.
That description rarely matches the real base; the source of truth lives in Airtable, not the few lines you wrote into the task.
To give Codex direct access to Airtable as it works through your coding tasks, we'll show you how to connect Airtable with Merge Agent Handler's Airtable MCP server.
Merge Agent Handler connects Codex to Airtable's API through the Merge CLI.
You install the CLI, authenticate once, and run a single setup command from your project root.
That command writes a Merge CLI section to your project's AGENTS.md file, which tells Codex when to call merge search-tools and merge execute-tool to reach Airtable.
Merge also manages your Airtable OAuth credentials and token refresh on your behalf, so no token state lives in your repo or local environment.
Related: How to use the Airtable MCP in Claude Code
Before getting started, you'll need the following:
pipx --version to confirm, or install via pip install pipx)If you want to connect Merge Agent Handler's Airtable MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Install the Merge CLI with pipx: pipx install merge-api
Verify the install: merge --version
Run the following to authenticate the CLI with your Merge Agent Handler account: merge login
This links the CLI to your Merge account and stores your session credentials locally.
From the root of the project where you want Codex to reach Airtable, run:
This writes a Merge CLI section to your project's AGENTS.md file so Codex knows to use the CLI when a task needs Airtable data. The command is idempotent, safe to re-run if you need to reset the configuration.
Commit the updated AGENTS.md so the configuration travels with the repo.
Related: A guide to integrating the Airtable MCP with Cursor
Create a Codex task that needs live Airtable data, for example: "Read the field schema and a real record from my launches table, then scaffold a sync that maps Airtable fields, including linked records and attachments, into our internal schema."
The first time Codex invokes an Airtable tool, a Magic Link will appear to complete connector authentication.

Once authenticated, Codex can reach your Airtable bases through Merge for every later task in this project.
{{this-blog-only-cta}}
In case you have more questions on setting up and using the Airtable MCP with Codex, we've addressed several more commonly-asked questions below.
With Airtable connected, Codex can:
You can build a self-hosted MCP server on Airtable's API. For one base and one use case, it's workable: generate a personal access token, pass it as a header, and start making calls.
It gets harder once tasks run across more than one base or more than one workspace.
Each token carries that workspace's full access, with no way to scope which operations a Codex task can call, and a self-hosted server only ever solves Airtable.
Airtable also holds product specs, launch data, and sometimes customer records, and a self-hosted setup has no field-level control or audit log to keep sensitive data out of a task's context.
Merge Agent Handler handles Airtable authentication centrally and exposes the same tools across every connected base through one connection. You can scope exactly which Airtable operations a Codex task can call, and every call is logged with identity, timestamp, and inputs.
For an agent working with production Airtable data, scoped access plus full audit logging is the foundation you want in place first.
Airtable holds the field schemas, select option values, and linked record structures that integration code has to match exactly.
Codex tasks that build syncs, endpoints, or data pipelines need that ground truth to produce code that works against the real base.
The alternative is describing your base's structure in the prompt, and those descriptions are always incomplete. An assumed field shape, a label used instead of a real select option, or a missed attachment structure is enough to make Codex generate code that breaks on real data.
Connecting Airtable lets Codex read the actual structure when a task needs it.
Yes, Merge for Workforce is built to help organizations provision, secure, and govern how employees connect AI tools like Codex to systems like Airtable.
Common patterns include:
Taken together, employees can use the Airtable MCP to scaffold syncs against real field schemas, generate mappings grounded in actual select option values, and build integrations tied to real linked record structure. All the while, IT keeps centralized control over which bases each agent can reach.
Use Merge Agent Handler’s 160+ connectors (including Airtable) to power reliable, secure, and powerful agents.