Massive Financial Connector
Use Massive/Polygon as the primary market-data source.
Required environment
- - Require
MASSIVE_API_KEY in local environment. - Never print, commit, or upload API keys.
- Accept both quoted and unquoted local env values.
- If auth fails with
Unknown API Key, verify local shell env and active key status in Massive dashboard.
Full capability mode (official MCP server)
Start the official Massive MCP server (all features from mcp_massive):
CODEBLOCK0
This exposes the full MCP toolset:
- - INLINECODE3
- INLINECODE4
- INLINECODE5
- INLINECODE6
With these, you can cover the full repo workflow: endpoint discovery, docs lookup, generic market API access, storing/querying data with SQL, and post-processing functions.
Quick commands (common checks)
Run from this skill directory:
CODEBLOCK1
Output rules
- - Return concise numeric result first (e.g., last trade price), then timestamp/exchange metadata.
- If Massive is unavailable, state failure explicitly and ask whether to use a fallback source.
- For investment-style prompts, add a short non-advice disclaimer.
Included scripts
- -
scripts/start-mcp-server.sh: launch official Massive MCP server (full functionality). - INLINECODE8 : latest trade snapshot.
- INLINECODE9 : previous close and change context.
- INLINECODE10 : daily OHLCV bar.
Massive Financial Connector
使用 Massive/Polygon 作为主要市场数据源。
所需环境
- - 需要在本地环境中设置 MASSIVEAPIKEY。
- 切勿打印、提交或上传 API 密钥。
- 接受带引号和不带引号的本地环境变量值。
- 如果认证失败并显示 Unknown API Key,请检查本地 shell 环境以及 Massive 仪表盘中的密钥状态。
完整功能模式(官方 MCP 服务器)
启动官方 Massive MCP 服务器(包含 mcp_massive 的所有功能):
bash
scripts/start-mcp-server.sh
这将暴露完整的 MCP 工具集:
- - searchendpoints
- getendpointdocs
- callapi
- query_data
使用这些工具,您可以覆盖完整的仓库工作流程:端点发现、文档查询、通用市场 API 访问、使用 SQL 存储/查询数据以及后处理函数。
快速命令(常见检查)
在此技能目录下运行:
bash
scripts/get-last-trade.sh AAPL
scripts/get-prev-close.sh AAPL
scripts/get-agg-day.sh AAPL 2026-03-05
输出规则
- - 首先返回简洁的数值结果(例如,最新交易价格),然后是时间戳/交易所元数据。
- 如果 Massive 不可用,明确说明失败原因,并询问是否使用备用数据源。
- 对于投资类提示,添加简短的非建议免责声明。
包含的脚本
- - scripts/start-mcp-server.sh:启动官方 Massive MCP 服务器(完整功能)。
- scripts/get-last-trade.sh :获取最新交易快照。
- scripts/get-prev-close.sh :获取前收盘价及变动信息。
- scripts/get-agg-day.sh :获取每日 OHLCV 数据。