Install
$ agentstack add mcp-rangertaha-kalshi-mcp ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
kalshi-mcp
[](https://github.com/rangertaha/kalshi-mcp/actions/workflows/ci.yml) [](#-under-construction)
🚧 UNDER CONSTRUCTION 🚧
This server is an early scaffold — a work in progress.
It runs over stdio with one read-only toolset wired end-to-end. More toolsets are on the way (see the TODO list below). APIs, configuration, and tool names may still change.
A Model Context Protocol (MCP) server, written in Go, exposing the Kalshi prediction-markets API as tools an LLM client (Claude Desktop/Code, Cursor, and others) can call.
Features
- Typed tools with schemas: every tool has an auto-generated JSON Schema for
its input and output, inferred from Go structs.
- Read-only switch:
KALSHI_READONLY=truehides every mutating tool. - Toolset filtering: enable only the areas you need with
KALSHI_TOOLSETS. - Public by default: market-data tools need no credentials. Supplying an API
key signs requests with Kalshi's RSA-PSS scheme for authenticated endpoints.
Install
go install github.com/rangertaha/kalshi-mcp/cmd/kalshi@latest
Or build from source:
git clone https://github.com/rangertaha/kalshi-mcp
cd kalshi-mcp
make build # produces ./bin/kalshi
CLI
kalshi mcp # run the MCP server over stdio (default when no subcommand)
kalshi test # verify connectivity
Configuration
| Variable | Required | Description | | -------------------- | :------: | ------------------------------------------------------------- | | KALSHI_API_KEY_ID | no | Access key ID (enables authenticated tools). | | KALSHI_PRIVATE_KEY | no | PEM-encoded RSA private key for request signing. | | KALSHI_BASE_URL | no | API base URL (default https://api.elections.kalshi.com/trade-api/v2). | | KALSHI_TOOLSETS | no | Comma-separated toolset names to enable, or all. | | KALSHI_READONLY | no | true to expose only read-only tools. |
Toolsets
| Toolset | Covers | | --------- | -------------------------------------------------------------- | | markets | list markets (markets_list) and get one (markets_get) — public market data |
TODO toolsets
events— list/get events and their nested markets.portfolio— balance and positions (needs auth).orders— list/create/cancel orders (write; needs auth).
License
MIT — see [LICENSE](LICENSE).
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: rangertaha
- Source: rangertaha/kalshi-mcp
- License: MIT
- Homepage: https://rangertaha.github.io/kalshi-mcp/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.