HPSILab MCP
连接你的 Agent
将你的 AI Agent 接入 HPSILab 的量化金融智能层。
MCP · OAuth 2.1 · 9 个量化工具
必须拥有 HPSILab 账户
创建一个免费 HPSILab 账户才能连接 Agent。每个已连接的 Agent 都归属于一个账户,每次调用都使用 API Key 进行身份验证。
- 赠送 100 个试用 Credits。
拥有账户后,把 MCP 客户端指向这个 Endpoint:
https://hpsilab.com/mcpAgent 会返回什么
一个问题,九个量化工具同时作答——不用开仪表盘,不用来回切标签页。
- 次日上涨概率
- 63%
- 10 日蒙特卡洛区间
- $161 – $184
- IV 状态
- 偏高
- 期权压力
- 上方存在 Call 墙
面向 Agent 的结构化回答
NVDA 呈现正向的方向性信号,但 Agent 应当围绕偏高的波动率和上方邻近的 Call 墙来控制仓位。在把它变成提醒或自选之前,先核对财报日历与下行区间。
连接流程
- 1
创建账户
免费注册;已有 HPSILab 账户则直接登录。没有账户就没有已连接的 Agent。
- 2
连接 Agent
把 https://hpsilab.com/mcp 添加到你的 MCP 客户端。动态客户端注册(DCR)让客户端自行完成注册,你不需要粘贴任何东西。
- 3
授权
客户端会通过 OAuth 2.1 + PKCE 打开 HPSILab 登录页。确认授权后,HPSILab 会为你的账户签发一个 API Key 并交给客户端。
- 4
连接完成
Agent 使用该 Key 调用下方工具。调用按你账户的 Credits 余额计费,初始为 100 个试用 Credits。
账户与 API Key 始终是必需的
区别只在于这个 Key 由谁创建,而不是需不需要。
MCP / AI Agent
账户 + OAuth 2.1 + PKCE + DCR → 自动签发 Key
MCP 客户端会自行完成注册与授权流程。HPSILab 创建 API Key 并交给客户端,你无需手动创建或粘贴。
REST API / SDK
账户 + 你自己创建的 API Key
REST API、Python SDK 与 TypeScript SDK 使用你在设置中自行创建的 Key,以 'Authorization: Bearer <key>' 发送。
创建 API Key把 HPSILab 添加到你的客户端
任何支持 streamable HTTP 的 MCP 客户端都可以连接。首次使用时它会打开 HPSILab 登录页——用你刚创建的账户登录即可。
Claude Code
在终端执行该命令,然后在 Claude Code 中输入 /mcp 完成授权。
claude mcp add --transport http hpsilab https://hpsilab.com/mcpCodex CLI
添加到 ~/.codex/config.toml。mcp-remote 桥接同样适用于其他仅支持 stdio 的客户端。
[mcp_servers.hpsilab]
command = "npx"
args = ["-y", "mcp-remote", "https://hpsilab.com/mcp"]Any MCP client
标准的远程 server 配置块,放入客户端的 MCP 配置文件即可。
{
"mcpServers": {
"hpsilab": {
"url": "https://hpsilab.com/mcp"
}
}
}Agent 可以调用的工具
9实时读取自 MCP server 的 tools/list。
get_iv_radarImplied-volatility (IV) structure for a stock: how expensive options are, whether volatility is being squeezed, and whether traders are paying up for upside (calls) or downside (puts).
get_monte_carloMonte Carlo price simulation for the next ~10 trading days: thousands of random price paths estimate a likely price range and the odds of finishing higher.
get_ai_predictionAI next-day prediction: probability the stock closes UP, a plain buy/watch/sell-lean signal, and how strongly the models agree (consensus).
get_equity_curveBacktest performance of the quant strategy across your watchlist: Sharpe ratio, max drawdown, win rate and total return per symbol.
get_option_pressureOption-chain pressure map for the nearest weekly/monthly expiry — Max Pain, dealer Gamma Wall, likely weekly high, and an extreme squeeze target.
analyze_stockAggregate all quant tools into one JSON stock analysis.
get_pretrade_risk_scanFull pre-trade risk scan JSON for a stock.
generate_stock_imagesGenerate stock-report PNG images and return their URLs.
generate_stock_research_reportFull markdown research report with five stock-report charts.
授权
HPSILab 实现了 OAuth 2.1 与动态客户端注册(DCR)。客户端会自动完成发现——这里列出具体地址只是方便你核对。
- Resource metadata
- https://hpsilab.com/.well-known/oauth-protected-resource/mcp
- Authorization server
- https://hpsilab.com/.well-known/oauth-authorization-server
- Registration (DCR)
- https://hpsilab.com/oauth/register
- Authorize
- https://hpsilab.com/oauth/authorize
- Token
- https://hpsilab.com/oauth/token
- PKCE
- S256 (required)