Skip to main content
Glama

Xano MCP Server

Xano MCP 服务器

用于与 Xano 元数据 API 交互的模型上下文协议 (MCP) 服务器。该服务器提供可供 AI 助手(例如 Claude)通过 Cursor 或其他兼容 MCP 的客户端使用的工具。

特征

  • 管理表:在 Xano 数据库中创建、列出和删除表

  • 模式操作:使用全面的模式编辑功能查看和修改表模式

  • 数据库管理:与 Xano 数据库结构交互的完整工具集

  • Swagger Spec :以 JSON 或 Markdown(简化令牌)格式提取 API 组 API 详细信息

请注意,这是一个早期阶段,欢迎反馈/请求。

先决条件

  • Node.js(v16 或更高版本)

  • npm 或其他 Node.js 包管理器

  • 具有 API 访问权限的 Xano 帐户

  • Cursor、Claude Desktop、Cline 或其他 MCP 客户端。

安装

  1. 克隆存储库:

git clone https://github.com/lowcodelocky2/xano-mcp.git cd xano-mcp
  1. 安装依赖项:

npm install
  1. 配置您的 Xano 凭据:

    • 编辑index.ts并设置您的 Xano 凭据:

      • XANO_API_KEY :您的 Xano API 密钥

      • XANO_WORKSPACE :您的 Xano 工作区 ID

      • XANO_API_BASE :您的 Xano 实例 API URL(例如, https ://your-instance.xano.io/api:meta)

  2. 构建项目:

npm run build

与 Claude Desktop 一起使用

遵循本指南 - https://modelcontextprotocol.io/quickstart/user

使用以下命令更新您的配置:

{ "mcpServers": { "xano": { "command": "node", "args": [ "/path/to/xano-mcp" ] } } }

/path/to/xano-mcp替换为项目目录的绝对路径。

这不适用于 Claude Web 应用程序,只能通过桌面应用程序使用 -

与游标一起使用

  1. 打开游标

  2. 点击“添加 MCP 服务器”

  3. 配置服务器:

    • 名称: whatever you want to call it

    • 类型: command

    • 命令: node /path/to/xano-mcp/build/index.js

/path/to/xano-mcp替换为项目目录的绝对路径。

示例 mac
节点/Users/your-user/Documents/folder-name/xano-mcp/build/index.js

如果您在您的目录中,您可以在终端中运行命令“pwd”来获取绝对路径。

Xano MCP 工具概述

此集成提供了一套全面的工具,用于通过模型上下文协议 (MCP) 管理您的 Xano 工作区。您可以执行以下操作:

数据库管理

表格

  • 列出工作区中的所有表

  • 查看详细的表架构

  • 使用自定义架构创建新表

  • 删除现有表

  • 修改表模式(添加/删除/重命名列)

模式操作

  • 添加具有各种数据类型的新列

  • 删除列

  • 重命名列

  • 更新整个表架构

  • 支持复杂数据类型和关系

API 管理

API 组

  • 创建新的 API 组

  • 列出所有 API 组

  • 在群组内浏览 API

  • 启用/禁用 Swagger 文档

  • 管理 API 组元数据(标签、分支等)

单独的 API

  • 将新 API 添加到组

  • 配置 HTTP 方法(GET、POST、PUT、DELETE、PATCH、HEAD)

  • 设置 API 文档

  • 添加元数据(标签、描述)

文档

  • 以 markdown(精简标记)和 JSO(完整)格式生成 API 组规范

  • 查看 Swagger 文档

  • 访问详细的架构信息

该工具集可以完全管理您的 Xano 工作区,让您可以通过 MCP 界面以编程方式构建和维护后端基础设施。

重新启用删除表工具

要在此代码库中重新启用删除表功能,请按照以下分步说明操作:

  1. 在代码编辑器中打开文件src/index.ts

  2. 找到以以下内容开头的注释掉的部分:

    // Delete Table Tool /* server.tool(

    结尾是:

    ); */
  3. 要取消注释此部分:

    • 删除“删除表格工具”后面的行上的开头/*

    • 删除“编辑表架构工具”前的结尾*/就完成了!删除表工具现在将再次处于活动状态。(运行新版本后)

代码示例

// Delete Table Tool server.tool( "delete-table", "Delete a table from the Xano workspace", { table_id: z.string().describe("ID of the table to delete") }, async ({ table_id }) => { // ... rest of the implementation } );

确认

进行这些更改后:

  1. 保存文件

  2. 运行新构建“npm run build”

  3. 重启你的 MCP 客户端 (Claude / Cursor)

  4. 删除表工具现在应该可以在您的工具集中使用了

安全须知

删除表工具会永久删除 Xano 工作区中的表。使用此功能前,请确保已做好适当的备份。

Deploy Server
A
security – no known vulnerabilities
-
license - not tested
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

使 AI 助手能够通过模型上下文协议管理 Xano 数据库,允许用户创建、修改和删除表、编辑模式以及提取 API 文档。

  1. 特征
    1. 先决条件
      1. 安装
        1. 与 Claude Desktop 一起使用
          1. 与游标一起使用
            1. Xano MCP 工具概述
              1. 数据库管理
                1. 表格
                2. 模式操作
              2. API 管理
                1. API 组
                2. 单独的 API
              3. 文档
                1. 重新启用删除表工具
                  1. 代码示例
                  2. 确认
                  3. 安全须知

                Related MCP Servers

                • A
                  security
                  -
                  license
                  A
                  quality
                  Enables interaction with the Xano API through a Model Context Protocol (MCP) interface, providing secure and type-safe management of Xano database operations.
                  Last updated -
                • -
                  security
                  -
                  license
                  -
                  quality
                  A Model Context Protocol server that enables Claude AI to interact with Xano databases, providing comprehensive database operations, file management, and request history tracking through a standardized interface.
                  Last updated -
                  1
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  -
                  license
                  -
                  quality
                  A simplified Model Context Protocol server that enables Claude to interact with Xano databases through the Xano Metadata API.
                  Last updated -
                  2
                  MIT License
                  • Apple
                  • Linux
                • -
                  security
                  -
                  license
                  -
                  quality
                  A Model Control Protocol server that enables AI assistants to interact with Metabase databases, allowing models to explore database schemas, retrieve metadata, visualize relationships, and execute actions.
                  Last updated -
                  6

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/lowcodelocky2/xano-mcp'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server