Kalshi

KalshiMCP

kalshi-mcp-server-production.up.railway.app

Trade on Kalshi prediction markets via Solana Solana blockchain and DFlow API. Supports generated wallets or importing existing Phantom/Solflare wallets.

Requirements

  • Access code required to generate API key
  • USDC on Solana Solana for trading (wallet setup/import handled by the MCP)

CursorOne-Click Install for Cursor

Install in Cursor

Click the button, then replace YOUR_API_KEY with your actual API key

Or generate custom install link:

Enter your API key to generate a ready-to-use install link

Add to Cursor
Preview mcp.json config
{
  "mcpServers": {
    "quantish_kalshi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://kalshi-mcp-server-production.up.railway.app/mcp",
        "--header",
        "x-api-key: YOUR_API_KEY"
      ]
    }
  }
}

⚠️ Enter your API key above to generate a ready-to-use install link, or add it manually after installing

Manual Setup

Add this to your ~/.cursor/mcp.json file:

{
  "mcpServers": {
    "Quantish Kalshi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://kalshi-mcp-server-production.up.railway.app/mcp",
        "--header",
        "x-api-key: YOUR_API_KEY"
      ]
    }
  }
}

Replace YOUR_API_KEY with your actual API key.

Bring Your Own Wallet (BYOW)

You can generate a new wallet or import your existing Phantom/Solflare wallet:

  1. Use kalshi_setup_wallet to generate a new wallet, OR
  2. Use kalshi_import_wallet to import from Phantom
  3. Your private key is encrypted locally - we never see the raw key

Available Tools (18 total)

Authentication & Setup

kalshi_request_api_key

Get API credentials (requires access code)

kalshi_setup_wallet

Generate new Solana wallet

kalshi_import_wallet

Import existing wallet (Phantom, Solflare)

kalshi_get_wallet_info

Get wallet public key and type

kalshi_get_wallet_import_instructions

Instructions for secure wallet export

Wallet & Balances

kalshi_get_balances

Get SOL and USDC balances

kalshi_get_token_holdings

Get all SPL token holdings

Market Discovery

kalshi_search_markets

Search markets by keyword (paginated)

kalshi_get_market

Get details for a specific market

kalshi_get_events

List events with filters (paginated)

kalshi_get_live_data

Get real-time pricing

Trading

kalshi_get_quote

Get swap quote for outcome tokens

kalshi_buy_yes

Buy YES outcome tokens

kalshi_buy_no

Buy NO outcome tokens

kalshi_sell_position

Sell outcome tokens back to USDC

kalshi_redeem_winnings

Redeem winning tokens after settlement

Positions & Orders

kalshi_get_positions

Get current positions

kalshi_get_orders

Get order history

Pagination

Search results are paginated (default 10 results). Use offset for more:

"Search for bitcoin markets" → First 10 results
"Get more bitcoin markets, offset 10" → Next 10 results