PredictAsiaX MCP for Claude — integration guide
5-minute quick start
The fastest way to connect Claude Desktop to PredictAsiaX:
1. Edit your Claude Desktop configThe pax tools appear in the tools drawer within 5 seconds of restart.
3. Try itAsk Claude: "Show me the top 5 prediction markets by probability movement in the last 24 hours." Claude will invoke pax.probability_movers and render the results.
Available tools
| Tool | Auth | Description |
|---|---|---|
pax.market_search | Public | Search PredictAsiaX markets by keyword or category. Returns paginated list with prices, volume, status. |
pax.market_get | Public | Get full detail for a single market: title, question, prices, volume, open interest, resolution rules, template. |
pax.market_orderbook | Public | Read top-of-book bid/ask ladder for a market. Depth capped at 20 levels each side. |
pax.market_price_history | Public | Time-series probability history for a market (LTTB-sampled). Range 1h through 90d. |
pax.probability_movers | Public | Return markets whose YES probability moved the most in a window. Ranked by |delta|. |
pax.markets_top_volume | Public | 24h volume leaderboard. Useful for surfacing hot markets. |
pax.category_list | Public | List all market categories with counts and 24h volume. |
pax.portfolio_read | API key | Read the user's current positions, mark-price PNL, unrealized PnL, and USDT balances. |
pax.portfolio_history | API key | Historical PnL curve (realized + unrealized) for the user, sampled daily. |
pax.balance_get | API key | USDT free + reserved balance for a subaccount. |
pax.positions_list | API key | List open positions across markets with size + entry price + current mark. |
pax.subaccount_list | API key | List all subaccounts for a user with kind, currency, and balance. |
pax.place_order | API key | Submit a new order. Requires Idempotency-Key header on the transport. Tier caps enforced server-side. |
pax.cancel_order | API key | Cancel an open or partially-filled order. |
pax.cancel_all_orders | API key | Bulk cancel all open orders for a user + (optional) market. Atomic. |
pax.orders_open | API key | List currently-open orders for the user (status IN open, partially_filled). |
pax.orders_history | API key | Historical orders (filled + cancelled + expired) for the user, paginated. |
pax.fee_estimate | Public | Estimate the taker fee for a hypothetical order under the PAX Adaptive Fee Curve (PAF): 8-25 bps depending on price extremity, plus optional additive partner fee (0-100 bps). |
pax.mm_stipend_estimate | API key | Real-time LQF stipend forecast for a market maker on one market this epoch. Returns projected payout at 00:15 UTC based on snapshots seen so far. |
pax.mm_stipend_history | API key | Historical LQF stipend payouts for a market maker. Optional market_id filter, default limit 30. |
pax.liquidity_leaderboard | Public | Public leaderboard of top LQF stipend earners over a rolling window. Optional market_id filter. |
pax.subaccount_create | API key | Create a new subaccount under the primary user account. |
pax.subaccount_transfer | API key | Transfer USDT between subaccounts under the same primary user. |
pax.subaccount_close | API key | Close (freeze) a subaccount. Rejects if positions/balance/open orders remain. |
pax.composer_templates_list | Public | List market templates available for opening new markets (crypto price binary, sports, election, etc). |
pax.composer_template_get | Public | Read a single market template with resolution rules + example config. |
pax.composer_proposal_submit | API key | Submit a new market proposal from a template. Enters admin review queue. |
pax.resolution_evidence | Public | Return the evidence + sources used to resolve a market. |
pax.mm_quote_post | API key | Post a two-sided MM quote to a market. TTL 1-3600s. Requires designated MM status for rebate. |
pax.mm_quotes_list | Public | List active MM quotes for a market. |
pax.rfq_create | API key | Create an RFQ (request for quote) — asks MMs to bid for a specific size. |
pax.rfq_accept | API key | Accept a specific RFQ quote — atomically fills at the quoted price. |
pax.builder_me | API key | Return the current builder profile: tier, apps count, 30d volume + fee revenue, verified status. |
pax.builder_apps_list | API key | List apps registered under the current builder profile. |
pax.builder_apikeys_list | API key | List API keys for a specific app (metadata only — secrets never returned). |
pax.tier_status | API key | Read the current builder tier + auto-graduation progress (30d volume + days remaining + abuse flags). |
pax.fee_ledger_read | API key | Read fee_ledger entries attributed to the current builder — 4-way split shares + additive builder fees. |
pax.webhook_endpoints_list | API key | List webhook endpoints registered under an app. |
pax.webhook_create | API key | Register a new webhook endpoint. Returns whsec_<hex> ONCE for signing verification. |
pax.webhook_deliveries | API key | Read recent webhook delivery attempts for an endpoint (status, HTTP code, retry count). |
pax.access_request_create | Public | Submit an access-request for a builder track (no email required — provide Telegram / Signal / Discord / Matrix / X DM handle). |
pax.access_request_status | Public | Check status of a pending access request by its request_id. |
pax.sandbox_agent_examples | Public | End-to-end examples for building an AI agent against PAX — sandbox keys, minimal flows. |
pax.health | Public | MCP server health + protocol version + D1 reachability + upstream latency. |
Adding API key auth
For account tools (e.g. portfolio_read, place_order, cancel_order), you need an API key from the Builder Portal at builders.predictasiax.com. Once you have a key, add it to your MCP config:
API keys are HMAC-signed at the server side. Full auth details at docs.predictasiax.com/auth.
Using from Claude Code (CLI)
Claude Code supports the same config format. Place at ~/.config/claude/mcp-config.json or pass with --mcp-config. Tools become available in interactive sessions and non-interactive (-p) mode.
Alternative: direct SDK use
If you're not using MCP, the official SDKs wrap the REST + WebSocket API:
Common issues
- Tools not appearing after restart. Check JSON is valid (missing commas are the #1 cause). Restart Claude Desktop fully (quit + relaunch, not just close window).
- 429 Rate Limit. Public tools: 60 req/min per IP. Authenticated: 300 req/min per API key. Batch requests where possible.
- 401 Unauthorized on write tools. API key wrong or expired. Regenerate at builders.predictasiax.com.
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 Claude do with the PredictAsiaX MCP server?
Once connected, Claude can: (1) search live prediction markets and read market detail, order books, price history, and category/volume leaderboards; (2) fetch top probability movers over configurable time windows; (3) read a user's portfolio, positions, orders, and balances (with API key); (4) place, cancel, and batch-cancel orders (with API key + explicit user confirmation); (5) retrieve resolution evidence for settled markets; (6) estimate fees, manage subaccounts, post market-maker quotes and RFQs, submit market proposals, and manage builder apps, webhooks, and access requests (with API key); (7) run sandbox agent example flows for development. All 44 tools are documented at mcp.predictasiax.com/mcp/manifest.json.
How do I add PredictAsiaX to Claude Desktop?
Add the following to your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows). Include an 'mcpServers' object with a pax entry pointing to https://mcp.predictasiax.com/mcp/sse for SSE transport, or use the HTTP endpoint /mcp/call for stateless invocation. Restart Claude Desktop and the pax tools appear in the tools list.
Does the MCP server require authentication?
17 of the 44 tools are public and require no authentication — these cover market data and reference lookups (market_search, market_orderbook, probability_movers, fee_estimate, resolution_evidence, sandbox_agent_examples, and others). The other 27 touch a specific user's account — portfolio, orders, subaccounts, market-making, builder apps, and webhooks — and require an API key issued from the PredictAsiaX Builders portal at builders.predictasiax.com. API keys are passed as Authorization: Bearer sk_live_* on every request. See docs.predictasiax.com/auth for the full auth guide.
Can I use the MCP server from Claude Code?
Yes. Claude Code (the CLI) supports the same claude_desktop_config.json format via ~/.config/claude/mcp-config.json (or the CLI's --mcp-config flag). Once configured the MCP tools are available via the Skill and Bash tool wrappers in interactive and non-interactive Claude Code sessions.
Which SDK should I use for direct API integration?
PredictAsiaX provides official Python and TypeScript SDKs that wrap the REST + WebSocket API with HMAC signing built in. Python: pip install predictasiax; TypeScript: npm install @predictasiax/sdk. Both are open-source and follow industry-standard patterns developers expect from prediction market SDKs. Source and examples at github.com/predictasiax (currently under appeal for account restoration).
What's the difference between the MCP server and the REST API?
The REST API (docs.predictasiax.com/api) is a general HTTP interface for any client. The MCP server is a thin adapter on top of the REST API optimized for AI agents — it exposes the same operations as MCP tools with descriptions and JSON schemas that AI models can reason about, and it handles auth, rate limits, and idempotency headers automatically. For AI-driven workflows, use MCP; for traditional backend integration, use REST directly.
Is there a rate limit on the MCP server?
Yes. Public tools: 60 requests per minute per IP. Authenticated tools: 300 requests per minute per API key, higher tiers available for Builder Program participants. When rate-limited the response returns 429 with a Retry-After header. See docs.predictasiax.com/security for full rate limit policy.
