这是一个提供与 Airtable API 交互工具的 Model Context Protocol 服务器。此服务器通过 Claude Desktop 或其他 MCP 客户端实现对 Airtable 数据库、表、字段和记录的程序化管理。
该 MCP 服务器具有专门的实现,允许它分阶段构建表,利用 Claude 的代理能力,并将通常在其他 MCP 服务器中构建复杂表时出现的失败率降至最低。它还包括 系统提示 和 项目知识 Markdown 文件,以在使用 Claude Desktop 中的项目时为 LLM 提供额外指导。
node --version
npm --version
⚠️ 重要:运行之前,请确保设置好您的 Airtable API 密钥。
导航到 Claude 配置目录:
C:\Users\NAME\AppData\Roaming\Claude~/Library/Application Support/Claude/您也可以在 Claude Desktop 应用中找到这些目录:Claude Desktop > 设置 > 开发者 > 编辑配置
创建或编辑 claude_desktop_config.json:
{
"mcpServers": {
"airtable": {
"command": "npx",
"args": ["@felores/airtable-mcp-server"],
"env": {
"AIRTABLE_API_KEY": "your_api_key_here"
}
}
}
}
注意:对于 Windows 路径,使用双反斜杠(\)或正斜杠(/)。
mcp-installer 是一个用于安装其他 MCP 服务器的 MCP 服务器。
Install @felores/airtable-mcp-server set the environment variable AIRTABLE_API_KEY to 'your_api_key'
Claude 将安装服务器,修改配置文件并设置环境变量 AIRTABLE_API_KEY 为您提供的 Airtable API 密钥。
如果您想贡献或修改代码,请在终端中运行以下命令:
# 克隆仓库
git clone https://github.com/felores/airtable-mcp.git
cd airtable-mcp
# 安装依赖
npm install
# 构建服务器
npm run build
# 本地运行
node build/index.js
然后修改 Claude Desktop 配置文件以使用本地安装:
{
"mcpServers": {
"airtable": {
"command": "node",
"args": ["path/to/airtable-mcp/build/index.js"],
"env": {
"AIRTABLE_API_KEY": "your_api_key_here"
}
}
}
}
列出所有数据库
list_bases: 列出所有可访问的 Airtable 数据库list_tables: 列出数据库中的所有表create_table: 创建带有字段的新表update_table: 更新表的名称或描述create_field: 向表添加新字段update_field: 修改现有字段list_records: 从表中检索记录create_record: 添加新记录update_record: 修改现有记录delete_record: 删除记录search_records: 查找符合标准的记录get_record: 根据其 ID 获取单个记录singleLineText: 单行文本字段multilineText: 多行文本区域email: 电子邮件地址字段phoneNumber: 电话号码字段number: 可选精度的数值字段currency: 带货币符号的钱款字段date: 带格式选项的日期字段singleSelect: 从选项中选择单一选项multiSelect: 从选项中选择多个选项可供选择字段的颜色:
blueBright, redBright, greenBrightyellowBright, purpleBright, pinkBrightgrayBright, cyanBright, orangeBrightblueDark1, greenDark1我们欢迎对 Airtable MCP 服务器的改进!以下是您可以如何贡献:
分叉存储库
git clone https://github.com/your-username/airtable-mcp.git
创建功能分支
git checkout -b feature/your-feature-name
进行更改
提交更改
git add .
git commit -m "feat: 添加您的功能描述"
推送到您的分叉
git push origin feature/your-feature-name
创建拉取请求
您的贡献有助于使此工具对每个人更好。无论是:
我们感谢您帮助使 Airtable MCP 服务器更强大且用户友好!
由 Airtable MCP 社区制作 ❤️