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/mcpThe 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/mcpcodex mcp add rath --url https://mcp.rath.fi/mcpQuick 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.
- Open a project in Cursor and navigate to Cursor Settings.
- In the settings menu, go to the MCP section.
- Click New MCP Server. This opens your
mcp.jsonconfiguration file. - Add the following configuration:
{
"mcpServers": {
"rath": {
"url": "https://mcp.rath.fi/mcp"
}
}
}- 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/mcpVerify that Claude Code can see it:
claude mcp get rathStart 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.
- Open your Windsurf MCP configuration file:
~/.codeium/windsurf/mcp_config.json- Add the xPath server:
{
"mcpServers": {
"rath": {
"url": "https://mcp.rath.fi/mcp"
}
}
}- Save the file and enable the
rathserver in Windsurf's MCP settings.
For more information, see the Windsurf MCP documentation.
- Open Kiro and go to Preferences or Settings.
- Search for MCP and enable MCP support.
- Create or open the MCP configuration file:
./.kiro/settings/mcp.json- Add the xPath server:
{
"mcpServers": {
"rath": {
"url": "https://mcp.rath.fi/mcp",
"disabled": false
}
}
}- Save the file and reload Kiro so the
rathMCP 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:
| Tool | Purpose |
|---|---|
xpath_list_tokens | List tokens supported by xPath, optionally filtered by chain ID |
xpath_search_token | Search for a token by symbol, name, or address |
xpath_get_supported_chains | Get chains supported by xPath |
xpath_get_quote | Get a same-chain or cross-chain route quote |
xpath_build_path | Build an unsigned transaction payload from an explicit route request |
xpath_build_transaction | Build an unsigned transaction payload from a quote ID |
xpath_build_best_path | Find the best route and build its unsigned transaction payload |
xpath_get_transaction_status | Get transaction status by transaction hash and source chain |
xpath_build_calldata | Build raw xPath calldata for advanced integrations |
xpath_get_gasless_quote | Get a gasless quote with Permit2 EIP-712 signing data |
xpath_submit_gasless_swap | Submit a signed gasless swap |
xpath_get_gasless_status | Get gasless swap status by swap ID or transaction ID |