MCP
支持 OAuth 2.1 与动态客户端注册(DCR)。MCP 客户端会自动打开登录,无需 API Key。
{
"mcpServers": {
"hpsilab": {
"url": "https://hpsilab.com/mcp"
}
}
}HPSILab 开发者 / AI Agent
MCP · REST API · SDK · OAuth 2.1 · Credits · x402
通过 MCP、REST 或 SDK 连接 9 个股票与期权分析工具。
支持 OAuth 2.1 与动态客户端注册(DCR)。MCP 客户端会自动打开登录,无需 API Key。
{
"mcpServers": {
"hpsilab": {
"url": "https://hpsilab.com/mcp"
}
}
}使用 API Key 进行身份验证。
curl https://hpsilab.com/api/analyze_stock/NVDA \
-H "Authorization: Bearer hpsi_your_key"安装:pip install -U hpsilab-mcp查看 SDK
from hpsilab_mcp import HpsiMcpClient, HpsiMcpError
try:
client = HpsiMcpClient(
api_key="hpsi_your_key",
base_url="https://hpsilab.com",
)
iv = client.get_iv_radar("AAPL")
print(iv)
except HpsiMcpError as exc:
print(f"HPSILab API error: {exc}")使用 HPSILab TypeScript 客户端。
import { HPSILabClient } from "@hpsilab/sdk";
const client = new HPSILabClient({ apiKey: "hpsi_your_key" });
console.log(await client.analyzeStock("NVDA"));使用每月 Credits,或让支持钱包的 Agent 通过 x402 按次支付(Base 上的 USDC)。
| 工具 | Credits | x402 |
|---|---|---|
| get_ai_prediction | 2 | $0.05 |
| get_iv_radar | 3 | $0.05 |
| get_option_pressure | 4 | $0.05 |
| get_monte_carlo | 5 | $0.10 |
| get_equity_curve | 6 | $0.07 |
| analyze_stock | 12 | $0.15 |
| get_pretrade_risk_scan | 15 | $0.15 |
| generate_stock_images | 18 | $0.20 |
| generate_stock_research_report | 30 | $0.35 |