Connect your AI agent to CSPR.trade — the Uniswap V2 DEX on the Casper Network — in under a minute. No local setup required.
Public Endpoint
A production MCP server is live at:
https://mcp.cspr.trade/mcp
This is a Streamable HTTP endpoint on Casper mainnet. It exposes 14 tools for market data, swaps, liquidity, and account queries — ready for any MCP-compatible client.
Health check: https://mcp.cspr.trade/health
Connect Your Client
Claude Desktop / Claude Code
Add to your MCP settings (.claude.json or Claude Desktop config):
{
"mcpServers": {
"cspr-trade": {
"url": "https://mcp.cspr.trade/mcp"
}
}
}
That's it. Claude can now check token prices, get swap quotes, and explore liquidity pools on Casper.
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"cspr-trade": {
"url": "https://mcp.cspr.trade/mcp"
}
}
}
OpenClaw
Add to your skill config or connect via the clawfetch skill pointing at the MCP endpoint.
Any MCP Client
Point your client at:
https://mcp.cspr.trade/mcp
The server speaks Streamable HTTP (the standard MCP HTTP transport). No API key required.
What You Can Do
Once connected, your agent has access to 14 tools:
Market Data (read-only, no wallet needed)
get_tokens— List tradable tokens with USD/EUR pricingget_pairs— Browse trading pairs with reserves and statsget_pair_details— Deep dive into a specific pairget_quote— Get swap quotes with routing, price impact, slippageget_currencies— Available fiat currencies for pricing
Trading (requires a Casper wallet)
build_swap— Build an unsigned swap transactionbuild_approve_token— Build a token approval transactionsubmit_transaction— Submit a signed transaction to the network
Liquidity (requires a Casper wallet)
build_add_liquidity— Build an add-liquidity transactionbuild_remove_liquidity— Build a remove-liquidity transaction
Account
get_liquidity_positions— View LP positions for any accountget_impermanent_loss— Calculate IL for a positionget_swap_history— Transaction history by account or pair
Local Signing
sign_deploy— Sign transactions locally (signer mode only, see Self-Hosting)
Try It Now
Ask your agent:
"What tokens are available on CSPR.trade?"
"Get me a quote for swapping 1000 CSPR to USDT"
"Show me the top liquidity pools by reserves"
Market data queries work immediately — no wallet needed.
Non-Custodial Design
When executing trades, the MCP server never handles private keys. The flow is:
- Agent calls
build_swap→ gets unsigned transaction JSON - You sign the transaction with your own key (locally or via a separate signer)
- Agent calls
submit_transactionwith the signed transaction
Your private key never touches the MCP server or the network.
Next Steps
- Agent Guide — Detailed workflow guide for AI agents using these tools
- Self-Hosting — Run your own MCP server with the npm packages
- SDK Reference — Use the TypeScript SDK directly in your own code