摘要
来自 Massive 的市场数据:美股、期权、指数、外汇和加密货币的价格 K 线、成交、报价和快照,代码详情,带情绪分数的新闻,财务报表和财务比率,股息,拆股,技术指标,市场状态,美国国债收益率和通胀。只读;需要 API 密钥,提供免费的 Basic 套餐。
引导式设置
2 分钟将 Massive 连接到 Claude
开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Massive,再把你的 MCP URL 添加到 Claude。无需代码,也无需自行运行服务器。
无需信用卡 · 7 天试用 · 提供自托管方案
AnythingMCP 已收录在 Claude 的连接器目录中:一键添加到 Claude (在新标签页中打开),然后登录并选择 Claude 可以使用哪些 MCP 服务器。
试试这样问
Massive 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Massive、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Massive + Claude
来自 Massive 的市场数据:美股、期权、指数、外汇和加密货币的价格 K 线、成交、报价和快照,代码详情,带情绪分数的新闻,财务报表和财务比率,股息,拆股,技术指标,市场状态,美国国债收益率和通胀。只读;需要 API 密钥,提供免费的 Basic 套餐。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
MASSIVE_API_KEY
步骤 1 — 获取凭证
设置大约 2 分钟。你需要一个 Massive API 密钥。Massive 就是 2025 年 10 月更名前的 Polygon.io,在那里创建的密钥仍然可用。
- 在 https://massive.com 注册;免费的 Basic 套餐无需绑定银行卡。
- 打开 Dashboard > API Keys(https://massive.com/dashboard/keys)并复制密钥。
- 把它粘贴到
MASSIVE_API_KEY。它以Authorization: Bearer发送到https://api.massive.com。 - 安装连接器并运行
massive_get_market_status:它会显示美国市场、外汇和加密货币当前是否开市,同时确认密钥有效。
你的套餐包含什么(针对股票;期权、指数和货币有各自的套餐):
- Basic(免费):每分钟 5 次请求,日终数据,2 年历史:聚合 K 线、前收盘、当日开盘和收盘、参考数据、新闻、股息、拆股、技术指标、市场状态、国债收益率和通胀。
- Starter:不限请求次数,15 分钟延迟数据,5 年历史,另含快照以及涨跌幅榜。
- Developer:增加逐笔成交和 10 年历史。
- Advanced:实时数据、完整历史、报价,以及财务报表和财务比率(也可通过 Financials 扩展获得)。期权链和期权快照需要 Options Starter 或更高套餐。
- 超出套餐范围的调用会返回 403 NOT_AUTHORIZED,并附上指明所需套餐的消息;AI 会告诉你,而不是反复重试。
代码:股票直接写(AAPL、BRK.B);期权形如 O:AAPL271217C00250000(标的、到期日 YYMMDD、C 或 P、行权价乘以 1000 的 8 位数);外汇 C:EURUSD,加密货币 X:BTCUSD,指数 I:SPX。遇到不认识的代码时,AI 会用 massive_list_tickers 搜索。
可读取的内容:
- 市场状态,以及各交易所即将到来的美国休市日和提前收市日。
- 股票、期权、外汇、加密货币和指数从秒到年任意周期的价格 K 线;前一交易日的 K 线;某一天的开盘和收盘,以及盘前和盘后价格。
- 实时数据:单只股票或最多 250 个任意资产类别代码的快照,当日涨幅和跌幅前 20 名,最新成交和最新报价。逐笔数据:某一天或某个时间段的逐笔成交和 NBBO 报价。
- 参考数据:按名称、类型、市场、交易所、CIK 或 CUSIP 搜索代码;包含简介、市值、流通股数、员工数、SIC 代码和标志的代码详情;相关公司;代码类型和交易所。
- 新闻,包括标题、发布方、提及的代码以及每个代码的情绪和理由。
- 来自 SEC 申报的财务数据:季度、年度和过去十二个月的利润表、资产负债表和现金流量表,以及市盈率、EV/EBITDA、ROE 或负债权益比等当前比率,这些比率也可用作选股器(例如
market_cap_gte、price_to_earnings_lte,按market_cap.desc排序)。 - 已发生和已宣布的股息和拆股。
- 期权:按标的、类型、到期日和行权价查找合约,带价格、希腊值、隐含波动率和未平仓量的期权链,以及单个合约的快照。
- 外汇和加密货币:按最新汇率换算货币、最新外汇报价、最新加密货币成交。
- 任意代码的 SMA、EMA、RSI 和 MACD,以及美联储发布的 1 个月至 30 年期美国国债收益率和月度 CPI、PCE 通胀数据。
数据格式:K 线使用短键:o 开盘、h 最高、l 最低、c 收盘、v 成交量、vw 成交量加权均价、n 成交笔数,t 是 K 线起始时间的 Unix 时间戳,单位为毫秒(UTC)。成交和报价带纳秒级时间戳(sip_timestamp)。价格以报价货币计;财务报表数值以报告货币的完整单位计。交易所用数字 ID 表示,可用 massive_list_exchanges 列出。
分页:还有更多结果时,列表会返回 next_url。对于代码、成交、报价、新闻、快照和期权,AI 会把 next_url 中 cursor= 之后的值作为 cursor 传入。对于财务数据、股息、拆股和经济数据列表,则改为缩小日期范围或提高 limit。
只读:所有工具都只读取,因此无需确认任何操作,安装时也没有关闭的工具。
常见错误:401 表示缺少密钥或密钥未知("Unknown API Key")。403 表示密钥有效,但你的套餐不包含该数据(见 https://massive.com/pricing)。429 表示请求过多;Basic 套餐每分钟 5 次,请等一分钟。状态为 OK 但 results 为空,表示该时间段没有数据,例如节假日。
连接器不使用 WebSocket 数据流、平面文件、期货、Benzinga 合作方数据或 SEC 申报文本。Massive 还在 https://mcp.massive.com 运营官方 MCP 服务器。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Claude 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
推荐路径:在 claude.ai web 上工作,无需触碰任何配置文件。
- 在 Claude 中打开 Customize → Connectors。
- 点击 +,然后点击 Add custom connector。
- 输入名称(例如
Massive)和远程 MCP 服务器 URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,然后点击 Add。 - 点击 Connect,登录 AnythingMCP(OAuth)并允许访问。
下面所有工具都会出现在你的聊天中,开始输入提示。
可用工具
| Tool | What it does |
|---|---|
massive_get_market_status | Get whether US stock, options and futures markets, forex, crypto and the main indices are open, closed, in pre-market or after-hours right… |
massive_get_market_holidays | List upcoming US market holidays and early closes per exchange (NYSE, Nasdaq, OTC) with date, status (closed or early-close) and opening… |
massive_get_aggregates | Get price bars (open, high, low, close, volume, VWAP, trade count) for a stock, option, forex pair, crypto pair or index over a date range… |
massive_get_previous_close | Get the previous trading day's bar (open, high, low, close, volume, VWAP) for a stock, option, forex pair, crypto pair or index |
massive_get_daily_open_close | Get the open, high, low, close, volume and pre-market and after-hours prices of a stock, option or index on one date |
massive_list_trades | List the individual trades (tick data) of a stock, option or crypto ticker for a day or time range: price, size, exchange, conditions and… |
massive_list_quotes | List the quotes (NBBO for stocks, BBO for forex) of a stock, option or forex ticker for a day or time range: bid and ask price and size… |
massive_get_last_trade | Get the most recent trade of a US stock or an option contract: price, size, exchange, conditions and timestamp |
massive_get_last_quote | Get the most recent NBBO quote of a US stock: bid and ask price, size, exchanges and timestamp |
massive_get_snapshots | Get current snapshots for up to 250 tickers of any asset class at once (universal snapshot): last trade and quote, today's session (open… |
massive_get_stock_snapshot | Get the current snapshot of one US stock: today's and the previous day's bars, the current minute bar, last trade, last quote, and today's… |
massive_get_gainers_losers | Get the 20 US stocks with the largest percentage gain or loss today (minimum volume 10,000), with their snapshots |
massive_list_tickers | Search and list tickers of stocks, ETFs, indices, forex and crypto by name, type, market, exchange, CIK or CUSIP, active or delisted… |
massive_get_ticker_details | Get the details of one ticker: company name, description, homepage, address, phone, SIC code and industry, market capitalisation, shares… |
massive_list_ticker_types | List the ticker type codes with their descriptions (CS common stock, ETF, ADRC, PFD and more), optionally per asset class and locale |
massive_list_exchanges | List the exchanges, trading venues and reporting facilities Massive covers: id, name, MIC, operating MIC, type, asset class, locale and… |
massive_get_related_companies | List companies related to a stock (peers and competitors derived from news and returns), as tickers |
massive_list_news | List recent news articles about a ticker or the market: title, author, publisher, publication time, URL, description, keywords, tickers… |
massive_list_income_statements | List a company's quarterly, annual or trailing-twelve-month income statements from SEC filings: revenue, cost of revenue, gross profit… |
massive_list_balance_sheets | List a company's quarterly, annual or trailing-twelve-month balance sheets from SEC filings: cash, receivables, inventories, current and… |
massive_list_cash_flow_statements | List a company's quarterly, annual or trailing-twelve-month cash flow statements from SEC filings: operating, investing and financing cash… |
massive_list_financial_ratios | Get current valuation, profitability, liquidity and leverage ratios per company (end of day): price, market cap, enterprise value, P/E… |
massive_list_dividends | List cash dividends of stocks: ex-dividend, record, payment and declaration dates, cash amount, currency, frequency per year and… |
massive_list_splits | List stock splits and reverse splits: execution date, split from and split to, adjustment type |
massive_list_options_contracts | List options contracts (reference data, no prices): option ticker, underlying, call or put, strike, expiration, exercise style and shares… |
massive_get_options_chain | Get the option chain of an underlying with prices: per contract the day bar, last quote and trade, greeks (delta, gamma, theta, vega)… |
massive_get_option_contract_snapshot | Get the snapshot of one option contract: day bar, last quote and trade, greeks, implied volatility, open interest, break-even price and… |
massive_convert_currency | Convert an amount between two currencies at the latest rate (forex or crypto), with the last quote used |
massive_get_last_forex_quote | Get the latest bid and ask quote of a currency pair, e.g |
massive_get_last_crypto_trade | Get the latest trade of a crypto pair, e.g |
massive_get_technical_indicator | Get SMA, EMA, RSI or MACD values for a stock, option, forex, crypto or index ticker, newest first: one value per bar (MACD with signal and… |
massive_get_treasury_yields | Get US Treasury yields per day for maturities from 1 month to 30 years (in percent), sourced from the Federal Reserve |
massive_get_inflation | Get US inflation indicators per month: CPI, core CPI and CPI year-over-year change, PCE and core PCE price indexes and PCE spending… |
示例提示
- “显示 AAPL 最近三个月的日 K 线,并指出单日波动最大的几天。”
- “美国股市现在开市吗?下一个休市日是哪天?”
- “关于 Tesla 的最新新闻说了什么?每个被提及代码的情绪如何?”
- “比较 Coca-Cola 和 PepsiCo 过去两年的股息历史。”
- “今年美国 2 年期和 10 年期国债收益率走势如何?”
FAQ
Claude Code 和 Claude Desktop 一样工作吗? 是的,两者都指向 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。
下一步
这份指南对你有帮助吗?