home / mcp / aitable mcp server
Provides MCP integration to query and manage AITable datasheets, records, fields, views, attachments, and embed links.
Configuration
View docs{
"mcpServers": {
"hamchowderr-aitable-mcp": {
"url": "https://your-project.vercel.app/mcp",
"headers": {
"SPACE_ID": "YOUR_SPACE_ID",
"AITABLE_API_TOKEN": "YOUR_API_TOKEN"
}
}
}
}You can run an MCP server that connects the AITable platform to external clients. This server lets you query and manage data, including records, fields, views, attachments, and embeddable links, through an MCP-compatible interface. It supports both a local stdio transport for fast, on-device usage and an HTTP transport suitable for cloud-based clients.
You can access AITable data via two transport methods. For quick local use with Claude Desktop, run the stdio version and communicate directly through the process. For centralized access or integration with web clients, run the HTTP transport hosted on your deployment platform.
Prerequisites you need before installing: Node.js >= 18.0.0, npm or pnpm, and an AITable account with an API access token.
Option 1: Install via npm (Recommended) run directly with npx.
npx aitable-mcpOption 2: Install from Source.
# Clone the repository
git clone https://github.com/hamchowderr/aitable-mcp.git
cd aitable-mcp
# Install dependencies
npm install
# Build the project
npm run buildEnvironment variables needed by the server are AITABLE_API_TOKEN (your AITable API token) and SPACE_ID (your AITable space ID). You can set these via your shell or put them in a .env file at the project root.
# Windows
set AITABLE_API_TOKEN=your-api-token-here
set SPACE_ID=your-space-id
# macOS/Linux
export AITABLE_API_TOKEN="your-api-token-here"
export SPACE_ID="your-space-id"The MCP server can be accessed in two ways. The HTTP transport runs as a hosted endpoint, while the stdio transport runs locally via the CLI. Use both configs if you plan to support both access methods.
{
"mcpServers": {
"aitable_http": {
"type": "http",
"name": "aitable_http",
"url": "https://your-project.vercel.app/mcp",
"args": []
},
"aitable_stdio": {
"type": "stdio",
"name": "aitable_stdio",
"command": "npx",
"args": ["-y", "aitable-mcp"]
}
}
}Keep your AITable API token secret and rotate it periodically. Use the stdio transport for personal use to minimize exposure, and disable deployment protection when using HTTP with MCP clients. Monitor access and use environment variables securely without committing tokens to version control.
This MCP server supports dual transport modes: a Stdio Transport for direct, low-latency local use and an HTTP Transport deployed as a serverless function. Both share the same core business logic but communicate with clients through different mechanisms.
Common development tasks include cleaning, building, and running in development mode.
# Clean build artifacts
npm run clean
# Build TypeScript
npm run build
# Watch mode for development
npm run dev
# Test HTTP server locally
npm run dev:http
# Test with Vercel dev server
npm run dev:vercelQuery records with filtering, sorting, and pagination.
Create new records (up to 10 per request).
Update existing records (up to 10 per request).
Delete records (up to 10 per request).
Get field metadata from datasheets.
Create new fields in datasheets.
Delete fields from datasheets.
Get views from datasheets.
Create new datasheets with custom fields.
Upload files to datasheets.
Get list of files in workspace.
Search nodes by type, permissions, and keywords.
Get detailed information about specific nodes.
Create embeddable links for nodes.
List all embed links for a node.
Delete embed links.
Formula reference overview for quick guidance.
Operators used in AITable formulas.
Numeric functions for AITable formulas.
String functions for AITable formulas.
Logical functions for AITable formulas.
Date/time functions for AITable formulas.
Array functions for AITable formulas.
Reference for field color options.