SMXBy SpaceMarketsMarkets →

QUICKSTART · TESTNET

SMX in 5 minutes: let your agent read space event markets and build testnet orders

SMX is a testnet venue for event markets on space, built for agents and humans. Everything here runs on Base Sepolia testnet.

1. Install smx-mcp (1 min)

You need Node.js 20+. No key or account needed; all 19 tools are free.

Claude Code

claude mcp add smx -- npx -y smx-mcp

Claude Desktop: Settings → Developer → Edit Config, then add:

{
  "mcpServers": {
    "smx": { "command": "npx", "args": ["-y", "smx-mcp"] }
  }
}

Cursor: ~/.cursor/mcp.json (or .cursor/mcp.json in your project):

{
  "mcpServers": {
    "smx": { "command": "npx", "args": ["-y", "smx-mcp"] }
  }
}

Restart the client. Telemetry is off by default; add "env": { "SMX_MCP_TELEMETRY": "1" } only if you want to opt in to anonymous usage counting.

All 19 tools

SMI data (2)

  • smi_get_latest: Latest Space Markets Index print: headline and sub-index summaries
  • smi_get_methodology: SMI methodology, change log and counting rules

Market reads (7)

  • smx_list_markets: SMX testnet markets from the on-chain registry: status, bid/ask, YES midpoint, minimum order
  • smx_get_market: One market with its order book by price level and contract addresses
  • smx_get_book: Resting order book for one market, read from chain
  • smx_get_clears: Recent batch clears (trades) for one market
  • smx_get_candles: OHLC candles of clear prices for one market
  • smx_get_stats: 24h stats for one market: last clear, change, volume
  • smx_get_account_orders: Orders for a trader across markets, by wallet or SMX Account

Trading helpers and unsigned builders (5)

  • smx_trading_guide: Steps, addresses and order rules for trading from your own wallet
  • smx_check_cancel_safety: Unclaimed-fill check before you cancel (claim before cancel)
  • smx_build_order: Unsigned transactions to place a limit order from your own wallet
  • smx_build_cancel: Unsigned transactions to cancel an order (claims any fills first)
  • smx_build_claim: Unsigned claim transactions for every unclaimed fill in a market

Perps, testnet MockUSDC (5)

  • perps_list_markets: Testnet perps markets with leverage limits, rules and status
  • perps_quote: Indicative fill price, margin and liquidation price; no execution
  • perps_build_order: Unsigned perps transactions (MockUSDC faucet, open, close)
  • perps_positions: Open perps positions for a wallet
  • perps_account: Wallet readiness: gas, MockUSDC balance, allowances

2. Read the Moon Race market (1 min)

Ask your agent:

List the SMX markets, then show me the Moon Race order book.

It calls smx_list_markets, then smx_get_market with id moon-race-us-china-test-v2, and returns bid, ask, YES midpoint, minimum order and the book by price level. smx_get_clears, smx_get_candles and smx_get_stats add recent trades, price history and 24h stats.

3. Build an order and sign it yourself (3 min)

smx-mcp never signs, sends or holds keys. Its builders return unsigned Base Sepolia transactions (to, data, value, chainId 84532) that your agent signs and sends from its own wallet.

Ask your agent: Show me the SMX trading guide, then build an order to buy 3 YES at 47¢ on the Moon Race for my wallet.

  1. smx_trading_guide returns the steps, contract addresses and order rules for trading from your own wallet (access, SMX Account, test USDC, deposit). You need a little test ETH for gas: portal.cdp.coinbase.com/products/faucet.
  2. smx_build_order returns the unsigned transactions to place the limit order. Your wallet signs and sends them. The minimum order is about 1 test USDC.
  3. smx_get_account_orders shows your open orders. To cancel, run smx_check_cancel_safety, then smx_build_cancel: it adds claims for any unclaimed fills first, so nothing is forfeited. smx_build_claim claims fills on their own.

Perps on testnet work the same way: perps_account checks your wallet, perps_quote prices an order, and perps_build_order returns unsigned transactions (MockUSDC faucet, open, close) for your wallet to sign.

Your key never leaves your wallet and is never sent to SMX. Testnet only; test tokens have no value.

Raw contract path (no MCP)

Base Sepolia, chain id 84532. Sign each call from your own wallet:

  1. Get a little test ETH for gas: portal.cdp.coinbase.com/products/faucet
  2. Factory.requestAccess() on 0x409cFe0157aE3Ec2C321F97422a4bFc539c4b28a
  3. POST smx.space/app/__approve with {"address":"0xYourWallet","chainId":84532}
  4. Factory.deployAccount() (set gas to 3.5M or more; it uses about 2.8M), then Factory.accountOf(yourWallet) for your trading account
  5. TestUSDC.mint(yourWallet, amount) on 0x5882C96199e09771b01cFDC51eDea1D5814fc4E1, then TestUSDC.approve(yourAccount, amount) and yourAccount.deposit(amount)
  6. yourAccount.submitOrder(0x5C6f2e5c2A5DC2bc2459f36caA4B818879709A7D, 0, 5000, 2): YES, 50¢, 2 shares on the Moon Race

Prices are basis points in YES terms for both sides. Minimum order is about 1 test USDC (shares × price ≥ 10000).

Claim before you cancel: run smx_check_cancel_safety on your order ids first. Cancelling with an unclaimed fill forfeits it.