Unofficial safety-focused MCP server for Kalshi market data and explicitly authorized trading
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An unofficial, safety-focused Model Context Protocol (MCP) server for Kalshi event contracts and perpetual markets. This is a pre-release project that is not ready for trading. The server is designed for agent harnesses such as Hermes and exposes a deliberately small tool surface generated from Kalshi's published API contracts.
Canonical publisher: CopyleftDev. Planned
source and container releases use github.com/copyleftdev/kalshi-kernel and
ghcr.io/copyleftdev/kalshi-kernel respectively.
[!CAUTION] Pre-release software that can submit real orders. Published tags are conformance-tested scaffolds; the current
mainbranch adds market-data, paper-trading, and live event-contract adapters. Configured live mode can place, amend, and cancel real orders. Review the exact commit, configuration, tests, and limits before running it with credentials; do not infer readiness from the version string.
[!IMPORTANT] This community project is not an official Kalshi product and is not affiliated with, endorsed by, sponsored by, or supported by KalshiEX LLC or its affiliates. βKalshiβ is used only to identify interoperability with Kalshi's published APIs.
The independent Kernel mark follows a conservative interpretation of Kalshi's published color, contrast, clear-space, and misuse guidance. It does not use or modify Kalshi's logo. See the visual identity usage rules.
Trading APIs are broad and optimized for application developers. Agents need a narrower boundary with explicit intent, strict schemas, predictable errors, and strong separation between simulation and real-money execution. Kalshi Kernel provides that boundary while continuously testing its generated clients against the latest upstream contracts.
The design priorities are:
The table describes the current main branch, not the published v0.1.1 tag.
The additions are unreleased and the version metadata has not yet advanced.
| Area | Current behavior and limits |
|---|---|
| MCP stdio transport and generated schemas | Working |
| Public market data | Event contracts and perpetuals: search, market details, REST order-book snapshots, candles, and last quote. Public trade tape is event-contract only |
| Paper trading | In-memory balance, positions, fill journal, exact fixed-point fees, and immediate all-or-nothing fills at the current displayed touch |
| Live portfolio | Authenticated event-contract balance, positions, orders, and fills. Perpetual accounts and non-primary subaccounts are not supported |
| Live event-contract orders | Place, amend, and cancel are connected to the production API. Place/amend require process-local arming and kernel-side limits; cancel performs a resting-state check and timeout reconciliation |
| Live perpetual orders | Not implemented |
| Streaming order-book reconciliation | Not implemented; get_orderbook currently returns one public REST snapshot |
kernel_status | Callable, but some readiness and arming fields still describe the old scaffold and must not be treated as authoritative |
| Automatic upstream specification freshness gate | Working |
| Production remote HTTPS/OAuth service | Not implemented |
| Public registry listings | Prepared, not submitted |
Treat the current branch as development software, not as a published or audited
trading integration. Some design and publication documents still describe the
v0.1.1 scaffold; compare them with the implementation before relying on a
claim. See ARCHITECTURE.md,
THREAT_MODEL.md, and the release gates in
PUBLICATION.md.
| Tool | Class | Current behavior |
|---|---|---|
kernel_status | Read-only | Returns mode and a readiness envelope; newly added backend and arm state are not yet reflected accurately |
search_markets | Read-only | Searches event-contract or perpetual markets through public REST |
get_market | Read-only | Returns authoritative metadata for one event-contract or perpetual market |
get_orderbook | Read-only | Returns a public REST snapshot of yes/no bid levels for either product |
get_candles | Read-only | Returns 1-, 60-, or 1440-minute event-contract or perpetual OHLC buckets |
get_trades | Read-only | Returns one cursor-paginated page of the public event-contract trade tape |
get_last | Read-only | Returns a compact event-contract or perpetual quote and status snapshot |
arm_live_trading | Destructive/control | Arms or disarms live place/amend calls for this process after an exact second acknowledgement |
get_portfolio | Read-only | Returns the local paper ledger in paper mode or the authenticated event-contract portfolio in live mode |
place_order | Destructive/write | Simulates an immediate fill in paper mode; submits an armed, capped event-contract order in live mode |
amend_order | Destructive/write | Paper mode has no resting orders; live mode amends an armed, resting event-contract order |
cancel_order | Destructive/write | Paper mode has no resting orders; live mode state-checks and cancels a resting event-contract order |
Connected MCP clients also receive server-level instructions telling them to
call kernel_status first, distinguish paper from live mode, and never report
an action as successful unless its structured response contains ok: true.
Until its readiness reporting is updated, confirm live arm state from the
arm_live_trading response rather than from kernel_status.
Prerequisites:
Paper mode is the default when KALSHI_KERNEL_MODE is unset. It intentionally
discards live credential configuration.
Add a local stdio server to ~/.hermes/config.yaml:
Restart Hermes and call kernel_status before any other tool.
After building the binary:
Then run claude mcp get kalshi-kernel or open /mcp to confirm the
connection. This local setup is separate from Anthropic's public Connectors
Directory, which requires a deployed remote server.
Use the standard MCP configuration shape:
Paper mode uses an in-memory simulated ledger and never submits an order to
Kalshi. It starts with $100.00 by default; set
KALSHI_PAPER_CASH_DOLLARS before startup to choose another balance. The
ledger, positions, idempotency records, and fill journal reset when the process
exits.
place_order fetches a fresh public order-book snapshot and supports only
immediate, all-or-nothing marketable fills. The requested price must exactly
equal the current touch and the displayed size must cover the full quantity.
The simulator uses fixed-point arithmetic, applies the published fee formula,
records a hash of the book used, and treats client_order_id as an idempotency
key. Because paper orders never rest, amend_order and cancel_order return
typed failures.
Every paper response is labeled simulated: true. Simulated fills do not
predict or guarantee live fills, liquidity, latency, slippage, fees, or
profitability.
Live mode is deliberately difficult to enable:
Startup configuration selects immutable live mode and enables authenticated event-contract portfolio reads and cancellation. It does not authorize place/amend calls. Those calls require a second, process-local MCP action:
Pass that object to arm_live_trading; pass the same object with arm: false
to disarm. Arming is never persisted. place_order also requires a stable,
caller-provided client_order_id. Place/amend requests are rejected before
submission when they exceed the startup-only per-order, UTC-day notional, or
UTC-day order-count limits. These counters are process-local and reset when the
process restarts.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/kalshi-kernel)<a href="https://allmcps.com/mcp/kalshi-kernel"><img src="https://allmcps.com/api/badge/kalshi-kernel?style=directory" alt="Kalshi Kernel on AllMCPs" /></a>