Skip to content
VS Code

mcp server kalshi for VS Code

io.github.9crusher/mcp-server-kalshi

MCP server for end-to-end trading on Kalshi prediction markets: discover, research, trade.

client:VS Code transport:stdio runtime:pypi

Install mcp server kalshi in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "kalshi-env",
      "description": "KALSHI_ENV",
      "password": true
    },
    {
      "type": "promptString",
      "id": "kalshi-api-key",
      "description": "KALSHI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "kalshi-private-key-path",
      "description": "KALSHI_PRIVATE_KEY_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "base-url",
      "description": "BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "mcp-server-kalshi": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-kalshi"
      ],
      "env": {
        "KALSHI_ENV": "${input:kalshi-env}",
        "KALSHI_API_KEY": "${input:kalshi-api-key}",
        "KALSHI_PRIVATE_KEY_PATH": "${input:kalshi-private-key-path}",
        "BASE_URL": "${input:base-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp server kalshi in other clients