PredictAsiaX MCP Server
Official MCP server for PredictAsiaX, Asia's first multi-chain USDT prediction market exchange: 46 tools for market data, trading, portfolio, market making and docs search. Remote over streamable HTTP and SSE.
Hosted MCP Server
npx add-mcp 'https://mcp.predictasiax.com/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
PredictAsiaX MCP for Claude — integration guide
TL;DR
The PredictAsiaX MCP server lets Claude, Cursor and other AI agents search, analyze and — with an API key and the user's confirmation — trade PredictAsiaX markets. 46 tools cover market data, trading, portfolio, subaccounts, market making and RFQ, market creation and resolution evidence, builder operations, webhooks and docs search. Setup is one command in Claude Code or one JSON entry in Cursor. Docs search needs no key; every other tool takes Authorization: Bearer sk_live_*.
5-minute quick start
The server speaks Streamable HTTP at https://mcp.predictasiax.com/mcp (MCP 2025-06-18); the key goes in the Authorization header.
1. Get an API key
Market data and the docs need no key: to only read markets or search the docs, skip this step and leave the header out. For the account tools, a sandbox key works (no sign-up; the key is shown once). Keys for real accounts come from the Builder Portal at builders.predictasiax.com.
curl -X POST https://api.predictasiax.com/v1/sandbox-keys \ -H "Content-Type: application/json" \ -d '{"org_name":"my-agent"}'
2. Add the server — Claude Code
claude mcp add --transport http pax https://mcp.predictasiax.com/mcp \ --header "Authorization: Bearer sk_live_YOUR_KEY"
2. Add the server — Cursor (~/.cursor/mcp.json) or Windsurf (serverUrl in place of url)
{ "mcpServers": { "pax": { "url": "https://mcp.predictasiax.com/mcp", "headers": { "Authorization": "Bearer sk_live_YOUR_KEY" } } } }
2. Add the server — Claude Desktop (through mcp-remote; needs Node.js)
// macOS: ~/Library/Application Support/Claude/claude_desktop_config.json // Windows: %APPDATA%\Claude\claude_desktop_config.json { "mcpServers": { "pax": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.predictasiax.com/mcp", "--header", "Authorization:${PAX_AUTH}"], "env": { "PAX_AUTH": "Bearer sk_live_YOUR_KEY" } } } }
3. Try it
Ask: "Which PredictAsiaX markets moved most in the last 24 hours?" The agent calls pax.probability_movers. Ask "How do I sign API requests with HMAC?" and it calls pax.docs_search, then pax.docs_read on the best section.
Available tools
No key: reads public data and works without a credential; with a key it counts against the key's rate limit, without one against your IP address's. Your account: acts on the account of the key (or on a subaccount or an account you trade for, via subaccount_slot / on_behalf_of).
| Tool | Auth | Description |
|---|---|---|
pax.market_search | No key | Search PredictAsiaX markets by keyword or category. Returns a page of markets with prices, volume and status. |
pax.market_get | No key | Full detail for one market: title, question, prices, volume, status and resolution rules. |
pax.market_orderbook | No key | The order book of a market: YES bid and ask levels (price, size) and the mid price. |
pax.market_price_history | No key | YES probability over time for a market, for a range from 1h to 90d or the market's whole life. |
pax.probability_movers | No key | Markets whose YES probability moved the most between from_ms and to_ms, ranked by the size of the move. Each entry says whether it moved up or down. |
pax.markets_top_volume | No key | Markets ranked by traded volume in USDT over their lifetime. |
pax.category_list | No key | Market categories with the number of markets and traded volume in each. |
pax.portfolio_read | Your account | Positions with mark-price PnL and USDT balances of your account, one of your subaccounts, or an account you trade for. |
pax.portfolio_history | Your account | Traded notional, fees and number of fills per UTC day for your account, from live fills (maker and taker). Default window is the last 30 days; at most 366 days. |
pax.balance_get | Your account | USDT available and held in open orders, for your main account, one of your subaccounts, or an account you trade for. |
pax.positions_list | Your account | Open positions with size, entry price and current mark. |
pax.subaccount_list | Your account | Your subaccount slots (1-63). Each is its own account with its own balance and positions. |
pax.place_order | Your account | Place an order on a market. Limit by default; market, ioc, fok and post_only via order_type. Tier caps are enforced server-side. A retry with the same client_order_id never places a second order. |
pax.cancel_order | Your account | Cancel an open or partially filled order. Pass the subaccount_slot / on_behalf_of it was placed with. |
pax.cancel_all_orders | Your account | Cancel every open order of the account, in one market or in all markets. |
pax.orders_open | Your account | Orders of the account that are open or partially filled, newest first. |
pax.orders_history | Your account | Finished orders of the account (filled, cancelled, expired, rejected), newest first. Pass next_cursor from a full page as cursor to read further back. |
pax.fee_estimate | No key | Estimate the fee of a hypothetical order: the PAX Adaptive Fee (8-20 bps, highest at a price of 0.50 and lower toward the extremes), plus an optional partner fee of 0-100 bps. |
pax.mm_stipend_estimate | Your account | Forecast of your liquidity stipend on one market for the current epoch, from the quality snapshots recorded so far. |
pax.mm_stipend_history | Your account | Your past liquidity stipend payouts, optionally for one market. |
pax.liquidity_leaderboard | No key | Top liquidity stipend earners over a rolling window of days, optionally for one market. |
pax.subaccount_create | Your account | Create subaccount slot 1-63: its own account with its own balance and positions, trading at the main account's VIP tier. |
pax.subaccount_transfer | Your account | Move USDT between your main account (slot 0) and your subaccount slots. |
pax.subaccount_close | Your account | Delete an empty subaccount slot. Rejected (SUBACCOUNT_NOT_EMPTY) while it holds a balance, open orders or positions. |
pax.composer_templates_list | No key | Market templates with their parameter schemas. |
pax.composer_template_get | No key | One market template with its parameter schema and example configuration. |
pax.composer_proposal_submit | Your account | Create a market from your own question. On success the market is created and its market_id and status are returned. A creator deposit (deposit_amount, USDT) is debited from the platform balance; if it is too low the error DEPOSIT_REQUIRED states the minimum. |
pax.resolution_evidence | No key | The evidence and sources used to resolve a market. |
pax.mm_quote_post | Your account | Post up to 20 quotes on a market. Each quote is a real post-only order that is cancelled when ttl_sec passes. Pass quotes[], or a single side, price and size. |
pax.mm_quotes_list | No key | Live market maker quotes on a market, by outcome and side. |
pax.rfq_create | Your account | Create an RFQ (request for quote): market makers answer with a price for this size. |
pax.rfq_accept | Your account | Accept one quote on your RFQ; it fills at the quoted price. |
pax.builder_me | Your account | Your builder profile. |
pax.builder_apps_list | Your account | Apps registered under your builder profile. |
pax.builder_apikeys_list | Your account | API keys of one app (metadata only; secrets are never returned). |
pax.tier_status | Your account | Your builder tier and progress toward automatic graduation: 30-day volume against the next tier's requirement, days in tier and any active abuse flags. |
pax.fee_ledger_read | Your account | Per-fill fee ledger for your builder account: builder share and market-creator share. Default window is the last 30 days. |
pax.webhook_endpoints_list | Your account | Webhook endpoints registered under an app. |
pax.webhook_create | Your account | Register a webhook endpoint. Returns the signing secret (whsec_...) once. |
pax.webhook_deliveries | Your account | Recent delivery attempts for a webhook endpoint: status, HTTP code and retry count. |
pax.access_request_create | No key | Ask for builder API access. Contact by Telegram, Signal, Discord, Matrix, X DM or email. |
pax.access_request_status | No key | Status of an access request by its request_id. |
pax.docs_search | No key | Full-text search over the PredictAsiaX developer docs (docs.predictasiax.com): guides, every REST endpoint and every WebSocket message. Returns the best-matching sections with a link to the exact anchor, a snippet and, with include_content, the section's Markdown. Searches the language of the query (en, zh-Hans, zh-Hant, ja, ko, vi, th, id) and falls back to English. No credential needed. |
pax.docs_read | No key | Markdown of one docs page, or of one section of it when the URL has an anchor (as returned by pax.docs_search). Accepts a full https://docs.predictasiax.com URL or a path such as 'auth', '/ja/builders' or 'webhook-signing#algorithm'. No credential needed. |
pax.sandbox_agent_examples | No key | Example tool calls for building an AI agent against PAX. |
pax.health | No key | MCP server status, protocol version and tool count. |
Placing orders safely
pax.place_order needs a client_order_id (or idempotency_key): a retry with the same value never places a second order. Tier caps are enforced server-side. Have the agent confirm every order with the user before calling it.
Alternative: direct SDK use
Without MCP, the official SDKs wrap the REST API:
# Python pip install "pax-api>=3" from pax_api import PaxClient pax = PaxClient(api_key="sk_live_...") print(pax.get_balance()) # TypeScript npm i @predictasiax/api@3 import { PaxClient } from "@predictasiax/api"; const pax = new PaxClient({ apiKey: "sk_live_..." });
Full reference and quickstarts: docs.predictasiax.com/downloads.
Common issues
- Tools do not appear. Check that the JSON is valid, then quit and reopen the client. Claude Desktop needs Node.js for
mcp-remote. - AUTH_REQUIRED or AUTH_INVALID. The Authorization header is missing, or the key was revoked. Mint or create a new key.
- RATE_LIMITED (429). The key's per-minute budget for that kind of request is used up; wait for Retry-After. Limits: docs.predictasiax.com/rate-limits.
- IDEMPOTENCY_KEY_MISSING on place_order. Pass a
client_order_id.
MCP Registry
The server is listed in the official MCP Registry as com.predictasiax/mcp.
Frequently asked questions
What is MCP (Model Context Protocol)?
The Model Context Protocol (MCP) is an open standard released by Anthropic in November 2024 that lets AI assistants (Claude Desktop, Claude Code, and any MCP-compatible client) connect to external data sources and tools. MCP servers expose tools, resources, and prompts over stdio or HTTP transport. Once configured, the AI can invoke the server's tools directly during conversation.
What can an AI agent do with the PredictAsiaX MCP server?
It can (1) search markets and read market detail, order books, price history, the biggest probability moves and volume rankings; (2) read an account's balance, positions, open orders and history; (3) place and cancel orders, after confirming with the user; (4) estimate fees, manage subaccounts, quote as a market maker and run RFQs; (5) create markets from templates and read resolution evidence; (6) manage builder apps, API keys, webhooks and tier progress; (7) search and read the developer docs. All 46 tools, with their input schemas, are listed at mcp.predictasiax.com/mcp/manifest.json; tools/list returns the same list at runtime.
How do I connect a client?
The server speaks Streamable HTTP at https://mcp.predictasiax.com/mcp (legacy SSE clients use https://mcp.predictasiax.com/sse). Claude Code: claude mcp add --transport http pax https://mcp.predictasiax.com/mcp --header "Authorization: Bearer sk_live_...". Cursor and Windsurf take the URL and an Authorization header in their MCP config. Claude Desktop runs local servers, so it connects through the mcp-remote bridge. The configs are in the quick start above.
Does the MCP server require authentication?
The 19 tools that read public data work without a credential: markets, order books, price history, fees, templates, resolution evidence, market-maker quotes, and pax.docs_search and pax.docs_read. Without a key they count against your IP address's rate limit. The other 27 need an API key sent as Authorization: Bearer sk_live_* and act on the key's own account (a sandbox key minted instantly with POST /v1/sandbox-keys works for trying them): balances, positions, orders, subaccounts, market making, builder apps and webhooks. Keys come from the Builder Portal at builders.predictasiax.com or from Settings → API Keys on PredictAsiaX. See docs.predictasiax.com/auth.
Can I use the MCP server from Claude Code?
Yes. Run claude mcp add --transport http pax https://mcp.predictasiax.com/mcp --header "Authorization: Bearer sk_live_..."; add --scope user to make it available in every project. The tools then work in interactive sessions and with claude -p.
Which SDK should I use for direct API integration?
Python: pip install "pax-api>=3" (from pax_api import PaxClient). TypeScript: npm i @predictasiax/api@3 (import { PaxClient } from "@predictasiax/api"). Both authenticate with Bearer or HMAC, add an Idempotency-Key to writes and can mint a sandbox key. For other languages, generate a client from the OpenAPI spec at docs.predictasiax.com/downloads/openapi.yaml.
What's the difference between the MCP server and the REST API?
The REST API (documented at docs.predictasiax.com) is the general HTTP interface. The MCP server is a thin layer over it for AI agents: each operation is a tool with a description and a JSON schema a model can reason about. It forwards your key to the REST API, turns idempotency_key or client_order_id into the Idempotency-Key header, and passes the API's error codes through unchanged. Use MCP for agent workflows and REST for backend integrations.
Is there a rate limit on the MCP server?
Each tool call is a REST request made with your key, so it counts against the same per-key budgets as the REST API — for example 600 market-data reads, 30 order placements and 60 cancellations per minute, the same for every tier. A 429 response carries Retry-After. See docs.predictasiax.com/rate-limits.