Koskamo

Kalshi MCP Server

A self-hosted Model Context Protocol server for Kalshi prediction markets that enables agents to interact with trading data and execute trades. It features native RSA-PSS authentication, token-bucket rate limiting, and safety controls including a two-step prepare/confirm order flow. The server provides 26 tools and 4 resources, supporting both read-only demo modes and production trading with explicit opt-in flags.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

Kalshi MCP Server logo, by cejor6Community listingLocal stdioSource reviewed; not executedPublished by cejor6
Vendor documentation

Checks and signals

Each line is separate evidence, not a trust score.

  • Popularity 3 GitHub stars

What you can do with it

  • Querying tradeable markets and finding liquid markets
  • Placing orders on prediction market contracts
  • Monitoring live market data via WebSocket
  • Retrieving orderbook data for specific tickers

Source and maintenance

Community listingRegistry 0.1.8MIT
Last repository push
Latest release
v0.1.12
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

kalshi-mcp-server 0.1.8

pypi
kalshi-mcp-server package definition
{
  "version": "0.1.8",
  "transport": "stdio",
  "identifier": "kalshi-mcp-server",
  "registryType": "pypi",
  "environmentVariables": [
    {
      "name": "KALSHI_API_KEY_ID",
      "format": "string",
      "isRequired": true,
      "description": "Kalshi API key ID from https://kalshi.com/account/profile"
    },
    {
      "name": "KALSHI_PRIVATE_KEY_PATH",
      "format": "string",
      "description": "Filesystem path to the RSA private key PEM. Set this or KALSHI_PRIVATE_KEY_PEM."
    },
    {
      "name": "KALSHI_PRIVATE_KEY_PEM",
      "format": "string",
      "description": "Inline PEM contents, for hosted deploys without filesystem access."
    },
    {
      "name": "KALSHI_ENV",
      "format": "string",
      "description": "demo or prod. Defaults to demo for safety."
    },
    {
      "name": "KALSHI_ALLOW_PROD",
      "format": "string",
      "description": "Must be 1 for the server to start with KALSHI_ENV=prod. Defaults to 0."
    },
    {
      "name": "KALSHI_TRADING_ENABLED",
      "format": "string",
      "description": "Must be 1 for order-placement tools to operate. Read-only by default (0)."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · repository · passed · metadata changed · updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "kalshi-mcp-server": {
      "command": "uvx",
      "args": [
        "kalshi-mcp-server==0.1.8"
      ],
      "env": {
        "KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>",
        "KALSHI_PRIVATE_KEY_PATH": "<YOUR_KALSHI_PRIVATE_KEY_PATH>",
        "KALSHI_PRIVATE_KEY_PEM": "<YOUR_KALSHI_PRIVATE_KEY_PEM>",
        "KALSHI_ENV": "<YOUR_KALSHI_ENV>",
        "KALSHI_ALLOW_PROD": "<YOUR_KALSHI_ALLOW_PROD>",
        "KALSHI_TRADING_ENABLED": "<YOUR_KALSHI_TRADING_ENABLED>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "kalshi-mcp-server": {
      "command": "uvx",
      "args": [
        "kalshi-mcp-server==0.1.8"
      ],
      "env": {
        "KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>",
        "KALSHI_PRIVATE_KEY_PATH": "<YOUR_KALSHI_PRIVATE_KEY_PATH>",
        "KALSHI_PRIVATE_KEY_PEM": "<YOUR_KALSHI_PRIVATE_KEY_PEM>",
        "KALSHI_ENV": "<YOUR_KALSHI_ENV>",
        "KALSHI_ALLOW_PROD": "<YOUR_KALSHI_ALLOW_PROD>",
        "KALSHI_TRADING_ENABLED": "<YOUR_KALSHI_TRADING_ENABLED>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "kalshi-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "kalshi-mcp-server==0.1.8"
      ],
      "env": {
        "KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>",
        "KALSHI_PRIVATE_KEY_PATH": "<YOUR_KALSHI_PRIVATE_KEY_PATH>",
        "KALSHI_PRIVATE_KEY_PEM": "<YOUR_KALSHI_PRIVATE_KEY_PEM>",
        "KALSHI_ENV": "<YOUR_KALSHI_ENV>",
        "KALSHI_ALLOW_PROD": "<YOUR_KALSHI_ALLOW_PROD>",
        "KALSHI_TRADING_ENABLED": "<YOUR_KALSHI_TRADING_ENABLED>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "kalshi-mcp-server": {
      "command": "uvx",
      "args": [
        "kalshi-mcp-server==0.1.8"
      ],
      "env": {
        "KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>",
        "KALSHI_PRIVATE_KEY_PATH": "<YOUR_KALSHI_PRIVATE_KEY_PATH>",
        "KALSHI_PRIVATE_KEY_PEM": "<YOUR_KALSHI_PRIVATE_KEY_PEM>",
        "KALSHI_ENV": "<YOUR_KALSHI_ENV>",
        "KALSHI_ALLOW_PROD": "<YOUR_KALSHI_ALLOW_PROD>",
        "KALSHI_TRADING_ENABLED": "<YOUR_KALSHI_TRADING_ENABLED>"
      }
    }
  }
}

Let your agent find its tools

Find servers like Kalshi MCP Server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.