跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Finnhub,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
让你的 AI 获取 Finnhub 的实时市场数据:股票、外汇和加密货币报价,公司概况和关键财务指标,公司新闻和市场新闻,分析师评级,财报和 IPO 日历,内部人交易,SEC 文件以及市场开闭市状态。可在 Finnhub 免费套餐上使用;只读。
试试这样问
Finnhub 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Finnhub、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Finnhub + ChatGPT
让你的 AI 获取 Finnhub 的实时市场数据:股票、外汇和加密货币报价,公司概况和关键财务指标,公司新闻和市场新闻,分析师评级,财报和 IPO 日历,内部人交易,SEC 文件以及市场开闭市状态。可在 Finnhub 免费套餐上使用;只读。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
FINNHUB_API_KEY
步骤 1 — 获取凭证
设置大约需要 1 分钟。你需要一个 Finnhub API 密钥;免费套餐可以使用除 K 线价格历史以外的所有工具。
- 在 finnhub.io/register 注册,免费。
- 打开 finnhub.io/dashboard 上的 Dashboard,复制那里显示的 API 密钥。
- 只把密钥粘贴到
FINNHUB_API_KEY,不要带token=或空格。连接器通过X-Finnhub-Token请求头发送它,绝不放在 URL 里。 - 安装连接器,并以交易所
US运行finnhub_get_market_status:它会告诉你美国市场现在是否开市,以及处于哪个交易时段。
可读取的内容:股票、ETF、外汇和加密货币报价;含市值和流通股数的公司概况;52 周最高和最低价、贝塔、市盈率、市净率、每股收益、利润率、ROE 和股息率等指标;公司新闻和市场新闻(综合、外汇、加密货币、并购);同行公司;每月分析师评级;盈利意外和财报日历;IPO 日历;内部人交易和内部人情绪;按原样提交给 SEC 的财务报表和 SEC 文件列表;市场状态和休市日;以及外汇提供商和加密货币交易所的代码列表。
先确定代码:AI 用 finnhub_search_symbols 按公司名称、代码、ISIN 或 CUSIP 查找股票代码。美股代码不带后缀,例如 AAPL;其他交易所带后缀,例如 0700.HK 或 SAP.DE。外汇和加密货币报价使用交易所代码,例如 OANDA:EUR_USD 或 BINANCE:BTCUSDT,AI 会用 finnhub_list_forex_symbols 或 finnhub_list_crypto_symbols 查找。
如何看数字:报价字段很短:c 当前价,d 涨跌额,dp 涨跌幅,h 最高,l 最低,o 开盘,pc 前收盘,t 以 Unix 秒表示的时间。市值和流通股数以百万为单位。日期格式为 YYYY-MM-DD。提交的财务报表返回内容很大,所以 AI 会用起止日期限定 finnhub_get_financials_reported。
免费套餐:除 finnhub_get_stock_candles(价格历史)外所有工具都能用;该工具需要付费套餐,免费密钥会返回 403,这时 AI 改用 finnhub_get_quote 和 finnhub_get_basic_financials 中的 52 周数据。免费密钥下部分数据的时间范围更短:公司新闻可回溯一年,盈利意外为最近 4 个季度,财报日历为过去一个月加上未来日期。实时报价覆盖美股;其他市场需要付费套餐。
只读:所有工具都只读取数据。连接器不下单、不动用资金,因此没有需要确认的操作,安装时也没有关闭的工具。
限制:免费套餐每分钟 60 次、每秒 30 次调用。遇到 429 时 AI 会等待一分钟,并优先使用一次精准的调用,而不是多次宽泛的调用。
常见错误:401 表示 Finnhub 拒绝了密钥:请从 Dashboard 重新复制。403 "You don't have access to this resource" 表示密钥有效,但这些数据不在你的套餐内。429 表示达到了每分钟上限。
不构成投资建议:市场数据仅供参考。当你问该买什么或卖什么时,AI 会展示数据,并说明这不构成投资建议。
该连接器不会交易、不会下单、不会连接证券账户,也不会读取你的持仓。
步骤 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 — 在 ChatGPT 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
ChatGPT 在网页版的 Plugins 页面把 MCP 服务器添加为插件,仅付费套餐可用,不再需要开发者模式。在 Business 工作区中只有管理员和所有者可以添加;在 Enterprise 和 Edu 中,管理员可以授予 Create plugins with MCPs 权限。
- 前往 chatgpt.com/plugins,点击 +,然后选择 Add custom MCP server。
- 填写名称,例如 Name:
Finnhub。 - 在 Connection 下的 Server URL 中填入
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。 - 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
- 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。
可用工具
| Tool | What it does |
|---|---|
finnhub_search_symbols | Find tickers by company name, symbol, ISIN or CUSIP: symbol, display symbol, description and security type |
finnhub_get_quote | Latest price of a stock, ETF, forex or crypto symbol: current (c), change (d), percent change (dp), day high (h) and low (l), open (o)… |
finnhub_get_company_profile | Company profile: name, country, currency, exchange, industry, IPO date, logo, market capitalisation (millions), shares outstanding… |
finnhub_get_basic_financials | Key figures of a company: 52-week high and low, beta, P/E, P/B, EPS, margins, ROE, dividend yield and more (metric), with annual and… |
finnhub_get_company_news | News articles about one company between two dates: headline, source, summary, URL, image and time (Unix seconds) |
finnhub_get_market_news | Latest market news by category: general, forex, crypto or merger |
finnhub_get_peers | Companies in the same country and sector, industry or sub-industry as the given one, as a list of symbols |
finnhub_get_recommendation_trends | Analyst recommendations per month: number of strong buy, buy, hold, sell and strong sell ratings |
finnhub_get_earnings_surprises | Reported versus estimated EPS per quarter (actual, estimate, surprise, surprise percent) |
finnhub_get_earnings_calendar | Earnings release dates with EPS and revenue estimates and actuals, for a date range or one symbol |
finnhub_get_ipo_calendar | Recent and upcoming IPOs between two dates: symbol, name, exchange, date, price range, number of shares and status |
finnhub_get_insider_transactions | Insider buys and sells (SEC Form 3, 4, 5) for a company: who, share change, shares held, price, transaction code and dates |
finnhub_get_insider_sentiment | Monthly insider sentiment of a US company: net share purchases (change) and the monthly share purchase ratio (mspr, -100 to 100) |
finnhub_get_financials_reported | Financial statements as reported to the SEC (balance sheet, income and cash flow from 10-K and 10-Q), annual or quarterly, with the… |
finnhub_get_sec_filings | SEC filings of a company: form type (10-K, 10-Q, 8-K...), filed and accepted dates and links to the documents |
finnhub_get_market_status | Whether an exchange is open right now, the session (pre-market, regular, post-market) and the holiday if any |
finnhub_get_market_holidays | Holidays and shortened trading days of an exchange |
finnhub_list_forex_exchanges | Forex data providers Finnhub supports (e.g. oanda, fxcm), for finnhub_list_forex_symbols |
finnhub_list_forex_symbols | Currency pairs of one forex provider with the symbol to use in finnhub_get_quote (e.g |
finnhub_list_crypto_exchanges | Crypto exchanges Finnhub supports (e.g |
finnhub_list_crypto_symbols | Crypto pairs of one exchange with the symbol to use in finnhub_get_quote (e.g |
finnhub_get_stock_candles | Price history (OHLCV candles) of a stock between two Unix timestamps at a resolution of 1, 5, 15, 30 or 60 minutes, or D, W, M |
示例提示
- “阿里巴巴在美股现在的股价是多少?今天涨跌了多少?”
- “比较一下腾讯、阿里巴巴和京东的市盈率、利润率和股息率。”
- “下周有哪些公司发布财报?分析师预期的每股收益是多少?”
- “过去三个月,英伟达的内部人是在买入还是卖出股票?”
- “给我看看特斯拉的最新新闻,以及最近几个月分析师的评级。”
FAQ
ChatGPT 免费套餐能用自定义 MCP 服务器吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。
下一步
这份指南对你有帮助吗?