
Kalshi MCP Server
io.github.joinQuantish由 GitHub 账号 joinQuantish 发布v0.3.0更新于 Oct 24, 2026
Self-hosted MCP server for Kalshi prediction market trading via DFlow on Solana
发布方自己的服务:Kalshi MCP
概览
自托管的 MCP 服务器,让助手通过 Solana 上的 DFlow 交易 Kalshi 预测市场,并提供钱包、兑换和转账工具。
- 可以做什么
- 创建和管理账户与 Solana 钱包,查询余额、充值地址,导入或导出私钥,并管理服务器自身的 API 密钥。搜索和浏览 Kalshi 市场、事件及实时价格数据。获取报价,买入 YES 或 NO 结果代币,卖出持仓,并查看持仓与订单历史。获取 Jupiter 兑换报价,在 SOL 与 USDC 之间兑换。向其他钱包发送 SOL、USDC 或其他 SPL 代币。在链上初始化市场、查询结算状态,并逐个或一次性领取获胜持仓。
- 适用场景
- 适合希望让 AI 助手在自己自托管实例上研究和交易 Kalshi 预测市场,并且能够运行 Node.js 与 PostgreSQL、在 Solana 钱包中持有资金的人。不适合想要托管且持续维护的服务的人:该项目已不再维护。
- 运行要求
- 本地 Node.js 运行环境并从源码安装该包,通过 DATABASE_URL 提供 PostgreSQL 数据库,以及用于钱包加密的 64 位十六进制 ENCRYPTION_KEY。可选 DFLOW_API_KEY、JUPITER_API_KEY(兑换功能需要)、SOLANA_RPC_URL、ADMIN_API_KEY 和 PORT。需用提供的 Prisma 命令创建数据库表。需要访问 Solana 和交易服务的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Kalshi MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@quantish/kalshi-server
⚠️ Notice: Quantish is winding down. The Quantish platform (quantish.live) is shutting down. This MCP server is self-hosted and will continue to work independently, but the Quantish team will no longer be maintaining or updating this project. If you're building in the prediction market space and need real-time data infrastructure, check out polynode.dev.
Self-hosted Kalshi MCP server for trading on Kalshi markets via DFlow on Solana.
Overview
This package provides an MCP (Model Context Protocol) server that enables AI agents to trade on Kalshi prediction markets through the DFlow protocol on Solana.
Features
- Full Kalshi Trading - Buy/sell on any Kalshi market
- Solana Wallet Management - Generate and manage Solana wallets
- DFlow Integration - Trade via DFlow's Solana infrastructure
- Jupiter Swaps - Swap SOL/USDC via Jupiter Aggregator
- MCP Compatible - Works with Claude, Quantish Agent, and any MCP client
- Self-Hostable - Run on Railway, Fly.io, or any Node.js host
Quick Start
Environment Variables
Obtaining API Keys
DFlow API Key:
DFlow access may require approval. Contact the DFlow team at dflow.net for API access.
Jupiter API Key:
Get a free API key from portal.jup.ag (Basic tier, 1 RPS). Required for swap functionality.
Using Quantish's public servers? Quantish's public servers are no longer available as the platform is winding down. You must self-host this MCP server to use it. Follow the setup instructions above to run your own instance.
Generate Encryption Key
Database Setup
Any PostgreSQL database works. Options:
Set your DATABASE_URL then run:
Available Tools
Account Management
kalshi_signup- Create account with Solana walletkalshi_request_api_key- Request API key with access codekalshi_get_wallet_info- Get wallet address and typekalshi_get_wallet_status- Full wallet status including balanceskalshi_get_balances- Get SOL and USDC balanceskalshi_get_deposit_address- Get address for depositskalshi_export_private_key- Export wallet private keykalshi_import_private_key- Import existing Solana wallet
Market Discovery
kalshi_search_markets- Search Kalshi markets by keywordkalshi_get_market- Get market details by tickerkalshi_get_event- Get event with all nested marketskalshi_get_events- Browse events with filterskalshi_get_live_data- Get live pricing data
Trading
kalshi_get_quote- Get quote for prediction market tradekalshi_buy_yes- Buy YES outcome tokenskalshi_buy_no- Buy NO outcome tokenskalshi_sell_position- Sell outcome tokens back to USDCkalshi_get_positions- View current positionskalshi_get_orders- View order history
Swaps (SOL/USDC)
kalshi_get_swap_quote- Get Jupiter swap quotekalshi_execute_swap- Execute token swapkalshi_swap_sol_to_usdc- Swap SOL to USDCkalshi_swap_usdc_to_sol- Swap USDC to SOL
Transfers
kalshi_send_sol- Send SOL to another walletkalshi_send_usdc- Send USDC to another walletkalshi_send_token- Send any SPL token
Market Operations
kalshi_check_market_initialization- Check if market is tokenized on-chainkalshi_initialize_market- Initialize market on-chain (pays SOL fee)kalshi_check_redemption_status- Check if market is settledkalshi_get_market_by_mint- Look up market by token mint
Redemption
kalshi_get_redeemable_positions- Find positions ready to claimkalshi_redeem_winnings- Redeem specific winning positionkalshi_redeem_all_positions- Redeem all winning positions at once
API Key Management
kalshi_list_api_keys- List your API keyskalshi_create_additional_api_key- Create new API keykalshi_revoke_api_key- Revoke an API key
API Format
The server exposes a JSON-RPC 2.0 endpoint at /mcp:
Connecting to Quantish Agent
Configure the CLI to use your server:
Or add to ~/.quantish/config.json:
Development
Resources
- NPM: @quantish/kalshi-server
- GitHub: joinQuantish/kalshi-mcp
- Quantish Agent: @quantish/agent
- DFlow Docs: pond.dflow.net
- Jupiter Portal: portal.jup.ag
License
This project is licensed under the PolyForm Noncommercial License 1.0.0.
Free for personal use, research, and non-commercial purposes. Commercial use requires explicit permission from Quantish Inc. Contact [email protected] for commercial licensing.
Built by Quantish Inc.
来源:README.md,提交 661eaa6
工具
0版本历史
1- v0.3.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。
