Skip to main content

Kwery MCP Server

30 tools covering Polymarket, Kalshi, Hyperliquid, Binance, and Chainlink. Works in any MCP-compatible AI tool.

What is MCP?

Model Context Protocol lets AI assistants call external tools natively. kwery-mcp exposes all Kwery data endpoints as MCP tools so Claude and other agents can fetch live market data without writing code. You describe what you want in plain language; the agent calls the right tool and returns structured data directly into the conversation.

Quick Start

Step 1 — Install:

claude mcp add kwery npx kwery-mcp@latest

Step 2 — Set your API key in your shell environment or pass it via --env:

export KWERY_API_KEY=your_api_key_here

Step 3 — Use it. Example queries to try:

  • "What's the current Polymarket probability on BTC hitting 100k?"
  • "Pull Kalshi prices for BTC at 1h intervals for the last 30 days"
  • "Get Binance funding rates for ETH — annualize them"

Multi-Platform Setup

claude mcp add kwery --env KWERY_API_KEY=your_api_key_here npx kwery-mcp@latest
ℹ️Verify

Run claude mcp list to confirm kwery appears in the server list.

All 30 Tools

CategoryToolWhat it does
Discoverykwery_sourcesList all available data sources
kwery_limitsShow plan limits, credit balance, rate limits
kwery_statusHealth check for Kwery API
Marketskwery_marketsSearch markets across all platforms
kwery_marketGet metadata for a single market
Polymarketpolymarket_marketsList/search Polymarket markets
polymarket_marketGet a single Polymarket market
polymarket_candlesOHLCV candles for a Polymarket token
polymarket_tradesRaw trade history
polymarket_snapshotsOrder book snapshot series
polymarket_snapshot_atOrder book at a specific point in time
Kalshikalshi_marketsList/search Kalshi markets
kalshi_pricesPrice history (cents, 0–100)
kalshi_orderbookCurrent order book
kalshi_snapshotsOrder book snapshot series
kalshi_snapshot_atOrder book at a specific point in time
Hyperliquidhyperliquid_marketsList Hyperliquid perp markets
hyperliquid_candlesOHLCV candles
hyperliquid_tradesRaw trade history
hyperliquid_fundingFunding rate history
hyperliquid_oiOpen interest history
hyperliquid_snapshotsOrder book snapshot series
hyperliquid_snapshot_atOrder book at a specific point in time
Binance / Chainlinkbinance_candlesBinance spot/futures OHLCV
chainlink_candlesChainlink oracle price candles
binance_ticker1-second ticker
binance_flowSpot buy/sell flow (buy_ratio)
binance_fundingFutures funding rate history
binance_oiOpen interest history
binance_liquidationsLiquidation history with side filter
⚠️Critical gotchas

Kalshi prices are in cents (0–100). Divide by 100 before comparing to Polymarket probabilities (0–1).

Always pass token_id to polymarket_candles for backtesting. Without it you get multiple rows per bar (different legs/conditions).

snapshot_at tools require either time (exact UTC timestamp) or interval (current bar for that interval). Omitting both returns an error.

Large Responses

ℹ️File-based output for large datasets

Some tools (kalshi_prices, polymarket_candles) can return hundreds of thousands of rows. Claude will save the output to a file and ask you to read it in chunks. Use limit and after pagination params to fetch smaller slices.

Example — fetch Kalshi prices in pages:

Get kalshi_prices with limit=500 and after=<cursor> for the next page

Authentication

Set KWERY_API_KEY in your shell environment, or pass it via the env block in your MCP config.

Get a key at kwery.xyz/dashboard.

ErrorMeaning
401Invalid or missing API key
403Plan limit reached — upgrade at kwery.xyz/pricing
429Rate limited — back off and retry

Pagination

All list tools support cursor-based pagination. The response includes meta.next_cursor. Pass it as the after parameter to fetch the next page. When meta.next_cursor is null, you've reached the last page.

Example prompt:

Fetch the first page of polymarket_trades with limit=200, then continue fetching pages using the next_cursor until it's null. Aggregate all results.

Links

  • Skills — Reasoning guides for backtesting, signals, derivatives, research
  • CLI — Shell-native access to the same data
  • npmkwery-mcp package
  • GitHub — Source and skill files