llms.txt Content
# CSPR.trade MCP Server
> CSPR.trade is a decentralized exchange (DEX) on the Casper Network, forked from Uniswap V2. This MCP server provides 18 tools for market data, trading, liquidity management, trade analysis, account queries, and local transaction signing.
## Protocol Overview
CSPR.trade is an automated market maker (AMM) DEX built on the Casper blockchain. It uses the constant product formula (x * y = k) from Uniswap V2. Users can swap tokens, provide liquidity to earn fees, and check their positions. The native currency is CSPR (9 decimals). All on-chain interactions go through the CSPR.trade router contract using proxy WASM deploys.
## MCP Server
The `@make-software/cspr-trade-mcp` server exposes 18 tools over the Model Context Protocol (MCP). It supports stdio transport (local) and HTTP Streamable transport (remote), and wraps the `@make-software/cspr-trade-mcp-sdk` TypeScript SDK.
### Configuration
Set environment variables before starting:
- `CSPR_TRADE_NETWORK` -- `testnet` or `mainnet` (default: `mainnet`)
- `CSPR_TRADE_API_URL` -- Override API base URL (optional)
- `CSPR_TRADE_TRANSPORT` -- `stdio` (default) or `http`
- `CSPR_TRADE_HOST` -- HTTP listen host (default: `0.0.0.0`)
- `CSPR_TRADE_PORT` -- HTTP listen port (default: `3000`)
### Usage with Claude Desktop / Claude Code
```json
{
"mcpServers": {
"cspr-trade": {
"command": "node",
"args": ["path/to/packages/mcp/dist/index.js"],
"env": {
"CSPR_TRADE_NETWORK": "testnet"
}
}
}
}
```
### Local Signer (optional, for end-to-end transaction flows)
Run a second instance in `--signer` mode alongside the main server. This gives agents a `sign_deploy` tool that signs deploys locally -- the private key never leaves the machine and is never seen by the LLM.
```json
{
"mcpServers": {
"cspr-trade": {
"command": "node",
"args": ["path/to/packages/mcp/dist/index.js"],
"env": { "CSPR_TRADE_NETWORK": "testnet" }
},
"cspr-sign