CSPR.trade
CSPR.trade MCP
Mainnet-ready MCP interface for Casper DeFi

AI Agent Integration for CSPR.trade DEX

Connect AI agents to on-chain DeFi on Casper — market data, swaps, liquidity management. Non-custodial by design.

How it works

A clean non-custodial flow

Agents query prices, routes, and transaction bundles through the MCP server. When it’s time to sign, the private key stays local in a separate signer flow.

Client
AI Agent

Claude, Codex, remote agents

Protocol
MCP Server

stdio or HTTP transport

Library
TypeScript SDK

Quotes, swaps, liquidity, submission

Backend
CSPR.trade API

Market data and transaction building

Optional branch
Local signer

Signs deploys locally. Keys never touch the network.

Build remotely, sign locally, submit remotely. The split is the whole point: powerful automation without handing your private key to the internet like it’s a valet ticket.

14 MCP Tools

Market data, swaps, liquidity operations, account history, and local signing in one clean tool surface.

Non-Custodial

Transactions are built remotely but signed locally. Private keys stay on your machine, where they belong.

Dual Transport

Use stdio for local developer workflows like Claude Code, or HTTP for hosted agent environments.

TypeScript SDK

Use the same capabilities programmatically with typed helpers for quoting, transaction building, and submission.

Quick start

Start local or remote

Claude Code (stdio)

Open docs →
{
  "mcpServers": {
    "cspr-trade": {
      "command": "node",
      "args": ["/path/to/cspr-trade-mcp/packages/mcp/dist/index.js"],
      "env": { "CSPR_TRADE_NETWORK": "testnet" }
    }
  }
}

HTTP (remote)

Agent guide →
CSPR_TRADE_NETWORK=testnet CSPR_TRADE_TRANSPORT=http CSPR_TRADE_PORT=3001   node packages/mcp/dist/index.js

Public endpoint

Mainnet endpoint is live

MCP: https://mcp.cspr.trade/mcp
Health: https://mcp.cspr.trade/health