Xano MCP Server for Smithery

by roboulos
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Supports containerized deployment using Docker, with configuration options for both stdio and WebSocket transport methods.

  • Compatible with Smithery's serverless deployment model, allowing the MCP server to be deployed and managed in a serverless environment.

Smithery 的 Xano MCP 服务器

用于将 Xano 数据库与 Smithery 集成的模型上下文协议 (MCP) 服务器,使 Claude AI 能够与 Xano 数据库进行交互。

概述

该 MCP 服务器在 Claude AI(通过 Smithery)和 Xano 数据库之间架起了一座桥梁,使 Claude 能够通过标准化接口对 Xano 数据执行操作。该服务器实现了模型上下文协议 (MCP),使其与 Smithery 的无服务器部署模型兼容。

特征

  • 完成 Xano API 集成
  • 支持 stdio 和 WebSocket 传输方法
  • 全面的数据库操作(表、模式、记录)
  • 文件管理功能
  • 请求历史跟踪
  • 导入/导出功能

可用工具

该服务器提供以下类别的工具:

实例和数据库操作

  • 列出 Xano 实例
  • 获取实例详细信息
  • 列出数据库/工作区
  • 获取工作区详细信息

表操作

  • 列出表格
  • 获取表详细信息
  • 创建、更新和删除表

表模式操作

  • 获取和更新表架构
  • 添加、重命名和删除字段

表索引操作

  • 列出、创建和删除各种索引类型(btree、unique、search、spatial、vector)

表内容操作

  • 浏览和搜索表格内容
  • 对记录的 CRUD 操作(创建、读取、更新、删除)
  • 批量操作以提高效率

文件操作

  • 列出、上传和删除文件
  • 获取文件详细信息

请求历史操作

  • 浏览和搜索请求历史记录

工作区导入/导出

  • 导出和导入工作区和模式

安装

先决条件

  • Python 3.10 或更高版本
  • Smithery CLI(用于部署)
  • Xano API 令牌

本地安装

# Clone the repository git clone https://github.com/roboulos/xano-mcp.git cd xano-mcp # Install dependencies pip install -r requirements.txt

用法

本地运行

# Run with stdio transport (default) python -m src.xano_mcp --token YOUR_XANO_API_TOKEN # Run with WebSocket transport python -m src.xano_mcp --token YOUR_XANO_API_TOKEN --transport websocket --port 8765 # Enable debug mode python -m src.xano_mcp --token YOUR_XANO_API_TOKEN --debug

与 Smithery 一起使用

  1. 将 MCP 服务器部署到 Smithery:
smithery deploy
  1. 在 Smithery 仪表板中使用 Xano API 令牌配置服务器
  2. 在 Smithery 工作流程中使用服务器

安全注意事项

  • 安全存储您的 Xano API 令牌
  • 尽可能使用环境变量来存储敏感信息
  • 考虑在 Xano 数据库上使用访问控制
  • MCP 服务器可以完全访问您的 Xano 数据库,因此请安全地部署它

配置

可以使用命令行参数或环境变量来配置服务器:

选项环境变量描述
--令牌XANO_API_TOKEN您的 Xano API 令牌(必需)
- 运输MCP_传输传输方法:stdio 或 websocket(默认:stdio)
- 港口MCP_端口WebSocket 服务器端口(默认值:8765)
- 调试MCP_调试启用详细日志记录的调试模式

Docker 支持

您可以使用 Docker 运行服务器:

# Build the Docker image docker build -t xano-mcp . # Run with stdio transport docker run -e XANO_API_TOKEN=YOUR_TOKEN xano-mcp # Run with WebSocket transport docker run -e XANO_API_TOKEN=YOUR_TOKEN -p 8765:8765 xano-mcp --transport websocket --port 8765

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

模型上下文协议服务器使 Claude AI 能够与 Xano 数据库交互,通过标准化接口提供全面的数据库操作、文件管理和请求历史跟踪。

  1. Overview
    1. Features
      1. Available Tools
        1. Instance and Database Operations
        2. Table Operations
        3. Table Schema Operations
        4. Table Index Operations
        5. Table Content Operations
        6. File Operations
        7. Request History Operations
        8. Workspace Import/Export
      2. Installation
        1. Prerequisites
        2. Local Installation
      3. Usage
        1. Running Locally
        2. Using with Smithery
      4. Security Considerations
        1. Configuration
          1. Docker Support
            1. License
              ID: 0u6hhr0rew