Home · Learn · MCP integration

PredictAsiaX MCP for Claude — integration guide

Published 2026-09-05Reading time: 6 minCategory: Developer guide
TL;DR
The PredictAsiaX MCP server lets Claude Desktop and Claude Code directly search, analyze, and (with API key + user confirmation) trade event contracts on PredictAsiaX. 44 tools cover market search and data, probability tracking, portfolio and positions, order placement/cancellation, fee estimation, subaccounts, market-making, resolution evidence, builder apps, and sandbox examples. Configuration takes under 5 minutes with a single JSON edit. 17 public tools need no auth; the other 27 touch a user's account and require a Builder-Program API key with HMAC signing.

5-minute quick start

The fastest way to connect Claude Desktop to PredictAsiaX:

1. Edit your Claude Desktop config
// macOS: ~/Library/Application Support/Claude/claude_desktop_config.json // Windows: %APPDATA%\Claude\claude_desktop_config.json { "mcpServers": { "pax": { "type": "sse", "url": "https://mcp.predictasiax.com/mcp/sse" } } }
2. Restart Claude Desktop

The pax tools appear in the tools drawer within 5 seconds of restart.

3. Try it

Ask 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

ToolAuthDescription
pax.market_searchPublicSearch PredictAsiaX markets by keyword or category. Returns paginated list with prices, volume, status.
pax.market_getPublicGet full detail for a single market: title, question, prices, volume, open interest, resolution rules, template.
pax.market_orderbookPublicRead top-of-book bid/ask ladder for a market. Depth capped at 20 levels each side.
pax.market_price_historyPublicTime-series probability history for a market (LTTB-sampled). Range 1h through 90d.
pax.probability_moversPublicReturn markets whose YES probability moved the most in a window. Ranked by |delta|.
pax.markets_top_volumePublic24h volume leaderboard. Useful for surfacing hot markets.
pax.category_listPublicList all market categories with counts and 24h volume.
pax.portfolio_readAPI keyRead the user's current positions, mark-price PNL, unrealized PnL, and USDT balances.
pax.portfolio_historyAPI keyHistorical PnL curve (realized + unrealized) for the user, sampled daily.
pax.balance_getAPI keyUSDT free + reserved balance for a subaccount.
pax.positions_listAPI keyList open positions across markets with size + entry price + current mark.
pax.subaccount_listAPI keyList all subaccounts for a user with kind, currency, and balance.
pax.place_orderAPI keySubmit a new order. Requires Idempotency-Key header on the transport. Tier caps enforced server-side.
pax.cancel_orderAPI keyCancel an open or partially-filled order.
pax.cancel_all_ordersAPI keyBulk cancel all open orders for a user + (optional) market. Atomic.
pax.orders_openAPI keyList currently-open orders for the user (status IN open, partially_filled).
pax.orders_historyAPI keyHistorical orders (filled + cancelled + expired) for the user, paginated.
pax.fee_estimatePublicEstimate 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_estimateAPI keyReal-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_historyAPI keyHistorical LQF stipend payouts for a market maker. Optional market_id filter, default limit 30.
pax.liquidity_leaderboardPublicPublic leaderboard of top LQF stipend earners over a rolling window. Optional market_id filter.
pax.subaccount_createAPI keyCreate a new subaccount under the primary user account.
pax.subaccount_transferAPI keyTransfer USDT between subaccounts under the same primary user.
pax.subaccount_closeAPI keyClose (freeze) a subaccount. Rejects if positions/balance/open orders remain.
pax.composer_templates_listPublicList market templates available for opening new markets (crypto price binary, sports, election, etc).
pax.composer_template_getPublicRead a single market template with resolution rules + example config.
pax.composer_proposal_submitAPI keySubmit a new market proposal from a template. Enters admin review queue.
pax.resolution_evidencePublicReturn the evidence + sources used to resolve a market.
pax.mm_quote_postAPI keyPost a two-sided MM quote to a market. TTL 1-3600s. Requires designated MM status for rebate.
pax.mm_quotes_listPublicList active MM quotes for a market.
pax.rfq_createAPI keyCreate an RFQ (request for quote) — asks MMs to bid for a specific size.
pax.rfq_acceptAPI keyAccept a specific RFQ quote — atomically fills at the quoted price.
pax.builder_meAPI keyReturn the current builder profile: tier, apps count, 30d volume + fee revenue, verified status.
pax.builder_apps_listAPI keyList apps registered under the current builder profile.
pax.builder_apikeys_listAPI keyList API keys for a specific app (metadata only — secrets never returned).
pax.tier_statusAPI keyRead the current builder tier + auto-graduation progress (30d volume + days remaining + abuse flags).
pax.fee_ledger_readAPI keyRead fee_ledger entries attributed to the current builder — 4-way split shares + additive builder fees.
pax.webhook_endpoints_listAPI keyList webhook endpoints registered under an app.
pax.webhook_createAPI keyRegister a new webhook endpoint. Returns whsec_<hex> ONCE for signing verification.
pax.webhook_deliveriesAPI keyRead recent webhook delivery attempts for an endpoint (status, HTTP code, retry count).
pax.access_request_createPublicSubmit an access-request for a builder track (no email required — provide Telegram / Signal / Discord / Matrix / X DM handle).
pax.access_request_statusPublicCheck status of a pending access request by its request_id.
pax.sandbox_agent_examplesPublicEnd-to-end examples for building an AI agent against PAX — sandbox keys, minimal flows.
pax.healthPublicMCP 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:

{ "mcpServers": { "pax": { "type": "sse", "url": "https://mcp.predictasiax.com/mcp/sse", "headers": { "Authorization": "Bearer sk_live_xxxxxxxxxxxxxxxxxxxx" } } } }

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:

# Python pip install predictasiax from predictasiax import Client client = Client(api_key="pax_live_...") markets = client.markets.search(keyword="election") # TypeScript npm install @predictasiax/sdk import { PaxClient } from "@predictasiax/sdk"; const client = new PaxClient({ apiKey: "pax_live_..." }); const markets = await client.markets.search({ keyword: "election" });

Common issues

  1. 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).
  2. 429 Rate Limit. Public tools: 60 req/min per IP. Authenticated: 300 req/min per API key. Batch requests where possible.
  3. 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.