airtable-write-mcp

v0.2.0
airtable-write-mcp Checked 4 days ago Published 21 days ago

Safe Airtable writes from Claude — dry-run previews by default, with bulk upsert; undo on the roadmap.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_bases

List every Airtable base the configured PAT can access. Call this first to discover base_id values for the other tools. Example: list_bases().

list_tables

List a base's tables and field schemas (name, type, writable, select options). Call before creating or updating records to learn which fields are valid and writable. Results are cached 5 minutes per base_id. Example: list_tables(base_id="appXXXXXXXXXXXXXX").

ParameterTypeDescription
base_id *string

list_records

List records from a table, with an optional structured filter, view, and pagination. Use to find existing rows before creating or updating. Prefer the structured `filter` list (values are escaped automatically) over `raw_formula`, which is an advanced, unsafe-quoting escape hatch for formula syntax the structured filter can't express — provide only one of the two. Example: list_records(base_id="appXXXXXXXXXXXXXX", table="Tasks", filter=[{"field": "Status", "op": "eq", "value": "Done"}]).

ParameterTypeDescription
base_id *string
table *string
filter
max_recordsinteger
page_offset
raw_formula
view

create_record

Create one record in a table — dry-run by default, no write happens until confirmed. Call with the defaults first to preview: it validates `fields` against the table's schema and returns a `would_write` plan + `confirm_token`, making zero writes to Airtable. Re-call with dry_run=False and that confirm_token (or confirm=True and identical arguments) to actually create the record — see /mcp-conventions §3. Call list_tables(base_id=...) first if unsure which fields are writable. Example: create_record(base_id="appXXXXXXXXXXXXXX", table="Tasks", fields={"Name": "Ship v0.1.0"}).

ParameterTypeDescription
base_id *string
fields *object
table *string
confirmboolean
confirm_token
dry_runboolean
typecastboolean

update_record

Update one existing record's fields — dry-run by default, no write happens until confirmed. Non-destructive: only the fields you list change; every other field on the record keeps its current value. Call with the defaults first to preview: it validates `fields` against the table's schema and returns a `would_write` plan + `confirm_token`, making zero writes to Airtable. Re-call with dry_run=False and that confirm_token (or confirm=True and identical arguments) to actually update the record — see /mcp-conventions §3. Call list_records(base_id=..., table=...) first if unsure of the record_…

ParameterTypeDescription
base_id *string
fields *object
record_id *string
table *string
confirmboolean
confirm_token
dry_runboolean
typecastboolean

bulk_upsert

Upsert many records at once, matching existing rows on key_fields — dry-run by default. Call with the defaults first to preview: it validates every row against the table's schema, flags intra-input duplicate/missing key values, and returns a {to_create, to_update, invalid} plan with <=10-row samples per bucket plus a confirm_token, making zero writes to Airtable. The preview's create-vs-update guess is a best-effort read-then-diff match and MAY DIFFER from Airtable's own server-side merge on undocumented edge cases (case, whitespace, number-vs-string key coercion) — any such disagreement…

ParameterTypeDescription
base_id *string
key_fields *array
records *array
table *string
clear_emptyboolean
confirmboolean
confirm_token
dry_runboolean
on_errorstring
typecastboolean