CSPR[dot]trade MCP
Per the supplied schema, this server supports CSPR.trade market data, transaction building/submission, liquidity management, and account analysis.
List tradable tokens, fiat currencies, trading pairs, pair details, and swap quotes with price impact/routing.
Build unsigned swap and token-approval transactions for external signing, with slippage, deadline, and approval options.
Submit signed Casper transactions; the hosted endpoint accepts inline signed JSON only and never handles private keys.
Build add/remove-liquidity transactions and query an account's liquidity positions.
Calculate impermanent loss for a position and fetch swap history filtered by pair or public key.
Use pagination/ordering and optional fiat pricing; README also notes a read-only endpoint without transaction tools and an optional local signer.
Integrates Coinbase's CDP Facilitator for optional x402 payments, enabling HTTP deployments to require payments for premium MCP tools and expose Agentic.Market discovery metadata.
CSPR.trade MCP
AI agent integration for CSPR.trade, the leading DEX on the Casper Network.
🔗 Public endpoint: https://mcp.cspr.trade/mcp — connect any MCP client, no setup required.
The hosted endpoint runs with file-based deploy input disabled. submit_transaction accepts inline signed JSON only; it will not read deploy files from the server filesystem.
📖 Documentation: mcp.cspr.trade
Connect Your Agent
Add to Claude Desktop, Cursor, or any MCP client config:
{
"mcpServers": {
"cspr-trade": {
"url": "https://mcp.cspr.trade/mcp"
}
}
}That's it. Your agent now has access to 23 public tools for market data, swaps, liquidity management, trade analysis, portfolio tracking, and account queries on the Casper Network.
Related MCP server: freqtrade-mcp
What's Available
Public MCP surface: 23 tools
Category | Tools | Wallet Required |
Market Data |
| No |
Trading |
| Yes |
Liquidity |
| Yes |
Trade Analysis |
| No |
Account |
| No |
Read-only endpoint
https://mcp.cspr.trade/mcp/read-only serves the same server without the transaction tools (build_* and submit_transaction): market data, account lookups and trade analysis only, every tool annotated readOnlyHint: true. Use it where a client or directory must not build or broadcast transactions. Sessions are bound to the endpoint they were created on.
Optional local signer: +1 tool
Run a second local MCP instance in --signer mode to add:
sign_deploy— local-only deploy signing with keys loaded from your machine
That gives you 24 total tools across the full two-server setup.
Non-custodial by design. The public MCP server never handles private keys. Transactions are built remotely and signed locally when you enable signer mode.
OpenClaw Skill
Using OpenClaw? Install the agent skill from ClawHub:
npx clawhub@latest install cspr-trade-mcpThe skill teaches your agent the full workflow — intent classification, quote-before-swap patterns, price-impact warnings, local signing flows, price-history lookups, portfolio checks, and error recovery. Works with any OpenClaw-compatible agent.
Self-Hosting
Want testnet access or a private instance? Install the npm packages:
npm install @make-software/cspr-trade-mcp{
"mcpServers": {
"cspr-trade": {
"command": "npx",
"args": ["@make-software/cspr-trade-mcp"],
"env": { "CSPR_TRADE_NETWORK": "testnet" }
}
}
}See the Self-Hosting guide for HTTP server setup, local signer mode, production deployment, and the optional file-path workflow.
Agentic.Market / x402 Discovery
HTTP deployments can expose Agentic.Market discovery metadata and optionally require x402 payments through Coinbase's CDP Facilitator.
Env var | Default | Purpose |
|
| Enables x402 payment middleware for |
| none | Base/EVM address receiving x402 settlements; required when x402 is enabled |
|
| CDP Facilitator endpoint |
| none | CDP API key pair; required when payments use the CDP Facilitator |
|
| Public base URL used in x402 |
pricing | built in | Premium MCP tools cost |
GET /cdp-resource returns Bazaar discovery metadata for the 23 public MCP tools. The optional local signer tool is intentionally excluded from the Agentic.Market manifest.
Packages
Package | Description |
MCP server — 23 public tools over stdio or HTTP, plus optional | |
TypeScript SDK — market data, price history, quotes, analysis, and transaction building |
Development
npm install # Install dependencies
npm run build # Build all packages
npm test # Run testsLicense
MIT
Available Tools
13 toolsbuild_add_liquidityB
Build an unsigned add-liquidity transaction for a token pair
Inputs: token_a (required), token_b (required), amount_a (required), amount_b (required), +5 more.
build_approve_tokenA
Build an unsigned token approval transaction. Spender defaults to the CSPR.trade router.
Inputs: token (required), amount (required), sender_public_key (required), spender.
build_remove_liquidityC
Build an unsigned remove-liquidity transaction
Inputs: pair (required), percentage (required), sender_public_key (required), slippage_bps, +1 more.
build_swapA
Build an unsigned swap transaction. Returns the deploy JSON for external signing, plus a human-readable summary.
Inputs: token_in (required), token_out (required), amount (required), type (required), +4 more.
get_currenciesA
List supported fiat currencies for price display
Inputs: no named parameters.
get_impermanent_lossC
Calculate impermanent loss for a liquidity position
Inputs: account_public_key (required), pair (required).
get_liquidity_positionsC
Get liquidity positions for an account
Inputs: account_public_key (required), currency.
get_pair_detailsB
Get detailed information about a specific trading pair
Inputs: pair (required), currency.
get_pairsC
List trading pairs on CSPR.trade with reserves and pricing data
Inputs: page, page_size, order_by, order_direction, +1 more.
get_quoteA
Get a swap quote for trading between two tokens. Returns amounts, price impact, and routing path.
Inputs: token_in (required), token_out (required), amount (required), type (required).
get_swap_historyC
Get swap transaction history
Inputs: public_key, pair, page, page_size.
get_tokensB
List all tradable tokens on CSPR.trade with optional fiat pricing
Inputs: currency.
submit_transactionA
Submit a signed transaction to the Casper network via node RPC.
Inputs: signed_deploy_json (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool has a clearly distinct purpose with no overlap: transaction-building tools (build_*), data retrieval tools (get_*), and a submission tool (submit_transaction). The descriptions clearly differentiate between constructing transactions, fetching information, and submitting signed transactions.
Tool names follow a highly consistent verb_noun pattern throughout: all start with either 'build_' or 'get_' except 'submit_transaction', which still follows the same convention. This predictability makes it easy for agents to understand the action each tool performs.
With 13 tools, the count is well-scoped for a DeFi trading platform, covering core operations like swapping, liquidity management, data queries, and transaction submission. Each tool earns its place without redundancy or obvious omissions.
The toolset provides complete coverage for the DeFi trading domain: it supports full swap and liquidity workflows (quote, build, submit), comprehensive data access (tokens, pairs, history, positions), and utility functions (impermanent loss, currencies). No significant gaps are apparent for typical agent tasks.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP tool marketplace for AI agents: web, OSINT, security and research tools through one key.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that provides AI agents with real-time access to DEX liquidity pool data, enabling smarter trading, analytics, and automated strategies.101MIT
- AlicenseAqualityCmaintenanceMCP server that connects AI agents to Freqtrade crypto trading bot via REST API. It provides 15 tools for account stats, trade management, market data, pair lists, and bot lifecycle control.19454 npm2MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for autonomous AI agents to discover, pay for, and rate paid APIs on Casper with policy-controlled approvals and on-chain reputation.Apache 2.0
- AlicenseAqualityDmaintenanceMCP server for EdgeX perpetual contract trading, providing 16 AI agent tools for market data, account management, and order execution.1725 npmMIT