This MCP server connects your AI tools directly to Airtable, allowing you to query, create, update, and delete records using natural language. It handles base management, table operations, schema manipulation, record filtering, and data migration through a standardized interface compatible with Claude-powered editors like Cursor, Cline, and Zed.
The easiest way to install:
Another fast way to get started:
# Install globally
npm install -g airtable-mcp
# Or run directly with npx
npx airtable-mcp --token "your_airtable_token" --base "your_base_id"
For Cursor, update your ~/.cursor/mcp.json
file:
{
"mcpServers": {
"airtable-tools": {
"command": "npx",
"args": [
"airtable-mcp",
"--token", "your_airtable_token",
"--base", "your_base_id"
]
}
}
}
Restart your MCP client to load the new tools.
If you prefer to clone the repository and install manually:
Clone this repository:
git clone https://github.com/rashidazarang/airtable-mcp.git
cd airtable-mcp
Install dependencies:
pip install -r requirements.txt
Run the server:
python airtable_mcp/src/server.py --token "your_airtable_token" --base "your_base_id"
Once installed and configured, you can use natural language to interact with your Airtable data:
The server provides these tools for interacting with Airtable:
Tool Name | Description |
---|---|
list_bases |
List all accessible Airtable bases |
list_tables |
List all tables in the specified or default base |
list_records |
List records from a table with optional filtering |
get_record |
Get a specific record from a table |
create_records |
Create records in a table from JSON string |
update_records |
Update records in a table from JSON string |
delete_records |
Delete records from a table by IDs |
export_records |
Export records from a table as JSON string |
import_records |
Import records to a table from JSON string |
create_tables |
Create tables from a JSON schema |
update_schema |
Update existing tables to match a JSON schema |
set_base_id |
Set the current Airtable base ID |
inspect_table |
Get detailed information about a table's structure and fields |
export_schema |
Export the schema of the current base in JSON or CSV format |
compare_schemas |
Compare the provided schema with the current base schema |
generate_field_mapping |
Generate a field mapping between two tables |
migrate_data |
Migrate data from one table to another using the specified field mapping |
For production use, you can use PM2 to manage the Airtable MCP server:
// ecosystem.config.js
module.exports = {
apps: [
{
name: 'airtable-mcp',
script: 'npx',
args: [
'airtable-mcp',
'--token', 'your_airtable_token',
'--base', 'your_base_id'
],
interpreter: '/usr/local/bin/node',
env: {
PATH: process.env.PATH,
},
},
],
};
Start with:
pm2 start ecosystem.config.js
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "airtable-tools" '{"command":"npx","args":["airtable-mcp","--token","your_airtable_token","--base","your_base_id"]}'
See the official Claude Code MCP documentation for more details.
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.
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-tools": {
"command": "npx",
"args": [
"airtable-mcp",
"--token",
"your_airtable_token",
"--base",
"your_base_id"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"airtable-tools": {
"command": "npx",
"args": [
"airtable-mcp",
"--token",
"your_airtable_token",
"--base",
"your_base_id"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect