RS

roboulos/simple-xano-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2 stars 5 forks 质量 64 趋势 4MIT

一个基于 Python 的 MCP(模式上下文协议) 服务器,用于 Xano , 允许 Claude 这样的 AI 助手与您的 Xano 实例直接交互 .

概览

一个基于 Python 的 MCP(模式上下文协议) 服务器,用于 Xano , 允许 Claude 这样的 AI 助手与您的 Xano 实例直接交互 。 这是一个与克洛德桌面(Claude Desktop)和其他与MCP相容的LLMs一起被优化用于本地的独立版本. - 连接您的 Xano API 令牌 - : 查询和操纵 Xano 实例、数据库、表格和记录 - : 运行为克劳德桌面或其他客户端的本地 MCP 服务器 - : 全面记录的出错问题 - : macOS、Windows和Linux 3 (如果使用): 编辑您的 Claude 桌面配置文件 : - macOS: ~/ 图书馆/应用程序支持/ Claude/ claude desktop config.json - Windows :% APDATA\\ Claude desktop config.json 安装后,可以和克洛德或任何MCP相容的助手一起使用. 以下是一些例子: - 给我看看我的Xano案的所有表格 - 在我的Xano实例中创建一个名为"产品"的新表格 - "用户"表有什么计划?

概述(AI 翻译)

一个基于 Python 的 MCP(模式上下文协议) 服务器,用于 Xano , 允许 Claude 这样的 AI 助手与您的 Xano 实例直接交互 。 这是一个与克洛德桌面(Claude Desktop)和其他与MCP相容的LLMs一起被优化用于本地的独立版本.

□ * * * * 特点

  • ** 简单认证**: 连接您的 Xano API 令牌
  • 综合API: 查询和操纵 Xano 实例、数据库、表格和记录
  • ** 当地部署**: 作为克劳德桌面或其他客户端的本地 MCP 服务器运行
  • ** 详细伐木**:全面伐木引起的问题
  • ** 便携式**:关于macOS、Windows和Linux的作品

# # # 快速启动 # # # # # # QQ Quick start

  1. ** 该存放处**:

  2. ** 建立附属关系**:

  3. ** 配置克洛德桌面**(如果使用):

编辑您的 Claude 桌面配置文件 :

  • [[T0]
  • 视窗:%APPDATA%\Claude\claude_desktop_config.json

添加此配置 :

  1. ** 运行安装脚本**:

  2. ** 试验装置**:

□💡用例.

安装后,可以和克洛德或任何MCP相容的助手一起使用. 以下是一些例子:

  • 列出你的 Xano 例 **:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Xano MCP Python SDK

A Python-based MCP (Model Context Protocol) server for Xano that allows AI assistants like Claude to interact directly with your Xano instance. This is a standalone version optimized for local use with Claude Desktop and other MCP-compatible LLMs.

🌟 Features

  • Simple Authentication: Connect with your Xano API token
  • Comprehensive API: Query and manipulate Xano instances, databases, tables, and records
  • Local Deployment: Run as a local MCP server for Claude Desktop or other clients
  • Detailed Logging: Troubleshoot issues with comprehensive logging
  • Portable: Works on macOS, Windows, and Linux

🚀 Quick Start

  1. Clone this repository:

    git clone https://github.com/yourusername/xano-mcp-python.git
    cd xano-mcp-python
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Configure Claude Desktop (if using):

    Edit your Claude Desktop config file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json

    Add this configuration:

    {
      "mcpServers": {
        "xano": {
          "command": "python",
          "args": [
            "/path/to/xano-mcp-python/xano_mcp_sdk.py"
          ],
          "env": {
            "XANO_API_TOKEN": "your-xano-api-token"
          }
        }
      }
    }
    
  4. Run the installation script:

    # On macOS/Linux
    ./install.sh
    
    # On Windows
    install.bat
    
  5. Test the installation:

    ./test.py
    

💡 Usage Examples

Once installed, you can use it with Claude or any MCP-compatible assistant. Here are some examples:

  • List your Xano instances:

    What Xano instances do I have?

  • Check database tables:

    Show me all tables in my Xano instance “my-instance”

  • Create a new table:

    Create a new table called “products” in my Xano instance “my-instance”

  • Examine table structure:

    What’s the schema for the “users” table?

  • Query records:

    Show me the first 5 records in the “users” table

🧰 Available Tools

Instance Management

  • List instances
  • Get instance details
  • Check instance status

Database Operations

  • List databases/workspaces
  • Get workspace details
  • Database schema management

Table Operations

  • Create, update, delete tables
  • Add, modify, and remove fields
  • Index management

Record Management

  • Create, read, update, delete records
  • Bulk operations
  • Complex queries

File Operations

  • List and manage files
  • Upload and download

API Tools

  • API group management
  • API endpoint creation and configuration

🔧 Advanced Configuration

Environment Variables

  • XANO_API_TOKEN: Your Xano API token (required)
  • XANO_LOG_LEVEL: Set log level (default: INFO)
  • XANO_DEFAULT_INSTANCE: Default instance to use when not specified

Command Line Options

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "xano": { "command": "python", "args": [ "/path/to/xano-mcp-python/xano_mcp_sdk.py" ], "env": { "XANO_API_TOKEN": "your-xano-api-token" } } } }