Xano MCP server

Provides a bridge to Xano databases for exploring and managing database structures, schemas, and indexes through natural language interaction
Back to servers
Setup instructions
Provider
roboulos
Release date
Mar 25, 2025
Language
Python
Stats
2 stars

The Xano MCP Python SDK is a server implementation that allows AI assistants like Claude to directly interact with your Xano instance through the Model Context Protocol (MCP). It provides a bridge for AI tools to query and manipulate your Xano databases with natural language instructions.

Getting Started

Installation

  1. Clone the repository:

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

    pip install -r requirements.txt
    
  3. Run the installation script:

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

    ./test.py
    

Configuring Claude Desktop

If you're using Claude Desktop, you'll need to edit your configuration file:

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

Add the following configuration:

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

Using the SDK

Once installed, you can use natural language commands with Claude or any MCP-compatible assistant to interact with your Xano instance.

Example Queries

  • 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 Functionality

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

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

python xano_mcp_sdk.py --token YOUR_TOKEN --log-level DEBUG

Logging

Logs are written to:

  • macOS: ~/Library/Logs/Claude/mcp*.log
  • Windows: %APPDATA%\Claude\logs\mcp*.log

For direct console output, run:

python xano_mcp_sdk.py --console-logging

Troubleshooting

If you encounter issues:

  1. Check logs for errors:

    # macOS
    tail -n 100 -f ~/Library/Logs/Claude/mcp*.log
    
    # Windows
    type "%APPDATA%\Claude\logs\mcp*.log"
    
  2. Verify API token is correct and has appropriate permissions

  3. Check network connectivity to Xano servers

  4. Ensure Python environment is properly set up

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

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

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

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

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

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

2. Add this to your configuration file:

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

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later