HPSILab Quant Finance

v0.11.1
io.github.haiyunsky/hpsilab-quant-finance-mcp Checked 3 hours ago Published 1 month ago

Stock & options risk analytics for AI agents: pre-trade risk scan, IV, gamma walls, Monte Carlo.

Values you need

VariableWhat it is
HPSILAB_API_KEYrequired secret HPSILab API key generated and managed in HPSILab Settings.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add hpsilab-quant-finance-mcp -e 'HPSILAB_API_KEY=<HPSILAB_API_KEY>' -- uvx hpsilab-quant-finance-mcp==0.11.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "hpsilab-quant-finance-mcp": {
      "args": [
        "hpsilab-quant-finance-mcp==0.11.1"
      ],
      "command": "uvx",
      "env": {
        "HPSILAB_API_KEY": "<HPSILAB_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "hpsilab-quant-finance-mcp": {
      "args": [
        "hpsilab-quant-finance-mcp==0.11.1"
      ],
      "command": "uvx",
      "env": {
        "HPSILAB_API_KEY": "<HPSILAB_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "HPSILAB_API_KEY",
      "id": "hpsilab-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "hpsilab-quant-finance-mcp": {
      "args": [
        "hpsilab-quant-finance-mcp==0.11.1"
      ],
      "command": "uvx",
      "env": {
        "HPSILAB_API_KEY": "${input:hpsilab-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.hpsilab-quant-finance-mcp]
command = "uvx"
args = ["hpsilab-quant-finance-mcp==0.11.1"]
env = { "HPSILAB_API_KEY" = "<HPSILAB_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http hpsilab-quant-finance-mcp https://hpsilab.com/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "hpsilab-quant-finance-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://hpsilab.com/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "hpsilab-quant-finance-mcp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://hpsilab.com/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "hpsilab-quant-finance-mcp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://hpsilab.com/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.hpsilab-quant-finance-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://hpsilab.com/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: HPSILAB_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: analyze_stock, get_iv_radar, get_option_pressure, get_monte_carlo, get_ai_prediction, get_equity_curve, generate_stock_research_report, generate_stock_images, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json