Skip to main content

airtable-write-mcp

Safe Airtable writes from Claude — dry-run previews by default. Bulk upsert shipped; undo on the roadmap.

An MCP (Model Context Protocol) server that lets Claude Desktop, Claude Code, Cursor, or Cline write to your Airtable bases safely: every write is previewed as a dry-run plan first, and nothing changes in Airtable until you confirm. No LLM runs inside the server — it is a deterministic tool server; your MCP client's model does the language work.

You:    Add Acme Corp to my CRM Leads table, status New.
Claude: Here's the plan — create 1 record in Leads: {Name: "Acme Corp", Status: "New"}.
        Nothing written yet. Confirm?
You:    Yes.
Claude: Done — rec0123456789abcd created. https://airtable.com/app…/tbl…/rec…

Why this server

Reading and writing Airtable from an MCP client is table stakes — the official Airtable MCP server and several community servers already do it. What none of them offer is a safety layer for writes. That is the only thing this project is about.

Server Write records Bulk upsert + dedup Dry-run preview Per-row failure report Undo Auth
Official Airtable MCP ✅ create + update ❌ ❌ ❌ ❌ OAuth or PAT
domdomegg/airtable-mcp-server (top community) ✅ create/update/delete ❌ ❌ ❌ ❌ PAT
airtable-write-mcp (this server, v0.2.0) ✅ create + update + bulk upsert (no delete) ✅ shipped (v0.2.0) ✅ default-on ✅ shipped (v0.2.0) 🔜 planned (v0.3.0) PAT

Incumbent capabilities audited 2026-07-03. Our row states shipped-version truth only — planned features link to the roadmap and are never claimed before tools/list proves them.

Tools (v0.2.0)

Tool What it does
list_bases List every base your PAT can access — call first to resolve base_id.
list_tables List a base's tables and field schemas (types, writable flags, select options).
list_records List records with a structured filter, view, and pagination (values escaped safely).
create_record Create one record — dry-run by default, writes only after confirmation.
update_record Update fields on one record (others untouched) — dry-run by default.
bulk_upsert Upsert up to 1,000 records, matching on 1-3 key_fields — dry-run by default, and always requires confirmation, even for one record.

How write safety works

Every mutating tool defaults to dry_run=true:

  1. Dry-run — the server validates your fields against the live table schema (unknown fields get a did-you-mean, read-only fields are skipped and reported, select options are checked) and returns a would_write plan plus a single-use confirm_token. Zero writes happen.
  2. Confirm — the model re-calls the tool with that token and dry_run=false. The server verifies the plan hash still matches the arguments (any drift aborts), then writes.
  3. Tokens are single-use and expire after a short TTL; a replayed or stale token is refused with a structured error.

There is no way to skip the preview by accident — you'd have to set an opt-out env var yourself (see Configuration).

bulk_upsert

Upsert up to 1,000 records in one call, matching existing rows on 1-3 key_fields.

  • Dry-run plan — validates every row against the table schema, flags duplicate or missing key values inside your input, and returns {to_create, to_update, invalid} with at most 10 sample rows per bucket, plus a confirm_token. Zero writes.
  • Always confirmed — unlike create_record / update_record, bulk_upsert requires the confirm step even for a single record.
  • Confirmed write — runs through Airtable's native performUpsert in batches of 10, so the created / updated counts are Airtable's own, not guessed.
  • Failures — on_error="stop" (default) halts after the first failing batch and marks the rest not_attempted; on_error="continue" keeps going and lists the failed rows (per batch of 10, each with Airtable's error message; the list is capped at 100 rows and failures_truncated flags it — counts stay exact). A revoked or insufficient token always stops the run, whatever on_error is. created + updated + failed + not_attempted accounts for every valid row; rows rejected by validation are reported separately as invalid, so nothing is dropped silently.
  • clear_empty (default false) — blank values on non-key fields are left out of the write, so they never erase existing data on a matched row. Pass true to let a blank overwrite.
  • plan_deltas — if the confirmed run's actual created/updated counts differ from the plan's prediction, the report carries plan_deltas (planned vs actual per bucket, plus the input indices of the affected batches); it is absent when the plan held.

Preview semantics

The dry-run matcher implements the key normalization Airtable documents for performUpsert.fieldsToMergeOn. Matcher behaviors Airtable does not document (for example how case, whitespace, or number-vs-string key values are coerced) may differ at execution time. When that changes the outcome, the divergence is reported in the confirmed result's plan_deltas rather than swallowed. plan_deltas reconciles aggregate bucket counts, so two offsetting divergences can cancel out; treat the preview as a best-effort plan, not a guarantee.

Install

1. Create an Airtable Personal Access Token

Create a PAT at airtable.com/create/tokens with these scopes, granted to the bases you want to use:

  • data.records:read
  • data.records:write
  • schema.bases:read

Your token stays on your machine — it is read from an env var (or the macOS Keychain) at tool-call time, never bundled, logged, or echoed back in errors.

2. Add the server to your MCP client

The same mcpServers JSON shape works everywhere:

{
  "mcpServers": {
    "airtable-write-mcp": {
      "command": "uvx",
      "args": ["airtable-write-mcp"],
      "env": { "AIRTABLE_PAT": "<your PAT>" }
    }
  }
}
Client Where to put it
Claude Code .mcp.json at your repo root — or claude mcp add airtable-write-mcp -e AIRTABLE_PAT=<pat> -- uvx airtable-write-mcp
Claude Desktop ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
Cursor .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Cline MCP Servers settings UI (cline_mcp_settings.json)

Restart the client after editing; the server appears with its six tools.

macOS Keychain instead of a plaintext PAT — store the token once, keep the config secret-free:

security add-generic-password -U -s airtable_mcp_key -a "$USER" -w "<your PAT>"

then use "env": { "AIRTABLE_PAT_KEYCHAIN_SERVICE": "airtable_mcp_key" } in the snippet instead of AIRTABLE_PAT. The Keychain is read lazily on your first tool call — never at client startup — so adding the server won't trigger a Keychain prompt until you actually use it.

Local development — run from a checkout instead of PyPI:

git clone https://github.com/archypelago/airtable-write-mcp && cd airtable-write-mcp
make install
poetry env info --path   # → <venv>

then point command at <venv>/bin/airtable-write-mcp (the direct binary avoids slow poetry run startup shims that some clients time out on).

3. First run (step 0)

Ask something like "List my Airtable bases." Your client will ask permission for each tool the first time it's used — choose Always allow for the three read tools (list_bases, list_tables, list_records). Writes then cost at most two approvals: the dry-run and the confirm — that's the safety feature, not friction.

Configuration

Env var Required Meaning
AIRTABLE_PAT one of these two Your Airtable Personal Access Token.
AIRTABLE_PAT_KEYCHAIN_SERVICE one of these two macOS: name of a Keychain generic-password item holding the PAT (read lazily at first tool call). Ignored when AIRTABLE_PAT is set.
AIRTABLE_RPS no Lower the per-base request rate below the default 4 rps (values above 4 clamp to 4).
CONFIRM_SKIP_UNDER no Opt-out, default 0 (off): skip the dry-run/confirm round-trip for writes touching fewer than N records (hard cap 25). Leave unset unless you know you want this. Never applies to bulk_upsert.

The server starts and answers tools/list with no secrets present — a missing PAT fails the individual tool call with a structured setup error naming the exact env var, never the server.

Roadmap

Version Adds Status
v0.1.0 The first five tools (all but bulk_upsert); dry-run/confirm write safety; schema validation; rate limiting + 429/5xx resilience ✅ shipped
v0.2.0 bulk_upsert — paste 200 rows in chat, dedup against existing records by key field, batched under the rate limit, per-row report (N created / M updated / K failed / J not attempted, invalid rows listed separately; 0 silently dropped) ✅ shipped
v0.3.0 list_operations + undo_operation — an operation journal and conflict-safe undo planned
Hosted OAuth connect (no token handling), works in Claude web/mobile, retained audit + undo history planned, gated on demand

Development

make install    # poetry lock + install (self-provisions the venv)
make test       # pytest — in-memory MCP client harness, no network
make lint       # ruff check + format check
make check      # the full pre-merge gate
make run        # start the stdio server locally
make build      # wheel + sdist; smoke with: uvx --from dist/airtable_write_mcp-*.whl airtable-write-mcp

Tests talk to the server through a real in-memory MCP client session — no subprocess, no model mocking. Design rules that will not change: no LLM calls inside the server, stderr-only logging (stdout belongs to the protocol), and every mutating tool defaults to dry-run.

License

MIT

Metadata

Release files for airtable-write-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airtable-write-mcp 0.2.0
File Size Uploaded Provenance Actions
airtable_write_mcp-0.2.0.tar.gz 63.0 kB Without provenance Details for airtable_write_mcp-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airtable-write-mcp 0.2.0
File Interpreter ABI Platform Actions
airtable_write_mcp-0.2.0-py3-none-any.whl Python 3 none any Details for airtable_write_mcp-0.2.0-py3-none-any.whl

Total release size: 124.7 kB

Release files / airtable_write_mcp-0.2.0.tar.gz

Download URL airtable_write_mcp-0.2.0.tar.gz
Size 63.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f111194065e733672ddd87c2f3fe87089665e90b17653aa172391e10590a0603
BLAKE2b-256 checksum
How to use checksums
654fabae5bf4734819bd1c0e0bba1114b4af2705eafd9bb5fe3e59680ee1492f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.3 Darwin/25.5.0

Release files / airtable_write_mcp-0.2.0-py3-none-any.whl

Download URL airtable_write_mcp-0.2.0-py3-none-any.whl
Size 61.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d052c51819abb411f90fc3f5f0ca48be54cfa86c7ad85dadb5e1c8fc890a2daf
BLAKE2b-256 checksum
How to use checksums
a7091b3dd3379212a40e6e7c9ee3db1fafc4a56155c17e4303e7d5915793b4e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.3 Darwin/25.5.0

Security for airtable-write-mcp 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page