SuperAPIAI Directory

hpsilab-quant-finance-mcp

github.com · AI finance

HPSILab Quant Finance MCP Server is a quantitative finance research tool for AI agents that provides stock and options risk analysis. Users can connect via a remote MCP endpoint (https://hpsilab.com/mcp)使用 OAuth login or API Key, enabling AI agents to call features such as pre-trade risk scans, options structure analysis, Monte Carlo simulation, stock overview, AI forecasts, and backtesting. Results are returned as structured JSON with machine-readable error codes. The repository is an open-source Python server (MIT license), and the hosted endpoint provides the same toolset. For research and educational purposes only; it does not provide investment advice or execute trades.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

HPSILab Quant Finance MCP Server is a quantitative finance research server for AI agents, designed to provide agents with typed inputs, structured outputs, ticker validation, and machine-readable errors, preventing agents from fabricating metrics on their own.

Purpose: This server is mainly used for risk analysis of stocks and options, supporting U.S.-listed stocks, ETFs, and supported options data. It provides nine financial research tools plus the register_account tool; tool names and parameter meanings are part of the public compatibility contract.

Key capabilities:

  • Pre-trade risk scan: computes volatility, beta, drawdown, and VaR for SPY, with fixed pass/warn/fail thresholds, and also provides position sizing, sector exposure, and correlation checks.
  • Options structure analysis: provides implied volatility (IV) level, rank, and skew, gamma wall, call/put walls, and max pain.
  • Monte Carlo simulation: generates a 10-trading-day price range and the probability of closing higher.
  • analyze_stock: get a stock overview in a single call.
  • AI forecasts and backtesting.

How to use: Users can connect in two ways:

  1. Hosted Streamable HTTP (recommended, no local installation required): clients that support MCP OAuth (such as Claude Code, Claude.ai, ChatGPT connectors, etc.) only need to add the URL https://hpsilab.com/mcp,首次使用时打开 HPSILab login page. For clients or scripts that do not support OAuth, you can register a free account and generate an API Key, add the server in the client's private configuration (replace hpsi_your_key), and never commit real keys or paste them into chats.
  2. Local stdio: suitable for clients that require a local process, configured using the mcpServers pattern (such as Claude and Cursor), or using the servers pattern (such as VS Code and GitHub Copilot). Clients discover tools via MCP tools/list and call them via tools/call.

All financial research tools require a logged-in account (OAuth or a valid API Key). For error handling, every failure is a structured object with a stable error_code. 401 and 402 responses are never retried; 429 is retried only when it carries a valid Retry-After; read-only calls use a limited retry budget for timeouts and recoverable 500/502/503/504 responses; calls that produce artifacts are not automatically retried. The package also implements a process-local guard of 10 requests per rolling minute per API Key (burst protection, not a quota).

Use cases: Suitable for developers building AI agents, such as risk-check agent examples using the OpenAI Agents SDK, Claude Agent SDK, and LangGraph. Also suitable for scenarios that need to provide quantitative finance research capabilities to AI assistants.

Limitations: For research and educational purposes only; outputs may be incomplete, delayed, or incorrect and do not constitute investment, financial, or trading advice. The server has no broker connectivity, order entry, or trade execution capabilities. Coverage and limitations depend on the hosted service and plan.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools