RathRath Finance
Resources for AI Agents

Rath MCP

Connect AI agents and coding assistants to the Rath MCP server for xPath tools.

Use Rath MCP when you want an AI coding assistant or agent to call xPath through structured Model Context Protocol tools instead of manually constructing REST requests.

The public MCP endpoint exposes only xPath tools:

https://mcp.rath.fi/mcp

The public MCP route is xPath-only. It does not expose internal Rath data tools or third-party catalog tools.

CLI commands

claude mcp add --transport http rath https://mcp.rath.fi/mcp
codex mcp add rath --url https://mcp.rath.fi/mcp

Quick setup

Add the server to any MCP-compatible client with:

{
  "mcpServers": {
    "rath": {
      "url": "https://mcp.rath.fi/mcp"
    }
  }
}

Installation with your IDE

Select your MCP client to view setup instructions.

  1. Open a project in Cursor and navigate to Cursor Settings.
  2. In the settings menu, go to the MCP section.
  3. Click New MCP Server. This opens your mcp.json configuration file.
  4. Add the following configuration:
{
  "mcpServers": {
    "rath": {
      "url": "https://mcp.rath.fi/mcp"
    }
  }
}
  1. Return to the MCP settings page and enable the server using the toggle switch next to rath.

For more information, see the Cursor MCP documentation.

Add Rath MCP from your terminal:

claude mcp add --transport http rath https://mcp.rath.fi/mcp

Verify that Claude Code can see it:

claude mcp get rath

Start Claude Code and ask it to quote routes, inspect supported chains, or build xPath transaction payloads.

For more information, see the Claude Code MCP documentation.

  1. Open your Windsurf MCP configuration file:
~/.codeium/windsurf/mcp_config.json
  1. Add the xPath server:
{
  "mcpServers": {
    "rath": {
      "url": "https://mcp.rath.fi/mcp"
    }
  }
}
  1. Save the file and enable the rath server in Windsurf's MCP settings.

For more information, see the Windsurf MCP documentation.

  1. Open Kiro and go to Preferences or Settings.
  2. Search for MCP and enable MCP support.
  3. Create or open the MCP configuration file:
./.kiro/settings/mcp.json
  1. Add the xPath server:
{
  "mcpServers": {
    "rath": {
      "url": "https://mcp.rath.fi/mcp",
      "disabled": false
    }
  }
}
  1. Save the file and reload Kiro so the rath MCP server appears in the MCP tab.

For more information, see the Kiro MCP documentation.

Available xPath tools

Rath MCP exposes xPath tools for token discovery, route quoting, transaction construction, calldata generation, gasless swaps, and status tracking:

ToolPurpose
xpath_list_tokensList tokens supported by xPath, optionally filtered by chain ID
xpath_search_tokenSearch for a token by symbol, name, or address
xpath_get_supported_chainsGet chains supported by xPath
xpath_get_quoteGet a same-chain or cross-chain route quote
xpath_build_pathBuild an unsigned transaction payload from an explicit route request
xpath_build_transactionBuild an unsigned transaction payload from a quote ID
xpath_build_best_pathFind the best route and build its unsigned transaction payload
xpath_get_transaction_statusGet transaction status by transaction hash and source chain
xpath_build_calldataBuild raw xPath calldata for advanced integrations
xpath_get_gasless_quoteGet a gasless quote with Permit2 EIP-712 signing data
xpath_submit_gasless_swapSubmit a signed gasless swap
xpath_get_gasless_statusGet gasless swap status by swap ID or transaction ID

On this page