
9crusher/mcp-server-kalshi
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP 서버는 Kalshi 예측 시장과 상호 작용합니다
개요
Claude Code 및 기타 에이전트를 제공하는 MCP 서버는 Kalshi에 일류 인터페이스를 제공합니다. 그것은 최종 거래에 대 한 내장: 검색 시장, 연구 그들, 정확한 합의 규칙을 읽으십시오 (계약-terms PDF를 당기는 포함), 그리고 무역을 실행 — MCP 도구를 통해 모든. - — list markets, get market, list events, get event, list series, get series. (Kalshi는 무료 텍스트 검색이 없습니다. list markets 필터는 검색입니다.) - — get market orderbook, get market candlesticks, get market trades. - get market rules는 시장의 규칙 primary/rules secondary, 조기 폐쇄 조건, 정착 소스 및 시리즈 금지를 통합합니다. fetch rules pdf 다운로드 및 실제 법적 계약 PDF의 텍스트를 추출하여 에이전트가 읽을 수 있습니다. - get exchange status, get exchange schedule (시장 오픈 및 그 시간입니다). - get balance, get positions, get fills, get settlements. - — create order, cancel order, amend order, reduce order, 플러스 list orders / get order.
개요(AI 번역)
Claude Code 및 기타 에이전트를 제공하는 MCP 서버는 일류 인터페이스를 견딜 수 있습니다. 칼시. 그것은 최종 거래에 대 한 내장: 검색 시장, 연구 그들, 읽기 *exact * 결제 규칙 (계약-terms PDF를 당기는 포함), 및 거래 실행 - MCP 도구를 통해.
하이라이트
-Discovery - list_markets, get_market, list_events, get_event], list_series],
get_series. (Kalshi는 무료 텍스트 검색이 없습니다. list_markets 필터는 검색입니다.)
-Research — get_market_orderbook], get_market_candlesticks], get_market_trades.
- Deep 규칙 —
get_market_rules]는 시장의rules_primary/rules_secondary를 통합, 조기 폐쇄 조건, 결제 소스 및 시리즈 금지;fetch_rules_pdf실제 법적 계약 PDF의 텍스트를 다운로드하고 추출하여 에이전트가 읽을 수 있습니다. - ** 교환 ** -
get_exchange_status,get_exchange_schedule] (시장 오픈, 그 시간). - Portfolio - [T16]],
get_positions,get_fills],get_settlements]. - Trading -
create_order,cancel_order],amend_order,decrease_order, 플러스list_orders/get_order.
안전 기본
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP Server Kalshi
An MCP server that gives Claude Code and other agent harnesses a first-class interface to Kalshi. It is built for end-to-end trading: browse markets, research them, read the exact settlement rules (including pulling the contract-terms PDFs), and execute trades — all through MCP tools.
Highlights
- Discovery —
list_markets,get_market,list_events,get_event,list_series,get_series. (Kalshi has no free-text search;list_marketsfilters are the search.) - Research —
get_market_orderbook,get_market_candlesticks,get_market_trades. - Deep rules —
get_market_rulesconsolidates a market’srules_primary/rules_secondary, early-close conditions, settlement sources, and series prohibitions;fetch_rules_pdfdownloads and extracts the text of the actual legal contract PDF so the agent can read it. - Exchange —
get_exchange_status,get_exchange_schedule(is the market open, and its hours). - Portfolio —
get_balance,get_positions,get_fills,get_settlements. - Trading —
create_order,cancel_order,amend_order,decrease_order, pluslist_orders/get_order.
Safety by default
- The server targets Kalshi’s demo (sandbox) environment unless you explicitly set
KALSHI_ENV=prod. - Order-placing tools (
create_order,amend_order) requireconfirm=true. Without it they return a preview — a human-readable summary and the exact payload — and place nothing. - Credentials are optional: all market/rules tools work unauthenticated. Only portfolio and order tools need an API key + RSA private key.
Intuitive order model
Kalshi’s V2 order API quotes everything from the YES leg (bid/ask in fixed-point dollars).
This server exposes the natural model instead — action (buy/sell) + side (yes/no) + a whole
cents limit price — and translates it (including the buy-NO ⇄ sell-YES price inversion).
Configuration
| Variable | Default | Purpose |
|---|---|---|
KALSHI_ENV |
demo |
demo (sandbox) or prod (real money). Derives the base URL. |
KALSHI_API_KEY |
(none) | Kalshi API key ID. Required only for authenticated tools. |
KALSHI_PRIVATE_KEY_PATH |
(none) | Path to your RSA private key .pem. Required for authenticated tools. |
BASE_URL |
(derived) | Optional explicit REST base override (must include /trade-api/v2). |
See .env-example. Get API credentials at
docs.kalshi.com/getting_started/api_keys
and a demo account via the
demo environment guide.
Claude Desktop (uvx)
"mcpServers": {
"kalshi": {
"command": "uvx",
"args": ["mcp-server-kalshi"],
"env": {
"KALSHI_ENV": "demo",
"KALSHI_API_KEY": "",
설치
uvx mcp-server-kalshi설정
"mcpServers": {
"kalshi": {
"command": "uvx",
"args": ["mcp-server-kalshi"],
"env": {
"KALSHI_ENV": "demo",
"KALSHI_API_KEY": "<YOUR KALSHI API KEY>",
"KALSHI_PRIVATE_KEY_PATH": "PATH TO YOUR RSA KEY FILE"
}
}
}