Skip to main content

Prerequisites

If you don’t have opencode yet:

Installation

Install the MCP Server

You can add the Xano Developer MCP with opencode’s interactive CLI, or by editing your config file directly.

Option 1: Interactive CLI

Run the guided add command, which walks you through adding a local or remote MCP server: When prompted, enter:
  • Name: xano
  • Type: Local
  • Command: npx -y @xano/developer-mcp
opencode writes the server into your config for you.

Option 2: Edit the config file

opencode is configured through JSON. Add the Xano Developer MCP as a local MCP server in your opencode config file at ~/.config/opencode/opencode.json:
To scope the server to a single project instead of all projects, put the same mcp block in an opencode.json file at your project root. When opencode starts, it looks for a config file in the current directory and traverses up to the nearest Git directory, and project config overrides your global defaults. Restart any active opencode sessions so the new server is picked up.

Verify Setup

In opencode, ask:
“What version of the Xano Developer MCP is installed?”
opencode should call mcp_version and return the current version number.

Usage

The Developer MCP lets opencode write and validate XanoScript using your local Xano workspace as context. Before asking opencode to make changes, pull a workspace locally with the Xano CLI. If you haven’t installed and authenticated with the CLI yet, do that now before continuing. Then select or create a workspace and run:
Once your workspace is available locally, you can ask opencode to help with XanoScript tasks, from building a complete workspace:
You can also ask it to expand or iterate on existing backends.
Once you’re ready, push the changes to your sandbox so you can review them in the browser before promoting to your live workspace: xano sandbox review opens your sandbox in the browser — verify everything looks right, then promote the changes to production from there.

What’s Next

Tools Reference

Explore all 6 tools available in the Developer MCP

Resources & Library

Access MCP resources and use the package as an npm library