MCP Server

The Trails MCP Server allows you to leverage AI agents like Claude or Cursor seamlessly with Trails. The server is available at: https://docs.trails.build/mcp

Connect in Cursor

  1. Use Command + Shift + P (Ctrl + Shift + P on Windows) to open the command palette.
  2. Search for “Open MCP settings”.
  3. Select Add custom MCP to open the mcp.json file.
  4. In mcp.json, add the Trails server:
{
  "mcpServers": {
    "Trails": {
      "url": "https://docs.trails.build/mcp"
    }
  }
}
  1. In Cursor chat, ask “What tools do you have available?” to confirm the Trails MCP server is listed.
See the Cursor documentation for more details.

Connect in Claude

  1. Navigate to the [Developers] page in Claude Desktop.
  2. Select Edit config if you have an existing MCP configuration or add a new one.
  3. Open your config file and add the Trails MCP server:
    • Name: Trails
    • URL: https://docs.trails.build/mcp
  4. Save the configuration
  5. In a Claude chat, select the Search and tools and make sure your configuration file with Trails is enabled.
  6. Ask a question about Trails!
See the Model Context Protocol docs for more details.

Example Queries

You can ask questions like:
  • “How would I add a DeFi vault for USDC on Aave to my react app using Trails?”
  • “What theming options are available for Trails?”
  • “What chains does trails support?”
When your query is being processed, you’ll see an indication like:
> Called SearchTrails