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.
Clone the repository:
git clone https://github.com/yourusername/xano-mcp-python.git
cd xano-mcp-python
Install dependencies:
pip install -r requirements.txt
Run the installation script:
# On macOS/Linux
./install.sh
# On Windows
install.bat
Test the installation:
./test.py
If you're using Claude Desktop, you'll need to edit your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%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"
}
}
}
}
Once installed, you can use natural language commands with Claude or any MCP-compatible assistant to interact with your Xano instance.
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
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 specifiedpython xano_mcp_sdk.py --token YOUR_TOKEN --log-level DEBUG
Logs are written to:
~/Library/Logs/Claude/mcp*.log
%APPDATA%\Claude\logs\mcp*.log
For direct console output, run:
python xano_mcp_sdk.py --console-logging
If you encounter issues:
Check logs for errors:
# macOS
tail -n 100 -f ~/Library/Logs/Claude/mcp*.log
# Windows
type "%APPDATA%\Claude\logs\mcp*.log"
Verify API token is correct and has appropriate permissions
Check network connectivity to Xano servers
Ensure Python environment is properly set up
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.
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.
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"
}
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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