DEV Community

simplefunctions
simplefunctions

Posted on • Originally published at simplefunctions.dev

Give Claude Code Access to Prediction Markets (One Command)

If you use Claude Code or Cursor, you can query Kalshi and Polymarket prediction markets directly from your AI assistant:

claude mcp add simplefunctions --url https://simplefunctions.dev/api/mcp/mcp
Enter fullscreen mode Exit fullscreen mode

That's it. 16 tools are now available.

What Can You Do?

Ask Claude: "What prediction markets exist for Fed rate decisions?"

Claude calls scan_markets and returns results from both Kalshi and Polymarket with prices, volumes, and liquidity.

Ask: "Show me the orderbook for KXWTIMAX-26DEC31-T135"

Claude calls inspect_book → bid/ask levels, spread, depth, liquidity score.

Ask: "Create a thesis that oil will exceed $120"

Claude calls create_thesis → builds a causal tree, scans both exchanges for mispriced contracts, identifies edges, sets up 24/7 monitoring.

Ask: "What if Hormuz shipping drops to 10% probability?"

Claude calls what_if → simulates how all your edges would change. Zero LLM cost — pure computation.

The 16 Tools

Tool What it does
scan_markets Search Kalshi + Polymarket by keyword
inspect_book Orderbook depth for a specific market
get_liquidity Liquidity scan across 18 topics
get_context Full thesis snapshot (edges, confidence, evaluation)
create_thesis Build causal model from a market conviction
inject_signal Feed news/observations to thesis
trigger_evaluation Force re-evaluation
what_if Scenario analysis
get_positions Kalshi + Polymarket positions
get_balance Account balance
get_orders Resting orders
get_fills Trade history
get_settlements Settled contracts
get_milestones Upcoming events
get_schedule Exchange status
explore_public Browse public theses

CLI Alternative

If you prefer command-line:

npm install -g @spfunctions/cli
sf setup
sf scan "oil recession iran"
sf book KXWTIMAX-26DEC31-T135
sf liquidity geopolitics
sf edges --json
Enter fullscreen mode Exit fullscreen mode

Links

Top comments (0)