Skip to main content

HPSILab Quant Finance MCP Server for Stock & Options Analytics

HPSILab is an open-source Python quantitative finance MCP server for research on US equities, ETFs, and supported options. It brings stock signals, implied volatility, options analytics, Monte Carlo simulation, AI prediction, backtesting, and risk analysis into ChatGPT, Claude, Cursor, VS Code, and other MCP clients. Connect once, ask in natural language, and receive structured results that an assistant can compare and explain.

Get a Free API Key · Pricing · Python SDK

Research and educational use only. HPSILab does not provide investment advice and does not execute trades. PyPI CI License

Quick start: Official Remote MCP

The hosted Streamable HTTP service is recommended and requires no local installation. The following is a Claude Code .mcp.json example; other clients use different configuration schemas, documented below.

{
  "mcpServers": {
    "hpsilab": {
      "type": "http",
      "url": "https://hpsilab.com/mcp",
      "headers": {
        "Authorization": "Bearer hpsi_your_key"
      }
    }
  }
}
  1. Register a free account, sign in, and generate an API key from Settings.
  2. Replace hpsi_your_key in your client's private MCP configuration. Never commit or paste a real key into chat.
  3. Connect the server and verify it with:
Use HPSILab to analyze AAPL. Separate observed metrics from interpretation,
identify conflicting signals, and finish with a concise risk summary.

All financial research tools require a valid API key. See client setup and authentication for details.

Quick start: Local stdio

For clients that require local stdio:

pip install -U hpsilab-quant-finance-mcp

With HPSILAB_API_KEY configured, direct Python usage is:

import hpsilab_quant_finance_mcp
from hpsilab_quant_finance_mcp import server

print(hpsilab_quant_finance_mcp.__version__)

result = server.get_ai_prediction("NVDA")
print(result)

For MCP, add the stdio server to the client's private configuration. This example uses the mcpServers schema supported by Claude and Cursor; VS Code and GitHub Copilot use a servers schema instead.

{
  "mcpServers": {
    "hpsilab": {
      "command": "hpsilab-quant-finance-mcp",
      "env": {
        "HPSILAB_API_KEY": "hpsi_your_key"
      }
    }
  }
}

Then verify it through the MCP client:

Use HPSILab to get the AI prediction for NVDA and summarize the model consensus.

The client discovers tools with MCP tools/list and invokes them with tools/call. See local setup and Python usage.

Why HPSILab

HPSILab gives assistants typed inputs, structured outputs, ticker validation, machine-readable errors, and dedicated tools instead of invented metrics. It supports US-listed equities, ETFs, and supported options data; coverage and limits depend on the hosted service and plan.

Tools

The public product surface contains 9 public financial research tools.

Tool What it returns Behavior
analyze_stock Aggregate directional and quantitative stock analysis Read-only
get_ai_prediction Next-session prediction, confidence, and model consensus Read-only
get_iv_radar IV level, rank, percentile, skew, and regime Read-only
get_option_pressure Max pain, gamma walls, expected move, and pressure zones Read-only
get_monte_carlo 30-day simulated distribution and probabilities Read-only
get_equity_curve Strategy backtests and risk-adjusted performance Read-only
get_pretrade_risk_scan Position, exposure, correlation, and risk checks Read-only
generate_stock_images Hosted stock and options chart artifacts Creates an artifact; not idempotent
generate_stock_research_report Structured Markdown research report and timestamp Creates an artifact; not idempotent

Research tools accept one exchange ticker such as NVDA, SPY, or BRK.B; company names are not accepted. Live results can change between calls. Artifact tools can consume quota and should not be retried automatically.

Full inputs, outputs, side effects, and tool-selection guidance are in docs/tools.md.

Copy-ready prompts

Claude

Use HPSILab to analyze NVDA. Summarize the directional signal, AI model
consensus, IV regime, options pressure, 30-day Monte Carlo range, and the
three most important risks. Distinguish tool data from interpretation.

Cursor

Use HPSILab's IV radar and option-pressure tools for SPY. Compare IV rank,
percentile, skew, expected move, max pain, gamma wall, and pressure zones.
Return a compact table and do not recommend a trade.

ChatGPT

Run the HPSILab pre-trade risk scan for TSLA. Explain every warning or failed
check, preserve unavailable fields as unavailable, and quote the returned
reason instead of guessing. Do not execute or recommend a trade.

Setup guidance covers ChatGPT, Claude, Cursor, VS Code, GitHub Copilot, Continue, and Kimi. See the client setup guide for each client's transport and configuration format.

Safety and license

HPSILab is for research and education only. Outputs may be incomplete, delayed, or wrong and are not investment, financial, or trading advice. The MCP server has no brokerage connectivity, order entry, or trade-execution capability.

Licensed under the MIT License. Contributions are welcome; read AGENTS.md and CONTRIBUTING.md before proposing public schema changes.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hpsilab_quant_finance_mcp-0.8.5.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hpsilab_quant_finance_mcp-0.8.5-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file hpsilab_quant_finance_mcp-0.8.5.tar.gz.

File metadata

File hashes

Hashes for hpsilab_quant_finance_mcp-0.8.5.tar.gz
Algorithm Hash digest
SHA256 7d981c4561c3dacfabd7f6e78fdf08ab17b87e851294e06bede79e07163cc660
MD5 7894a359a64aaefab1bb57ab58c2f6a1
BLAKE2b-256 517dfb140b66f1f2bda365807d4d5c202745ab76e375d3f2bcffb4c79cfcfbdd

See more details on using hashes here.

File details

Details for the file hpsilab_quant_finance_mcp-0.8.5-py3-none-any.whl.

File metadata

File hashes

Hashes for hpsilab_quant_finance_mcp-0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0283f92da698996b14bf0fdc69dfd7f1958458e2e4a5ee79f1cb34a1c8741c9c
MD5 31ea6bcc366480f2bb9860b25308ebb6
BLAKE2b-256 69a416bf849f5b75ee942f1ec79b21b4152cd0a2cd15a2f7ee2a16723bac2406

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page