1. Five Live Forecasting MCP Tools Included
Every tool maps directly to our deterministic /v1/markets/* REST gateway with identical credit accounting and zero-charge-on-empty protection.
| MCP Tool Name | Backed Endpoint | Credit Cost | Primary Use Case |
|---|---|---|---|
| search_prediction_markets | GET /v1/markets/search | 2 Credits / market | Discover open Polymarket & Kalshi contracts |
| get_market_detail | GET /v1/markets/detail | 10 Credits / call | Inspect settlement rules, outcomes & hourly PG history |
| get_market_orderbook | GET /v1/markets/orderbook | 5 Credits / call | Inspect L2 bid/ask depth, mid-price & spread_bps |
| get_market_movers | GET /v1/markets/movers | 2 Credits / mover | Rank sharpest 24h implied-probability shifts |
| compare_cross_venue_probabilities | GET /v1/markets/search | 2 Credits / market | Compare Polymarket vs Kalshi consensus on one topic |
2. Cursor / Claude Desktop JSON Configuration
Paste this snippet into your MCP settings file or click the 1-click Cursor install button on /mcp.
Streamable HTTP MCP Configuration
Works in Cursor, Windsurf, Claude Desktop, and custom MCP SDK clients.
curl -sS -X POST "https://api.predictionmarketapi.dev/mcp" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'# Verify MCP tools/list via Python
import requests
r = requests.post(
"https://api.predictionmarketapi.dev/mcp",
json={"jsonrpc": "2.0", "id": 1, "method": "tools/list"},
)
print([t["name"] for t in r.json()["result"]["tools"]])const res = await fetch("https://api.predictionmarketapi.dev/mcp", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/list" }),
});
console.log(await res.json());{
"mcpServers": {
"predictionmarketapi": {
"url": "https://api.predictionmarketapi.dev/mcp",
"headers": {
"x-api-key": "pm_live_YOUR_API_KEY"
}
}
}
}Interactive Quant Forecasting Underwriting Terminal · POST /v1/mcp
Verify real-time latency, parcel credit math & JSON schema
Frequently Asked Questions
- Which MCP protocol versions are supported?
- Our gateway supports Streamable HTTP MCP protocol versions 2025-06-18, 2025-03-26, and 2024-11-05, plus OAuth 2.1 PKCE discovery at /.well-known/oauth-protected-resource.