Kalshi Prediction Markets MCP server
MCP server for Kalshi prediction markets: native RSA-PSS auth, rate limiting, demo/prod safety.
3 stars266 downloads/wk
Reviews
Write oneNobody has reviewed Kalshi Prediction Markets yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Kalshi Prediction Markets tools (27, 5 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
kalshi_cancel_orderwrite actionCancel a resting order.
kalshi_confirm_orderwrite actionExecute a previously prepared order.
kalshi_decrease_orderwrite actionReduce the contract count on a resting order.
kalshi_get_api_limitsGet your account's current API rate-limit tier and remaining headroom.
kalshi_get_balanceGet the current cash balance and unrealized P&L.
kalshi_get_environmentShow which Kalshi environment this MCP server is connected to.
kalshi_get_eventFetch an event and (optionally) all markets nested under it.
kalshi_get_event_candlesticksGet OHLC candles per market in an event over a time window.
kalshi_get_eventsList events with optional filters.
kalshi_get_exchange_scheduleGet the daily/weekly trading hours schedule for the exchange.
kalshi_get_exchange_statusGet current Kalshi exchange status (open/closed, trading hours).
kalshi_get_fillsList your fills (executions against your orders).
kalshi_get_live_orderbookOpen a WebSocket, subscribe to orderbook updates for a market, collect messages for `duration_s` seconds, and return the latest snapshot plus a count of deltas observed.
kalshi_get_marketFetch a single market by ticker.
kalshi_get_market_candlesticksGet OHLC candles for a single market over a time window.
kalshi_get_market_tradesList public trades for a single market.
kalshi_get_marketsList Kalshi markets with optional filters.
kalshi_get_orderwrite actionGet the current state of a single order by id.
kalshi_get_orderbookGet the current orderbook for a market.
kalshi_get_ordersList your orders (open, filled, cancelled, etc.).
kalshi_get_positionsList your positions.
kalshi_get_seriesFetch a single series by ticker.
kalshi_get_settlementsList markets that have settled and the P&L impact on your account.
kalshi_get_tradesList recent public trades (everyone's, not your own).
kalshi_prepare_orderwrite actionPrepare an order for review. Does NOT send it to Kalshi yet.
kalshi_sample_tradesListen on the public `trade` channel for a short window and return the trades that occurred.
register_all_toolsRegister every tool module against the FastMCP server.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan25 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 7 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
What the publisher says
From the Kalshi Prediction Markets repository's README, as published. We do not edit it. Read it on GitHub
kalshi-mcp-server
<!-- mcp-name: io.github.cejor6/kalshi-mcp-server -->
📦 PyPI · 🗂️ MCP Registry · 🐳 Container image · 🚀 Deploy guide
A Model Context Protocol server for Kalshi prediction markets. Native RSA-PSS auth, async token-bucket rate limiting, two-step prepare/confirm order flow with safety caps, optional bundled OAuth proxy for remote-MCP deployments, 26 tools + 4 resources across REST and WebSocket. MIT, designed to be forked.
Works with any MCP client — locally via stdio (Claude Desktop, Claude Code, Cursor, Zed, Continue, Cline, Goose, etc.) or remotely as a self-hosted HTTP server (claude.ai custom connectors today, any OAuth-capable MCP client in the future).
⚠️ **This software lets an LLM place trades. Read DISCLAIMER.md
before deploying.** Trading prediction markets involves substantial
risk of loss. AI agents make mistakes — sometimes confidently. The
authors are not liable for any losses. Test in demo (KALSHI_ENV=demo,
KALSHITRADINGENABLED=0) until you understand the failure modes.
Status — alpha. Auth (REST + WS), rate limiting, safety controls,
26 tools across REST + live channels, and 4 resources are in place.
A long-lived multiplexed WebSocket session and kalshi://markets/{ticker}/orderbook
live resource are planned for v0.2.
Quickstart (30 seconds)
Read-only against Kalshi's demo environment — no real money, no trading flag. This is the safe way to try it.
pipx install kalshi-mcp-server # or: pip install kalshi-mcp-serverPoint any MCP client at it (this is the Claude Desktop / Claude Code shape — see the full client matrix for others):
{
"mcpServers": {
"kalshi": {
"command": "kalshi-mcp",
"args": ["--env-file", "/Users/you/.kalshi/.env"]
}
}
}Minimal ~/.kalshi/.env (get a demo key at demo.kalshi.co — it's shown once):
KALSHI_API_KEY_ID=<your-demo-key-id>
KALSHI_PRIVATE_KEY_PATH=/absolute/path/to/demo_private_key.pem
KALSHI_ENV=demoRestart the client and ask it to run a Kalshi tool. Enabling prod and trading is a deliberate opt-in — a few more flags (KALSHIALLOWPROD=1, KALSHITRADINGENABLED=1) — see Configure and the safety model.
What a call looks like
Ask the agent for tradeable markets and kalshifindliquid_markets returns a volume-ranked, combo-excluded shortlist (trimmed, illustrative):
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
claude mcp add kalshi-mcp-server -- uvx kalshi-mcp-server
Kalshi Prediction Markets: common questions
- Is Kalshi Prediction Markets MCP server safe?
- Mostly: it is graded B (83/100). Read the Kalshi Prediction Markets safety report
- How do I install Kalshi Prediction Markets?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does Kalshi Prediction Markets need an API key?
- Yes. The registry entry asks for
KALSHI_PRIVATE_KEY_PEM. - Is Kalshi Prediction Markets maintained?
- The last commit was 7 days ago (2026-09-20). The latest release is v0.1.8.
- What can I use instead of Kalshi Prediction Markets?
- Servers from other publishers that do the same job: Ticket Demo MCP server, MCP Server and MCP Server. Compare all Kalshi Prediction Markets alternatives.
Alternatives to Kalshi Prediction Markets
Same job from other publishers: the closest match first, then the best rated.
- Ticket DemoMCP server demo — tickets, schema discovery, auth, and PII gating. stdio + HTTP.not reviewedGrowingB
- MCP Server天启至数 ApocData - MCP Server for A-share market data (46 free, no-auth endpoints)not reviewedGrowingA
- MCP Server天启至数 ApocData - MCP Server for A-share market data (46 free, no-auth endpoints)not reviewedGrowingA
- RedeMCP server for Rede — Itaú-owned BR acquirer: authorize/capture/refund, zero-auth, card tokensnot reviewedEstablishedB
spintax.net MCP serverWrite, validate, render and analyze spintax templates. Backed by @spintax/core. No auth.not reviewedGrowingA