Hunch
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@HunchWhat are the odds the Fed cuts rates in September?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Hunch
Talk to Claude (or Codex) about Kalshi prediction markets — and place trades by conversation.
A hunch, not a certainty. Hunch surfaces the market price, the news, and the base rate, then executes the bet you decide on — with hard guardrails and a paper-money default. It does not try to pick winners for you (see Why Hunch won't autopick).
✅ Status: v1 feature-complete (pending first npm release). The full surface — 9 tools, 2 resources, 3 prompts, RSA-PSS auth, the preview→token→place safety harness, caps, and the audit log — is built and green. It was built incrementally by a stateless autonomous agent loop: each iteration oriented from the repo, completed one checkpoint, and handed off via git (loop prompt
LOOP.md, plandocs/PLAN.md, progressfix_plan.md). CI on every push; CD publishes to npm on a version tag (seedocs/RELEASING.md).
Hunch is an MCP server. It exposes Kalshi as a small, safe set of tools your AI coding agent can call — so you can have a normal conversation:
"What are the odds the Fed cuts in September?" → "Show me the order book." → "Put $20 on YES at 16¢ and rest it."
Why prediction markets
On Kalshi the price is the probability: a contract at 16¢ means the market thinks the event is ~16% likely, and pays $1 if it happens. That makes conversational, opinion-driven trading a natural fit for an LLM — it reasons over news and base rates, not chart squiggles. And "buy at 16¢ and walk away" is just a resting limit order the exchange holds for you — no always-on bot required.
Related MCP server: algoglide
Safety first (this is the point)
Demo by default. Out of the box Hunch points at Kalshi's demo environment — fake money, real market mechanics. Anyone can clone it and play with zero money and zero risk.
Going live takes two conscious acts:
KALSHI_ENV=liveand a live API key. Never inferable from a single prompt.Preview → place. Orders are structurally two-step:
preview_order(read-only, prices the trade + issues a token) thenplace_order(executes only with that token). The model cannot fat-finger a live trade.Hard caps in code (
MAX_ORDER_USD,MAX_DAILY_USD,MAX_OPEN_EXPOSURE_USD) — orders over the cap are rejected, not clamped, regardless of what the model says.Append-only audit log of every proposed / placed / cancelled order.
Kill switch:
cancel_all_orders.
Quick start
# (once published)
npx -y hunch-mcp # runs the MCP server over stdioClaude Code — .mcp.json (or claude mcp add):
{
"mcpServers": {
"hunch": {
"command": "npx",
"args": ["-y", "hunch-mcp"],
"env": { "KALSHI_ENV": "demo" }
}
}
}Codex — ~/.codex/config.toml:
[mcp_servers.hunch]
command = "npx"
args = ["-y", "hunch-mcp"]
env = { KALSHI_ENV = "demo" }Credentials go in the environment or macOS Keychain — never in these files. See .env.example and AGENTS.md.
To actually trade (even demo), you need a Kalshi demo account + API key — a one-time, ~2-minute setup walked through in docs/DEMO.md, which also doubles as the end-to-end demo script.
Tools
Tool | Kind | What it does |
| read | Find markets by status / series / event / text |
| read | Rich one-shot context for a market (rules, prices, order-book depth, recent trend) |
| read | Cash + portfolio value |
| read | Open positions with exposure |
| read | Your resting / recent orders |
| read | Dry-run: max loss, exposure-after, cap check → confirmation token |
| write | Execute (token-gated). |
| write | Cancel one resting order |
| write | Kill switch |
Plus MCP resources (kalshi://market/{ticker}, kalshi://portfolio) and prompts (/analyze-market, /scan-opportunities, /review-positions).
Why Hunch won't autopick
LLMs are systematically miscalibrated on probabilities and most overconfident exactly when wrong. A binary YES/NO market turns that into a directional bet against sharper counterparties in a negative-sum game (after fees and spread). "Let the AI find good bets" quietly loses money. Hunch's edge is the interface and the discipline — fast research, clean execution, caps, an audit trail — with judgment kept by the human. We say so out loud, in the server's own instructions.
Roadmap
v1 (this build): the Kalshi MCP above, demo-first, full safety harness. See
docs/PLAN.md.v2 (designed, not built): an optional always-on watcher daemon for conditional orders (stop-loss, "sell if it hits 80¢", scheduled DCA) — things Kalshi's API can't do natively and an MCP can't host. See
docs/adr/0002-two-tier-architecture.md.Later: multi-venue reads (Polymarket, Manifold), a web demo.
License
MIT © Faustas Rinkevicius. Not affiliated with Kalshi Inc. Nothing here is financial advice; you are solely responsible for trades placed with your own keys.
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP for Kalshi prediction markets: search, odds, order books, settlement rules, and trading.
- FensoryOAuthcom.fensory
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
MCP server for OpenMM — exposes market data, account, trading, and strategy tools to AI agents
MCP server exposing the Backtest360 engine API as tools for AI agents.
Related MCP Servers
- AlicenseCqualityDmaintenanceMCP server that provides a unified prediction market API for multiple venues like Polymarket and Kalshi, allowing AI agents to discover markets, fetch order books, and execute trades through a single interface.3223 npm8MIT
- -licenseNot gradedqualityCmaintenanceMCP server for AI coding editors — deploy and manage prediction-market trading agents directly from your editor.-
- FlicenseNot gradedqualityDmaintenanceMCP server that exposes Polymarket prediction markets via CLI wrapper. Enables AI agents to discover markets, check prices, and place trades programmatically.-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for the Kalshi prediction market trading platform. It provides automated access to market data, order management, and portfolio operations through Kalshi's REST API.MIT