Airtable MCP Server
# Airtable MCP Server
Lets AI assistants like Claude and ChatGPT work with your Airtable bases: look up records, answer questions about your data, and, only if you allow it, create or update records.
Built for safety first:
- **Scoped access.** The server only touches the bases you list. Any other base is refused before a request is sent.
- **Read-only by default.** Writes stay off until you set `AIRTABLE_ALLOW_WRITES=true`.
- **Every write needs approval.** The first call returns a preview (for updates, a before/after of each field) and changes nothing. The assistant has to show it to you and call again with `confirm=true`.
- **No delete tool**, by design.
- **Reliable.** Retries on Airtable rate limits (429) and temporary server errors. Clear error messages that never include your token.
- **Tested.** 13 end-to-end tests run a real MCP client against the server and a mocked Airtable API.
## Tools
| Tool | What it does | Changes data? |
|---|---|---|
| `list_bases` | Shows which bases are allowed and whether writes are on | No |
| `list_tables` | Lists tables, fields and field types in a base | No |
| `search_records` | Finds records with an Airtable formula filter, chosen fields and a view (max 100) | No |
| `get_record` | Gets one record by ID | No |
| `create_record` | Creates a record (preview first, then `confirm=true`) | Yes, if enabled |
| `update_record` | Updates only the given fields (before/after preview first, then `confirm=true`) | Yes, if enabled |
Example prompts once it's connected:
- "Which leads in my CRM base are marked New and haven't been contacted?"
- "Summarize this week's orders by status."
- "Mark the Acme lead as Qualified." (Claude shows you the before/after first)
## Setup
### 1. Create an Airtable token
Go to [airtable.com/create/tokens](https://airtable.com/create/tokens) and create a personal access token with:
- Scopes: `schema.bases:read`, `data.records:read`, plus `data.records:write` only if you want writes
- Access: only the base(s) the assistant should see
Your base ID is the `app...` part of the base URL.
### 2. Install
Requires Python 3.10+ and [uv](https://docs.astral.sh/uv/).
```bash
git clone https://github.com/victorysocialpeopleagency-ship-it/airtable-mcp-server.git
```
```bash
cd airtable-mcp-server && uv sync
```
### 3. Connect it to Claude Desktop
Open Claude Desktop → Settings → Developer → Edit Config, and add:
```json
{
"mcpServers": {
"airtable": {
"command": "uv",
"args": ["--directory", "/ABSOLUTE/PATH/TO/airtable-mcp-server", "run", "airtable-mcp"],
"env": {
"AIRTABLE_TOKEN": "pat_your_token_here",
"AIRTABLE_BASE_IDS": "appXXXXXXXXXXXXXX",
"AIRTABLE_ALLOW_WRITES": "false"
}
}
}
}
```
Restart Claude Desktop. The Airtable tools appear under the tools icon. Any other MCP client that supports stdio servers (Claude Code, Cursor, VS Code and others) works the same way.
## Configuration
| Variable | Required | Default | Meaning |
|---|---|---|---|
| `AIRTABLE_TOKEN` | Yes | – | Personal access token |
| `AIRTABLE_BASE_IDS` | Yes | – | Comma-separated list of allowed base IDs |
| `AIRTABLE_ALLOW_WRITES` | No | `false` | `true` enables create/update (still two-step) |
## Development
```bash
uv sync --extra dev
```
```bash
uv run pytest
```
The code is in `src/airtable_mcp/`:
- `airtable.py` is the API client (retries, errors).
- `server.py` holds the MCP tools and safety checks.
## License
MIT
TDQS
Scored across 6 tools
Each tool has a clearly distinct resource and action: base listing, table listing, record search, record retrieval by ID, record creation, and record update. The read tools separate search from direct ID lookup, and the write tools separate create from update.
All six tools consistently use snake_case verb_noun naming: list_bases, list_tables, search_records, get_record, create_record, update_record. There are no mixed conventions or ambiguous verb choices.
Six tools is a well-scoped surface for an Airtable integration, covering discovery, read, and write operations without unnecessary breadth. Each tool earns its place and the set stays within the ideal 3-15 range.
The surface covers base and table discovery, record search/get, and confirmed create/update workflows. The main gap is the absence of delete_record, so full record lifecycle coverage is not quite complete, though core read/write workflows are covered.