Airtable MCP Server

Airtable MCP Server

Exposes the full Airtable Web API including document attachment upload and download, runs on Cloudflare Workers with OAuth 2.1 authentication, and supports file staging via R2 for unlimited attachment sizes.

Category
Visit Server

README

Airtable MCP Server

A remote Model Context Protocol server that exposes the full Airtable Web API to Claude — including document (attachment) upload and download, which the official Airtable connector does not support.

It runs on Cloudflare Workers, authenticates each user with their own Airtable account via OAuth 2.1 (PKCE-S256), and stages file uploads through Cloudflare R2 so files of any size can be attached to Airtable and then removed from Cloudflare automatically.

Works as a claude.ai custom connector, in Claude Desktop, and in Claude Code.


Why this exists

Uploading a file from your computer into an Airtable attachment field — and pulling files back out — without you having to think about hosting, URLs, or cleanup. You point Claude at a record; Claude uploads the document; the server handles staging, ingestion, and teardown.

How document upload works

Airtable ingests attachments from a publicly reachable URL, which it then re-hosts on its own storage. This server automates that safely, supporting files up to Airtable's 5 GB per-file limit:

  1. The file is staged in a private R2 bucket — small files inline as base64, large files streamed straight to R2 via a presigned PUT URL (bytes never pass through the Worker, so there's no ~100 MB request-body ceiling).
  2. The server hands Airtable a short-lived presigned GET URL for the staged object.
  3. Airtable fetches and re-hosts the file.
  4. The server polls the record until Airtable's re-hosted copy appears, then deletes the staged file from R2.

Presigned URLs are generated with an R2 S3 API token; the bucket itself stays private.

Architecture

Piece What it does
McpAgent (Durable Object) Hosts the MCP server + tools, one instance per user session
@cloudflare/workers-oauth-provider Makes the Worker an OAuth 2.1 server for MCP clients (claude.ai does dynamic client registration)
Airtable OAuth (upstream) Each user signs in with their own Airtable account; tokens stored in KV, auto-refreshed (with rotation)
R2 bucket Temporary staging for attachment bytes
Presigned R2 URLs Client PUTs large files straight to R2; Airtable GETs the staged file to ingest — bytes bypass the Worker

Transport: Streamable HTTP at /mcp (plus legacy /sse).


Tools

Recordslist_records, get_record, create_records, update_records (PATCH + upsert), replace_records (PUT), delete_records (create/update/delete auto-batch in groups of 10)

Schemalist_bases, get_base_schema, create_base, create_table, update_table, create_field, update_field

Commentslist_comments, create_comment, update_comment, delete_comment

Webhookscreate_webhook, list_webhooks, delete_webhook, list_webhook_payloads, refresh_webhook, manage_webhook_notifications

Attachmentsupload_attachment, create_attachment_upload_url, download_attachment

Userwhoami

The server ships a detailed instructions block so Claude picks the right tool and follows the correct sequence (resolve IDs → read/write; stage → attach → cleanup) with minimal prompting.


Setup & deploy

Prerequisites

  • Node.js 18+ and the Cloudflare Wrangler CLI (npm i -g wrangler or use npx), logged in (wrangler login).
  • R2 enabled on your Cloudflare account (Dashboard → R2 → enable). Required before deploy.
  • An Airtable account.

1. Install

npm install
npm run cf-typegen   # generates worker-configuration.d.ts

2. Create resources

npx wrangler kv namespace create airtable-mcp-server-OAUTH_KV   # put the id in wrangler.jsonc
npx wrangler r2 bucket create airtable-mcp-files

3. First deploy (to get your Worker URL)

npm run deploy

Note the URL, e.g. https://airtable-mcp-server.<your-subdomain>.workers.dev.

4. Register an Airtable OAuth integration

Go to https://airtable.com/create/oauthRegister new OAuth integration.

  • Name: anything (e.g. "My Airtable MCP").
  • OAuth redirect URL: https://airtable-mcp-server.<your-subdomain>.workers.dev/callback
  • Scopes (must match the server): data.records:read, data.records:write, data.recordComments:read, data.recordComments:write, schema.bases:read, schema.bases:write, webhook:manage, user.email:read.
  • Copy the Client ID, then generate and copy the Client secret (shown once).

5. Create an R2 S3 API token

Cloudflare dashboard → R2Manage API TokensCreate API Token (Object Read & Write). Copy the Access Key ID and Secret Access Key.

6. Set secrets

npx wrangler secret put AIRTABLE_CLIENT_ID
npx wrangler secret put AIRTABLE_CLIENT_SECRET
npx wrangler secret put R2_ACCESS_KEY_ID
npx wrangler secret put R2_SECRET_ACCESS_KEY

R2_ACCOUNT_ID is already set as a var in wrangler.jsonc.

7. Redeploy

npm run deploy

Connecting

  • claude.ai → Settings → Connectors → Add custom connector → paste https://<your-worker>/mcp. Sign in with Airtable when prompted.
  • Claude Desktop → Settings → Connectors → add the same /mcp URL.
  • Claude Codeclaude mcp add --transport http airtable https://<your-worker>/mcp

Large files: truly unlimited uploads work best from Claude Code, which can stream bytes to the signed upload URL. From claude.ai/Desktop, files pass through the conversation and are bounded by context size.

Local development

cp .dev.vars.example .dev.vars   # fill in secrets
npm run dev

License

MIT

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
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

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