# make-software/cspr-trade-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/make-software/cspr-trade-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 96  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/make-software-cspr-trade-mcp

## Description
Non-custodial DEX trading on the Casper Network via CSPR.trade. 14 tools for market data, swaps, liquidity, and account queries. Transactions built remotely, signed locally — private keys never leave the machine. Public endpoint: https://mcp.cspr.trade/mcp

## Tools
Capabilities this server exposes over MCP:

- **get_tokens** — List all tradable tokens on CSPR.trade with optional fiat pricing
- **get_pairs** — List trading pairs on CSPR.trade with reserves and pricing data
- **get_pair_details** — Get detailed information about a specific trading pair
- **get_quote** — Get a swap quote for trading between two tokens. Returns amounts, price impact, and routing path.
- **get_currencies** — List supported fiat currencies for price display
- **get_pair_price_history** — Get OHLCV (open/high/low/close/volume) candlestick price history for a specific trading pair. Aggregates swap events into candles. Returns candles in chronological order.
- **get_token_price_history** — Get OHLCV candlestick price history for a token by symbol, name, or hash. Resolves to the primary trading pair (highest liquidity) and returns price denominated in the paired token.
- **build_swap** — Build an unsigned swap transaction. Returns the deploy JSON for external signing, plus a human-readable summary.
- **build_approve_token** — Build an unsigned token approval transaction. Spender defaults to the CSPR.trade router.
- **submit_transaction** — Submit a signed transaction to the Casper network via node RPC.
- **build_add_liquidity** — Build an unsigned add-liquidity transaction for a token pair
- **build_remove_liquidity** — Build an unsigned remove-liquidity transaction
- **get_native_cspr_balance** — Get the native CSPR balance for a Casper account. Queries the Casper node RPC directly using the account public key. Returns balance in both motes (raw) and CSPR (human-readable). Note: does not include CEP-18 token balances — use get_token_balance for those.
- **get_token_balance** — Get CEP-18 fungible token balances for a Casper account. Returns all CEP-18 tokens held, or filters to a specific token if `token` matches a symbol, name, or contract package hash. Native CSPR balance is not included (this endpoint covers CEP-18 tokens only).
- **get_liquidity_positions** — Get liquidity positions for an account
- **get_impermanent_loss** — Calculate impermanent loss for a liquidity position
- **get_swap_history** — Get swap transaction history
- **get_portfolio_value** — Get total portfolio value across all liquidity positions for an account. Returns estimated CSPR and USD values.
- **get_position_status** — Get current position status for liquidity positions. Returns impermanent loss and current token amounts per position. Note: this is not cost-basis PnL — no historical entry price is used.
- **estimate_price_impact** — Estimate the price impact of a swap before executing. Returns severity classification and execution vs. spot price.
- **estimate_slippage** — Estimate the expected slippage and minimum output for a swap. Helps set optimal slippage tolerance.
- **analyze_trade** — Comprehensive trade analysis: price impact + slippage + execution recommendation. Use before large swaps.
- **optimal_liquidity_amounts** — Given one token amount, calculate the optimal paired amount for adding liquidity to maintain the pool ratio.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "cspr-trade-mcp": {
    "command": "npx",
    "args": ["@make-software/cspr-trade-mcp"]
  }
}
```

## Documentation

## What make-software/cspr-trade-mcp does

make-software/cspr-trade-mcp exposes CSPR.trade capabilities through the Model Context Protocol. It covers the full path from market inspection to transaction preparation on the Casper Network, including token and pair discovery, swap quotes, price history, liquidity positions, balances, and portfolio estimates.

The server supports non-custodial trading workflows. Swap, approval, add-liquidity, and remove-liquidity transactions are built as unsigned deploy data. A separate signing step can run locally, and signed transactions can then be submitted to the Casper network. Private keys are not handled by the public hosted server.

## How it works

The public MCP endpoint is available at `https://mcp.cspr.trade/mcp` and can be added to an MCP client with a URL-based server configuration. It provides 23 public tools across market data, trading, liquidity, analysis, and account functions.

A separate read-only endpoint, `https://mcp.cspr.trade/mcp/read-only`, removes the transaction-building and submission tools. Its tools are marked read-only, making it suitable for clients or deployments that must not prepare or broadcast transactions. Sessions remain associated with the endpoint where they were created.

For local signing, a second MCP instance can run in signer mode. This adds `sign_deploy`, which signs deploys using keys loaded from the local machine. The hosted service accepts inline signed JSON for `submit_transaction`; its file-based deploy input is disabled.

## Setup and configuration

The hosted service requires no local installation. Configure an MCP client with the following server URL:

```json
{
  "mcpServers": {
    "cspr-trade": {
      "url": "https://mcp.cspr.trade/mcp"
    }
  }
}
```

For self-hosting, install `@make-software/cspr-trade-mcp` from npm and run it through `npx`. The package supports stdio or HTTP operation, and the network can be selected with `CSPR_TRADE_NETWORK`, including the documented testnet configuration.

HTTP deployments can optionally expose discovery metadata and require x402 payments. x402 uses `CSPR_TRADE_X402_ENABLED`, a settlement address in `CSPR_TRADE_X402_PAYTO`, and, when using Coinbase's CDP Facilitator, the relevant CDP API credentials. Premium MCP tools are priced at $0.001 when that payment configuration is enabled.

## Tools and capabilities

- Discover tradable tokens, pairs, currencies, reserves, prices, and pair details.
- Retrieve swap quotes, OHLCV history, routing paths, price impact, slippage, and trade recommendations.
- Build unsigned swaps, token approvals, and liquidity transactions.
- Submit signed transactions through Casper node RPC.
- Query native CSPR balances and CEP-18 token balances separately.
- Inspect liquidity positions, swap history, portfolio value, position status, and impermanent loss.
- Calculate matched liquidity amounts for a pool ratio.

## Limitations and notes

Native CSPR balances and CEP-18 token balances use separate tools. Position status reports current token amounts and impermanent loss, but it is not cost-basis profit and loss because it does not use historical entry prices. The token price-history tool resolves a token to its highest-liquidity primary pair and denominates the result in that pair's other token.

The optional local signer is excluded from the Agentic.Market discovery manifest. The npm distribution also includes a TypeScript SDK for market data, price history, quotes, analysis, and transaction building.

_Full upstream README: https://allmcps.com/mcp/make-software-cspr-trade-mcp/readme_

