/ 目录 / 演练场 / airtable-mcp-server
● 社区 domdomegg ⚡ 即开即用

airtable-mcp-server

作者 domdomegg · domdomegg/airtable-mcp-server

Read and edit Airtable from chat — with a fine-grained PAT that scopes exactly which bases the AI can touch.

airtable-mcp-server by domdomegg is the community-standard Airtable MCP. Authenticates with an Airtable Personal Access Token, exposes 15+ tools for records/tables/fields/comments, and can be pinned to read-only via PAT scopes. Works with any Airtable base including enterprise workspaces.

为什么要用

核心特性

实时演示

实际使用效果

airtable.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "airtable": {
      "command": "npx",
      "args": [
        "-y",
        "airtable-mcp-server"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "airtable": {
      "command": "npx",
      "args": [
        "-y",
        "airtable-mcp-server"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "airtable": {
      "command": "npx",
      "args": [
        "-y",
        "airtable-mcp-server"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "airtable": {
      "command": "npx",
      "args": [
        "-y",
        "airtable-mcp-server"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "airtable",
      "command": "npx",
      "args": [
        "-y",
        "airtable-mcp-server"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "airtable": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "airtable-mcp-server"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add airtable -- npx -y airtable-mcp-server

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: airtable-mcp-server

Answer natural-language questions about your Airtable CRM

👤 Founders and ops people using Airtable as a CRM ⏱ ~10 min beginner

何时使用: You want to know 'who hasn't replied in 30 days?' without building a view.

前置条件
  • Airtable PAT with schema.bases:read + data.records:read — airtable.com/create/tokens/new — pick only the bases you want exposed
步骤
  1. Have Claude list bases and pick the right one
    List my Airtable bases. Find the one that looks like a sales CRM and describe its tables.✓ 已复制
    → Schema of the CRM base with table purposes
  2. Ask the real question
    In the Contacts table, find people where Last Contacted is more than 30 days ago and Status is Active. Group by Owner.✓ 已复制
    → Filtered record list by owner
  3. Draft follow-up actions
    For each contact, draft a one-line nudge email I can send. Match their last conversation's tone.✓ 已复制
    → Per-contact draft text

结果: A next-action list straight from the CRM in 2 minutes.

注意事项
  • Linked-record fields return IDs, not names — Ask Claude to resolve linked records via a second fetch, or use list_records with returnFieldsByFieldId=false
  • Enterprise bases often have permission restrictions per-field — Verify your PAT's workspace access matches the base's enterprise policy
搭配使用: notion

Bulk-clean messy Airtable records

👤 Ops admins inheriting a chaotic base ⏱ ~45 min intermediate

何时使用: A table has 3k rows with inconsistent casing, missing fields, duplicate companies.

前置条件
  • PAT with data.records:write — Add the scope when creating the token; keep base scope narrow
步骤
  1. Audit the mess
    In Companies, find duplicates by normalized name, records missing Domain, and records with Website starting with http:// instead of https://.✓ 已复制
    → Count per issue
  2. Dry-run a fix plan
    For each issue, propose a fix and show me 3 example changes BEFORE writing.✓ 已复制
    → Preview with user approval gate
  3. Apply the approved fixes
    Approved. Apply the fixes in batches of 50 with update_records.✓ 已复制
    → Success counts per batch

结果: A clean table with an auditable list of what changed.

注意事项
  • Mass-updating triggers Airtable's per-token automation quotas — Batch at 10/s max; pause automations for the affected table during bulk ops
  • One bad update pattern ruins 500 rows — Snapshot the table (CSV export) before the first write
搭配使用: filesystem

Use Airtable as a headless CMS for a website

👤 Indie devs and content teams ⏱ ~30 min intermediate

何时使用: You want editors in Airtable and publishing logic driven by an agent.

步骤
  1. Pull publish-ready records
    From the Blog table, list records where Status is 'Ready' and PublishDate is today or earlier.✓ 已复制
    → Publish queue
  2. Transform and emit
    For each, convert the rich-text Body field to Markdown and write to /site/content/posts/<slug>.md.✓ 已复制
    → Files appear on disk
  3. Flip the status back
    Update each record's Status to 'Published' and set PublishedAt to now.✓ 已复制
    → Rows flipped

结果: A one-command publish flow with Airtable as source of truth.

搭配使用: filesystem · github

组合

与其他 MCP 搭配,撬动十倍杠杆

airtable + notion

Turn an Airtable report into a Notion briefing

Pull this week's new Deals from the CRM, then create a Notion page in /Sales with a summary table.✓ 已复制
airtable + filesystem

Use Airtable as a CMS, emit Markdown files

For every Blog record with Status=Ready, write a .md file under ./content/posts/ and flip the record to Published.✓ 已复制
airtable + github

Auto-create GitHub issues from an Airtable bug backlog

For every Bug in the Triage view with Severity=High, open a GitHub issue in acme/api with title and repro steps.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
list_bases (none) First-time discovery 1 API call
list_tables baseId: str, detailLevel?: str Map a base before querying 1 API call
describe_table baseId: str, tableId: str Know the fields before filtering 1 API call
list_records baseId, tableId, view?, filterByFormula?, sort?, pageSize? Read data with filters/sort 1 API call (paginates)
search_records baseId, tableId, searchTerm, fieldIds? Free-text search across fields 1 API call
get_record baseId, tableId, recordId Fetch a single known record 1 API call
create_record baseId, tableId, fields Insert one record 1 API call (write)
update_records baseId, tableId, records[] Batch updates 1 API call per 10 records
delete_records baseId, tableId, recordIds Destructive — confirm first 1 API call (write)
create_table baseId, name, fields[] Bootstrap a new data model 1 API call (schema write)
list_comments baseId, tableId, recordId, offset?, pageSize? Read thread history 1 API call

成本与限制

运行它的成本

API 配额
5 requests/sec per base (Team), 50/sec on Enterprise Scale
每次调用 Token 数
Schema: ~500 tokens. Record responses: 200 tokens per row depending on fields.
费用
Airtable free/Team/Enterprise — API access on all paid plans; free plan also exposes API
提示
Use pageSize and filterByFormula server-side; pulling a whole table into context is wasteful.

安全

权限、密钥、影响范围

最小权限: schema.bases:read data.records:read
凭据存储: Fine-grained PAT in env var AIRTABLE_API_KEY; never classic user tokens
数据出站: All calls to api.airtable.com over HTTPS
切勿授予: All-base access when only one base is needed webhook:manage unless required

故障排查

常见错误与修复

401 INVALID_API_KEY

PAT missing or expired. Regenerate at airtable.com/create/tokens.

验证: curl -H 'Authorization: Bearer $AIRTABLE_API_KEY' https://api.airtable.com/v0/meta/bases
403 NOT_AUTHORIZED

PAT doesn't include that base. Edit the token's scope list and add the base.

验证: curl returns bases you expect
422 INVALID_REQUEST_UNKNOWN_FIELD

Field name doesn't match schema. Re-describe the table — Airtable changes field IDs if renamed.

验证: call describe_table again
429 rate limit

Slow down to 5 req/sec per base; batch write operations.

验证: retry after 30s

替代方案

airtable-mcp-server 对比其他方案

替代方案何时用它替代权衡
Notion MCPYour team lives in Notion databases instead of AirtableNotion is less tabular; worse for bulk data ops
Google Sheets MCPThe data is in SheetsNo structured schema or linked records
Direct Airtable REST via fetch MCPYou want one-off calls and don't want another MCPYou write every URL by hand

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills