Airtable MCP server

Integrates with Airtable to enable database operations like listing bases, browsing tables, and performing CRUD operations on records directly within code editors.
Back to servers
Setup instructions
Provider
Rashid Azarang
Release date
Mar 18, 2025
Language
Python
Stats
36 stars

The Airtable MCP server is a powerful integration tool that allows AI assistants to interact directly with your Airtable bases. It provides comprehensive functionality for managing Airtable data, including CRUD operations, webhook management, schema discovery, and AI-powered analytics through a Model Context Protocol interface.

Installation

Prerequisites

  • Node.js 14+ installed on your system
  • An Airtable account with a Personal Access Token
  • Your Airtable Base ID

Step 1: Get Your Airtable Credentials

  1. Personal Access Token: Visit Airtable Account and create a token with these scopes:

    • data.records:read - Read records from tables
    • data.records:write - Create, update, delete records
    • schema.bases:read - View table schemas
    • schema.bases:write - Create/modify tables and fields
    • webhook:manage - (Optional) For webhook features
  2. Base ID: Open your Airtable base and copy the ID from the URL:

    https://airtable.com/[BASE_ID]/...
    

Step 2: Installation

TypeScript Users (Recommended for Development)

# Install with TypeScript support
npm install -g @rashidazarang/airtable-mcp

# For development with types
npm install --save-dev typescript @types/node

JavaScript Users (Production Ready)

Option A: Install via NPM (Recommended)

npm install -g @rashidazarang/airtable-mcp

Option B: Clone from GitHub

git clone https://github.com/rashidazarang/airtable-mcp.git
cd airtable-mcp
npm install

Step 3: Set Up Environment Variables

Create a .env file in your project directory:

AIRTABLE_TOKEN=your_personal_access_token_here
AIRTABLE_BASE_ID=your_base_id_here

Security Note: Never commit .env files to version control!

Configuration

TypeScript Configuration

Add to your Claude Desktop configuration file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\\Claude\\claude_desktop_config.json

{
  "mcpServers": {
    "airtable-typescript": {
      "command": "npx",
      "args": [
        "@rashidazarang/airtable-mcp",
        "--token",
        "YOUR_AIRTABLE_TOKEN",
        "--base",
        "YOUR_BASE_ID"
      ],
      "env": {
        "NODE_ENV": "production",
        "LOG_LEVEL": "INFO"
      }
    }
  }
}

JavaScript Configuration

Add to your Claude Desktop configuration file:

{
  "mcpServers": {
    "airtable": {
      "command": "npx",
      "args": [
        "@rashidazarang/airtable-mcp",
        "--token",
        "YOUR_AIRTABLE_TOKEN",
        "--base",
        "YOUR_BASE_ID"
      ]
    }
  }
}

Using Environment Variables (More Secure)

{
  "mcpServers": {
    "airtable": {
      "command": "npx",
      "args": ["@rashidazarang/airtable-mcp"],
      "env": {
        "AIRTABLE_TOKEN": "YOUR_AIRTABLE_TOKEN",
        "AIRTABLE_BASE_ID": "YOUR_BASE_ID"
      }
    }
  }
}

After configuration, restart Claude Desktop or your MCP client to load the Airtable server.

Usage Examples

TypeScript Development

import { 
  AirtableMCPServer, 
  ListRecordsInput, 
  AnalyzeDataPrompt 
} from '@rashidazarang/airtable-mcp/types';

const server = new AirtableMCPServer();

// Type-safe data operations
const params: ListRecordsInput = {
  table: 'Tasks',
  maxRecords: 10,
  filterByFormula: "Status = 'Active'"
};

const records = await server.handleToolCall('list_records', params);

// Type-safe AI analytics
const analysis: AnalyzeDataPrompt = {
  table: 'Sales',
  analysis_type: 'predictive',
  confidence_level: 0.95
};

const insights = await server.handlePromptGet('analyze_data', analysis);

Natural Language Interactions

Basic Operations

"Show me all records in the Projects table"
"Create a new task with priority 'High' and due date tomorrow"
"Update the status of task ID rec123 to 'Completed'"
"Delete all records where status is 'Archived'"
"What tables are in my base?"
"Search for records where Status equals 'Active'"

Webhook Operations

"Create a webhook for my table that notifies https://my-app.com/webhook"
"List all active webhooks in my base"
"Show me the recent webhook payloads"
"Delete webhook ach123xyz"

Schema Management

"List all my accessible Airtable bases"
"Show me the complete schema for this base"
"Describe the Projects table with all field details"
"Create a new table called 'Tasks' with Name, Priority, and Due Date fields"
"Add a Status field to the existing Projects table"
"What field types are available in Airtable?"

Batch Operations & Attachments

"Create 5 new records at once in the Tasks table"
"Update multiple records with new status values"
"Delete these 3 records in one operation"
"Attach this image URL to the record's photo field"
"Who are the collaborators on this base?"
"Show me all shared views in this base"

Advanced Configuration

Using with Smithery Cloud

For cloud-hosted MCP servers:

{
  "mcpServers": {
    "airtable": {
      "command": "npx",
      "args": [
        "@smithery/cli",
        "run",
        "@rashidazarang/airtable-mcp",
        "--token",
        "YOUR_TOKEN",
        "--base",
        "YOUR_BASE_ID"
      ]
    }
  }
}

Direct Node.js Execution

If you cloned the repository:

{
  "mcpServers": {
    "airtable": {
      "command": "node",
      "args": [
        "/path/to/airtable-mcp/airtable_simple.js",
        "--token",
        "YOUR_TOKEN",
        "--base",
        "YOUR_BASE_ID"
      ]
    }
  }
}

Troubleshooting

"Connection Refused" Error

  • Ensure the MCP server is running
  • Check that port 8010 is not blocked
  • Restart your MCP client

"Invalid Token" Error

  • Verify your Personal Access Token is correct
  • Check that the token has the required scopes
  • Ensure no extra spaces in your credentials

"Base Not Found" Error

  • Confirm your Base ID is correct
  • Check that your token has access to the base

Port Conflicts

If port 8010 is in use:

lsof -ti:8010 | xargs kill -9

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "airtable-mcp" '{"command":"npx","args":["@smithery/cli","run","@rashidazarang/airtable-mcp","--token","YOUR_AIRTABLE_TOKEN","--base","YOUR_BASE_ID"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "airtable-mcp": {
            "command": "npx",
            "args": [
                "@smithery/cli",
                "run",
                "@rashidazarang/airtable-mcp",
                "--token",
                "YOUR_AIRTABLE_TOKEN",
                "--base",
                "YOUR_BASE_ID"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "airtable-mcp": {
            "command": "npx",
            "args": [
                "@smithery/cli",
                "run",
                "@rashidazarang/airtable-mcp",
                "--token",
                "YOUR_AIRTABLE_TOKEN",
                "--base",
                "YOUR_BASE_ID"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later