kalshi-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
kalshi-mcp
An MCP (Model Context Protocol) server that wraps the Kalshi prediction market API. This lets Claude (or any MCP client) browse markets, check prices, manage portfolios, and place trades on Kalshi.
Prerequisites
Python 3.10+
A Kalshi account with an API key and RSA private key (how to create one)
Related MCP server: Kalshi MCP Server
Installation
pip install -e .Or with uv:
uv pip install -e .Configuration
Set these environment variables:
Variable | Required | Description |
| Yes | Your Kalshi API key ID |
| Yes | Path to your RSA private key PEM file |
| No | API base URL (default: |
For the demo/sandbox environment, set KALSHI_API_BASE_URL to https://demo-api.kalshi.co/trade-api/v2.
Usage with Claude Code
Add to your Claude Code MCP config (~/.claude/claude_desktop_config.json or project .mcp.json):
{
"mcpServers": {
"kalshi": {
"command": "kalshi-mcp",
"env": {
"KALSHI_API_KEY": "your-api-key",
"KALSHI_PRIVATE_KEY_PATH": "/absolute/path/to/private-key.pem"
}
}
}
}Note: If
kalshi-mcpis not on your shell's PATH, use the full path (e.g./opt/miniconda3/bin/kalshi-mcp). You can find it withwhich kalshi-mcp.
Available Tools
Market Data
Tool | Description |
| Exchange trading status |
| Exchange schedule |
| List events with filters (status, series, pagination) |
| Single event with optional nested markets |
| List markets with filters |
| Single market details |
| Orderbook for a market |
| Recent trades (optional ticker filter) |
| OHLCV candlestick data |
| Series metadata |
| Event metadata (sources, settlement info) |
Portfolio (authenticated)
Tool | Description |
| Account balance and portfolio value |
| Current open positions |
| List orders with filters |
| Place a new order (limit or market) |
| Cancel an order by ID |
| Trade fill history |
| Settlement history |
Development
Run the MCP inspector for interactive testing:
KALSHI_API_KEY=your-key KALSHI_PRIVATE_KEY_PATH=/path/to/key.pem mcp dev src/kalshi_mcp/server.pyLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Trade, orderbook, and volatility data for prediction markets and crypto derivatives.
Keyless prediction-market data across 12 venues plus paper-trading of crypto spot, futures, and PM.
Read-only Polymarket search, market details, order books, price history, and market cards.
Historical tick, order book and settlement data for Polymarket and Predict.fun crypto up/down markets, plus smart-money lists and backtest quotes, over a read-only MCP server.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with the PolyMarket API to fetch prediction market data such as market information, prices, and historical data, with robust error handling and rate limit management.4144MIT
- AlicenseNot gradedqualityDmaintenanceEnables users to search, analyze, and trade on Kalshi prediction markets directly through MCP-compatible clients. It supports portfolio management, market data retrieval, and limit order execution with production-grade authentication and rate limiting.27 PyPI1MIT
- FlicenseNot gradedqualityBmaintenanceEnables interaction with Polymarket prediction markets through read-only access to market data, events, orderbooks, and user positions, plus authenticated trading capabilities for creating and managing orders.1-

Lucyd MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents and MCP clients to browse prediction markets, inspect order books, trades and positions, and to place, cancel and manage orders, close positions and redeem winnings from a locally signing wallet. It also supports read-only operation and a hosted mode for market data only.MIT