这是一个提供读写访问权限到AITable.ai的Model Context Protocol服务器。此服务器使LLMs能够列出空间、搜索节点、列出记录、创建记录并上传附件到AITable.ai。
<a href="https://glama.ai/mcp/servers/@apitable/aitable-mcp-server"> <img width="380" height="200" src="https://gips3.baidu.com/it/u=2430872203,2861726350&fm=3081&app=3081&f=PNG?w=760&h=400" alt="AITable Server MCP server" /> </a>| 工具名称 | 可用性 | 描述 |
|---|---|---|
| list_spaces | ✅ | 获取当前认证用户有权限访问的所有工作空间。 |
| search_nodes | ✅ | 根据特定类型、权限和查询检索节点。 |
| list_records | ✅ | 从指定数据库中读取记录,支持分页、字段过滤和排序选项。 |
| get_fields_schema | ✅ | 返回指定数据库内所有字段的JSON模式。 |
| create_record | ✅ | 在数据库中创建新记录。 |
| upload_attachment_via_url | ✅ | 使用其Web URL将附件上传到AITable服务器。 |
| update_record | ❌ | TODO |
AITABLE_API_KEY: 您的AITable个人访问令牌。AITABLE_BASE_URL: AITable API的基础URL。默认值为https://aitable.ai/fusion。如果您使用的是APITable(AITable的开源版本),可以将其设置为{YOUR_CUSTOM_BASE_URL}。您可以在如Claude Desktop、CherryStudio等MCP客户端中使用此服务器。
Claude Desktop
在Claude Desktop的情况下,您需要向claude_desktop_config.json文件中的“mcpServers”部分添加以下配置信息:
对于Linux、MacOS:
{
"mcpServers": {
"aitable": {
"command": "npx",
"args": [
"-y",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/aitable-mcp-server"
],
"env": {
"AITABLE_API_KEY": "YOUR_API_KEY"
}
}
}
}
对于Windows:
{
"mcpServers": {
"aitable": {
"command": "npx",
"args": [
"-y",
"D:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\aitable-mcp-server"
],
"env": {
"AITABLE_API_KEY": "YOUR_API_KEY"
}
}
}
}
将YOUR_API_KEY替换为您自己的AITable个人访问令牌,并将/ABSOLUTE/PATH/TO/PARENT/FOLDER/aitable-mcp-server替换为此仓库父文件夹的绝对路径。
CherryStudio 如果您使用的是CherryStudio作为MCP客户端并且操作系统是Windows,您的配置应该如下所示:
{
"mcpServers": {
"aitable": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"D:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\aitable-mcp-server"
],
"env": {
"AITABLE_API_KEY": "YOUR_API_KEY"
}
}
}
}
MCP inspector是一个用于测试和调试MCP服务器的开发者工具。
要检查一个MCP服务器实现,无需克隆MCP inspector仓库。相反,可以使用npx。例如,AITable MCP服务器构建于dist/index.js。参数直接传递给您的服务器,而环境变量可以通过-e标志设置:
npx @modelcontextprotocol/inspector -e AITABLE_API_KEY={YOUR_API_KEY} node build/index.js
另一种方式是克隆MCP inspector仓库并在inspector界面中连接AITable MCP服务器。
cd path/to/inspector/
npm start -- -e AITABLE_API_KEY={YOUR_API_KEY}