Airtable MCP Server

Airtable MCP Server

Lets Claude read, create, update, and search records in an Airtable base using your own API key.

Category
Visit Server

README

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.

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured