Xano MCP 服务器是一个用于与 Xano 元数据 API 交互的模型上下文协议 (MCP) 服务器。它提供了一系列工具,可供 AI 助手通过 Cursor 或其他兼容 MCP 的客户端(如 Claude)使用,为开发者与 Xano 数据库的交互提供了便利。
⚠️ 重要提示 本项目目前处于早期阶段,欢迎您提供反馈或提出请求。
git clone https://github.com/lowcodelocky2/xano-mcp.git
cd xano-mcp
npm install
index.ts 并设置您的 Xano 凭据:XANO_API_KEY:您的 Xano API 密钥XANO_WORKSPACE:您的 Xano 工作区 IDXANO_API_BASE:您的 Xano 实例 API URL(例如,https://your-instance.xano.io/api:meta)npm run build
参考此指南 - https://modelcontextprotocol.io/quickstart/user
更新您的配置:
{
"mcpServers": {
"xano": {
"command": "node",
"args": [
"/path/to/xano-mcp"
]
}
}
}
将 /path/to/xano-mcp 替换为项目的绝对路径。
⚠️ 重要提示 此版本无法在 Web 应用程序中使用,仅适用于桌面应用程序 - https://claude.ai/download
whatever you want to call itcommandnode /path/to/xano-mcp/build/index.js将 /path/to/xano-mcp 替换为项目的绝对路径。
若要重新启用删除表的功能,请按以下步骤操作:
index.ts 文件。// ... rest of the implementation 的部分。async ({ table_id }) => {
const response = await fetch(`${process.env.XANO_API_BASE}/tables/${table_id}`, {
method: 'DELETE',
headers: {
'X-API-Key': process.env.XANO_API_KEY,
'Content-Type': 'application/json'
}
});
if (!response.ok) {
throw new Error(`删除表失败:${await response.text()}`);
}
console.log('表格已成功删除。');
}
完成上述更改后:
npm run build。delete-table 功能。⚠️ 重要提示 删除表的功能会永久删除 Xano 工作区中的表格。请确保在使用此功能之前已经进行了适当的备份。