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 summariessmi_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 ordersmx_get_market: One market with its order book by price level and contract addressessmx_get_book: Resting order book for one market, read from chainsmx_get_clears: Recent batch clears (trades) for one marketsmx_get_candles: OHLC candles of clear prices for one marketsmx_get_stats: 24h stats for one market: last clear, change, volumesmx_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 walletsmx_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 walletsmx_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 statusperps_quote: Indicative fill price, margin and liquidation price; no executionperps_build_order: Unsigned perps transactions (MockUSDC faucet, open, close)perps_positions: Open perps positions for a walletperps_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.
smx_trading_guidereturns 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.smx_build_orderreturns the unsigned transactions to place the limit order. Your wallet signs and sends them. The minimum order is about 1 test USDC.smx_get_account_ordersshows your open orders. To cancel, runsmx_check_cancel_safety, thensmx_build_cancel: it adds claims for any unclaimed fills first, so nothing is forfeited.smx_build_claimclaims 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:
- Get a little test ETH for gas: portal.cdp.coinbase.com/products/faucet
Factory.requestAccess()on0x409cFe0157aE3Ec2C321F97422a4bFc539c4b28aPOST smx.space/app/__approvewith{"address":"0xYourWallet","chainId":84532}Factory.deployAccount()(set gas to 3.5M or more; it uses about 2.8M), thenFactory.accountOf(yourWallet)for your trading accountTestUSDC.mint(yourWallet, amount)on0x5882C96199e09771b01cFDC51eDea1D5814fc4E1, thenTestUSDC.approve(yourAccount, amount)andyourAccount.deposit(amount)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.
Next
- Agent guide: smx.space/skill.md
- API spec: smx.space/openapi.yaml
- Overview for LLMs: smx.space/llms.txt
- Source: github.com/Space-Markets-HQ/smx-mcp
SMX is operated by SMX Markets Ltd (BVI) and is currently testnet only. Test tokens have no monetary value and are not redeemable. SMX is not affiliated with, sponsored or endorsed by any company, agency or government named in its markets. Names are used only to identify the events a market refers to.
