Airtable AI Agent

Airtable AI Agent

← Go back

Airtable AI Agent

I built an MCP to talk to my database. Then it evolved.

image

I use Airtable for everything. Project tracking, CRM, content calendar, inventory. It's the best relational database for persoal use; visual, powerful, actually fun to use.

But I kept losing focus. Middle of writing, need a number, switch tabs, find the base, click through views, find the data, switch back. The context switching was killing my flow.

So I built an MCP (Model Context Protocol) that lets me talk to Airtable without leaving my editor.

Me: "What's the status on the API docs?"
Claude: "In review since Tuesday, assigned to Sarah, due tomorrow."

Simple. No tab switching. No clicking through views. Just answers.

I built it for myself. Then shared it. Then people started using it in ways I didn't expect. Their feedback pushed me to build something more ambitious: an AI agent that actually understands Airtable.

The Problem With Database UIs

Airtable has the best database UI. It makes relational databases accessible to normal humans. 450,000 companies use it. Billions of API calls monthly.

But even the best UI requires context switching. You're writing a proposal and need last quarter's numbers. You're on a call and need customer history. You're planning and need resource availability.

Each time: stop what you're doing, open Airtable, navigate, filter, scan, remember what you were doing, continue.

The MCP solves this. Stay where you are. Just ask.

What Started Simple

The first version was bare bones. 7 tools:

  • list_tables
  • list_records
  • get_record
  • create_record
  • update_record
  • delete_record
  • search_records

It worked. But users tried complex things:

"Create a project tracker with linked tasks, milestones, and assignments"

The MCP would fail. Not because it couldn't execute the operations, but because it didn't understand Airtable's rules. Linked records need both tables to exist first. Rollups need specific field types. Lookups can't reference other lookups.

It could execute commands but couldn't reason about them.

The Evolution

So I fed it everything.

The entire Airtable API documentation. All 50+ formula functions with edge cases. Field type specifications. The JavaScript SDK. Webhook patterns. Even unwritten rules from years of Airtable use.

56 documentation chunks, indexed for semantic search, loaded intelligently into a 128k context window.

Now it understands Airtable's paradigm:

You: "Create a content calendar"

Agent: *thinks* Content calendars need: posts table, authors table,
channels, status workflow. Calendar and kanban views. Single-select
for status (consistent workflow). Formula for days until publish.

*builds complete system with proper relationships*

The difference: it knows what you probably want. Status fields should be single-select with colors. Dates need timezone handling. Every table needs meaningful views.

It builds what an Airtable consultant would build.

Technical Details

Architecture:

  1. MCP Server: 33 tools covering all Airtable operations
  2. Knowledge Base: Complete Airtable documentation, searchable
  3. AI Agent: Reasons about requests, plans operations
  4. Context Manager: Loads relevant docs into context window

What it knows:

  • Why rollups are different from lookups (aggregation vs reference)
  • When to use linked records vs text fields (data integrity)
  • How to structure tables for performance (minimize lookups in formulas)
  • Common patterns (CRM pipelines, project trackers, inventory systems)

Real examples it handles:

# Inventory system
"Track inventory across multiple warehouses"
→ Creates: products, warehouses, movements tables
→ Adds: stock rollups, reorder formulas, low-stock alerts

# Data migration
"Migrate spreadsheet to proper relational structure"
→ Analyzes schema, creates tables, preserves relationships
→ Handles type conversions, validates data

# Recurring tasks
"Set up weekly recurring tasks"
→ Uses formulas + automations (not naive duplication)

Current State

What works well:

  • Query any data without leaving your editor
  • Build complete base structures from descriptions
  • Migrate data while preserving relationships
  • Prevent common mistakes (circular references, invalid formulas)

What doesn't:

  • Can't override Airtable's limits (5 API calls/second)
  • Complex migrations need review
  • Some edge cases in formula parsing

Try It

Quick start (MCP only):

npx @smithery/cli run @rashidazarang/airtable-mcp \
  --token YOUR_TOKEN --base YOUR_BASE_ID

Full agent with Docker:

git clone https://github.com/rashidazarang/airtable-ai-agent
cd airtable-ai-agent
docker compose up -d

Or via Smithery:

  1. Visit smithery.ai
  2. Search "@rashidazarang/airtable-mcp"
  3. Click Install

Works with Claude Desktop, Cursor, Cline, and Zed.

Why This Matters

Airtable democratized databases by making them visual. But there's still friction. You need to understand relationships, field types, views.

Natural language removes that last barrier. Describe what you want. Get what you meant.

It's not replacing Airtable's UI; it's completing it. Sometimes the best interface is no interface.

Open Source

Everything is MIT licensed:

PRs welcome. Especially for edge cases I haven't hit yet.

A mix of what’s on my mind, what I’m learning, and what I’m going through.

Co-created with AI. 🤖

Similar blog posts

More about me

My aim is to live a balanced and meaningful life, where all areas of my life are in harmony. By living this way, I can be the best version of myself and make a positive difference in the world. About me →