Skip to main content
Glama
Airtable MCP Server

Airtable MCP Server

by medlag

Airtable MCP Server

CI License: MIT

A Model Context Protocol server that lets Claude (or any MCP client) read, create, update, and search records in an Airtable base through your own API key.

It exposes five tools over stdio:

Tool

What it does

list_records

List records from a table, with optional view, page size, max records, and an Airtable filterByFormula.

get_record

Fetch a single record by its ID.

create_record

Create a record from a fields object.

update_record

Update selected fields on an existing record.

search_records

Case-insensitive substring search on one field.

Why

Airtable is where a lot of small teams keep their CRM, content calendar, or ops tracker. This server puts that data one instruction away from Claude — "add a lead for Acme Corp", "which deals are still open?" — without exporting anything or writing glue code per question.

Related MCP server: Airtable MCP Server

Requirements

  • Node.js 18+ (uses the built-in fetch)

  • An Airtable personal access token with data.records:read and data.records:write scopes

  • The base ID of the base you want to expose (from the base URL: airtable.com/appXXXXXXXXXXXXXX/...)

Install & build

git clone https://github.com/medlag/airtable-mcp-server.git
cd airtable-mcp-server
npm install
npm run build

Configuration

The server reads two required environment variables:

Variable

Required

Description

AIRTABLE_API_KEY

yes

Airtable personal access token.

AIRTABLE_BASE_ID

yes

ID of the base to operate on.

AIRTABLE_API_URL

no

Override the API base URL (defaults to https://api.airtable.com/v0).

Copy .env.example to .env for local runs, or set the variables in your MCP client config (below). The token is only ever read from the environment — it is never logged or written to disk.

Use it with Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "airtable": {
      "command": "node",
      "args": ["/absolute/path/to/airtable-mcp-server/dist/index.js"],
      "env": {
        "AIRTABLE_API_KEY": "patXXXXXXXXXXXXXX.XXXXXXXX",
        "AIRTABLE_BASE_ID": "appXXXXXXXXXXXXXX"
      }
    }
  }
}

Restart Claude Desktop; the five tools appear under the plug icon.

Use it with Claude Code

claude mcp add airtable \
  --env AIRTABLE_API_KEY=patXXXXXXXXXXXXXX.XXXXXXXX \
  --env AIRTABLE_BASE_ID=appXXXXXXXXXXXXXX \
  -- node /absolute/path/to/airtable-mcp-server/dist/index.js

Example prompts

Once connected, you can ask things like:

  • "List 10 rows from the Leads table."

  • "Create a record in Tasks with Name 'Ship v1' and Status 'In progress'."

  • "Find every record in Contacts whose Company contains 'acme'."

  • "Mark record recABC123 in Tasks as Done."

list_records and search_records return a single Airtable page — up to 100 records. Narrow with filterByFormula, a view, or maxRecords rather than expecting the full table.

Design notes

  • Typed REST wrapper — each Airtable endpoint maps to one method in src/airtable-client.ts; API errors surface as a structured AirtableError with the HTTP status and Airtable's own message.

  • stdout is sacred — MCP speaks JSON-RPC over stdout, so all logs go to stderr (src/logger.ts).

  • Fail fast on config — missing env vars throw a clear message at startup instead of a confusing 401 later (src/config.ts).

  • Input validation — every tool argument is validated with zod before a request is made.

Development

npm run dev        # tsc --watch (build config)
npm run typecheck  # type-check src + tests, no emit
npm test           # unit tests (Node's built-in runner via tsx)

Testing

The suite runs on Node's built-in test runner — no test framework dependency — and covers the logic that must not regress:

  • config — missing/blank env vars fail fast; values are trimmed; the API URL override is honoured.

  • formula — search_records escapes backslashes and double quotes, and the field name is validated at the tool boundary, so a crafted value or field can't break out of the Airtable formula (injection guard).

  • airtable-client — GET/POST/PATCH shapes, bearer auth, query-string building, and both error paths (non-2xx → AirtableError with the API's message and status; transport failure → status 0). The fetch implementation is injected, so these run offline.

CI runs typecheck → build → test on Node 18, 20, and 22.

License

MIT — see LICENSE.

Available Tools

5 tools
create_recordCreate recordB

Create a new record in an Airtable table from a fields object.

Inputs: table (required), fields (required).

get_recordGet recordA

Fetch a single Airtable record by its ID.

Inputs: table (required), recordId (required).

list_recordsList recordsA

List records from an Airtable table (a single page, up to 100 records), with optional view, page size, max records, and an Airtable filterByFormula expression.

Inputs: table (required), view, pageSize, maxRecords, +1 more.

search_recordsSearch recordsA

Find records whose given field contains a text value (case-insensitive substring match, single page of up to 100 records).

Inputs: field (required), table (required), value (required), maxRecords.

update_recordUpdate recordA

Update fields on an existing Airtable record. Only the provided fields change.

Inputs: table (required), fields (required), recordId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool targets a distinct operation: get by ID, list with optional formula, create, update, and substring search. Search and list have some overlap, but their purposes are clearly differentiated by descriptions.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with snake_case (get_record, list_records, create_record, update_record, search_records), making the set predictable.

    Tool Count5/5

    Five tools is well-scoped for a focused Airtable CRUD-like server, covering core read and write operations without unnecessary bloat.

    Completeness3/5

    Missing delete_record is a notable gap in lifecycle coverage. Read (get/list/search), create, and update are present, but the inability to delete records limits full CRUD operations.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides tools for AI assistants to interact with Airtable databases, enabling CRUD operations on Airtable bases and tables.
      7 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides comprehensive access to the Airtable Web API, enabling AI assistants to create and manage bases, tables, fields, records, views, and webhooks with support for 25+ field types, batch operations, and enterprise features.
      32
      16 npm
      2
      MIT