连接器指南阅读约 4 分钟22 个 MCP 工具7 种语言

Finnhub 接入 MCP:在任意 AI 智能体中查看实时行情、公司财务和财报

让你的 AI 获取 Finnhub 的实时市场数据:股票、外汇和加密货币报价,公司概况和关键财务指标,公司新闻和市场新闻,分析师评级,财报和 IPO 日历,内部人交易,SEC 文件以及市场开闭市状态。可在 Finnhub 免费套餐上使用;只读。

HC作者:HelpCode 团队更新于 4 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Finnhub

Finnhub

Give your AI live market data from Finnhub: stock, forex and crypto quotes, company profiles and key financials, company and market news, analyst recommendations, earnings and IPO calendars, insider transactions, SEC filings and market status. Works on Finnhub's free plan; read-only.

个工具

22

区域

INTL

类别

财务

身份验证

API Key

所需环境变量

FINNHUB_API_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。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 中,在该连接器上运行。

Finnhub · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Finnhub、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Finnhub

让你的 AI 获取 Finnhub 的实时市场数据:股票、外汇和加密货币报价,公司概况和关键财务指标,公司新闻和市场新闻,分析师评级,财报和 IPO 日历,内部人交易,SEC 文件以及市场开闭市状态。可在 Finnhub 免费套餐上使用;只读。

设置

设置大约需要 1 分钟。你需要一个 Finnhub API 密钥;免费套餐可以使用除 K 线价格历史以外的所有工具。

  1. 在 finnhub.io/register 注册,免费。
  2. 打开 finnhub.io/dashboard 上的 Dashboard,复制那里显示的 API 密钥。
  3. 只把密钥粘贴到 FINNHUB_API_KEY,不要带 token= 或空格。连接器通过 X-Finnhub-Token 请求头发送它,绝不放在 URL 里。
  4. 安装连接器,并以交易所 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 会展示数据,并说明这不构成投资建议。

该连接器不会交易、不会下单、不会连接证券账户,也不会读取你的持仓。

前提条件: FINNHUB_API_KEY

本地安装连接器

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

打开 http://localhost:3000/connectors/store,选择 Finnhub 并填入前提条件中列出的环境变量。

可用工具

ToolWhat it does
finnhub_search_symbolsFind tickers by company name, symbol, ISIN or CUSIP: symbol, display symbol, description and security type
finnhub_get_quoteLatest 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_profileCompany profile: name, country, currency, exchange, industry, IPO date, logo, market capitalisation (millions), shares outstanding…
finnhub_get_basic_financialsKey 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_newsNews articles about one company between two dates: headline, source, summary, URL, image and time (Unix seconds)
finnhub_get_market_newsLatest market news by category: general, forex, crypto or merger
finnhub_get_peersCompanies in the same country and sector, industry or sub-industry as the given one, as a list of symbols
finnhub_get_recommendation_trendsAnalyst recommendations per month: number of strong buy, buy, hold, sell and strong sell ratings
finnhub_get_earnings_surprisesReported versus estimated EPS per quarter (actual, estimate, surprise, surprise percent)
finnhub_get_earnings_calendarEarnings release dates with EPS and revenue estimates and actuals, for a date range or one symbol
finnhub_get_ipo_calendarRecent and upcoming IPOs between two dates: symbol, name, exchange, date, price range, number of shares and status
finnhub_get_insider_transactionsInsider buys and sells (SEC Form 3, 4, 5) for a company: who, share change, shares held, price, transaction code and dates
finnhub_get_insider_sentimentMonthly insider sentiment of a US company: net share purchases (change) and the monthly share purchase ratio (mspr, -100 to 100)
finnhub_get_financials_reportedFinancial 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_filingsSEC filings of a company: form type (10-K, 10-Q, 8-K...), filed and accepted dates and links to the documents
finnhub_get_market_statusWhether an exchange is open right now, the session (pre-market, regular, post-market) and the holiday if any
finnhub_get_market_holidaysHolidays and shortened trading days of an exchange
finnhub_list_forex_exchangesForex data providers Finnhub supports (e.g. oanda, fxcm), for finnhub_list_forex_symbols
finnhub_list_forex_symbolsCurrency pairs of one forex provider with the symbol to use in finnhub_get_quote (e.g
finnhub_list_crypto_exchangesCrypto exchanges Finnhub supports (e.g
finnhub_list_crypto_symbolsCrypto pairs of one exchange with the symbol to use in finnhub_get_quote (e.g
finnhub_get_stock_candlesPrice 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

示例提示

  • “阿里巴巴在美股现在的股价是多少?今天涨跌了多少?”
  • “比较一下腾讯、阿里巴巴和京东的市盈率、利润率和股息率。”
  • “下周有哪些公司发布财报?分析师预期的每股收益是多少?”
  • “过去三个月,英伟达的内部人是在买入还是卖出股票?”
  • “给我看看特斯拉的最新新闻,以及最近几个月分析师的评级。”

下一步

这份指南对你有帮助吗?

你的 Finnhub 智能体只差一次点击。

安装连接器,粘贴密钥,向你的 AI 客户端提问。免费试用 7 天,无需信用卡。

相关指南

连接器

如何通过 MCP 将 Finnhub 连接到 ChatGPT

让你的 AI 获取 Finnhub 的实时市场数据:股票、外汇和加密货币报价,公司概况和关键财务指标,公司新闻和市场新闻,分析师评级,财报和 IPO 日历,内部人交易,SEC 文件以及市场开闭市状态。可在 Finnhub 免费套餐上使用;只读。

连接器

如何通过 MCP 将 Finnhub 连接到 Claude

让你的 AI 获取 Finnhub 的实时市场数据:股票、外汇和加密货币报价,公司概况和关键财务指标,公司新闻和市场新闻,分析师评级,财报和 IPO 日历,内部人交易,SEC 文件以及市场开闭市状态。可在 Finnhub 免费套餐上使用;只读。

连接器

如何通过 MCP 将 Finnhub 连接到 Cursor

让你的 AI 获取 Finnhub 的实时市场数据:股票、外汇和加密货币报价,公司概况和关键财务指标,公司新闻和市场新闻,分析师评级,财报和 IPO 日历,内部人交易,SEC 文件以及市场开闭市状态。可在 Finnhub 免费套餐上使用;只读。

连接器

如何通过 MCP 将 Finnhub 连接到 Gemini

让你的 AI 获取 Finnhub 的实时市场数据:股票、外汇和加密货币报价,公司概况和关键财务指标,公司新闻和市场新闻,分析师评级,财报和 IPO 日历,内部人交易,SEC 文件以及市场开闭市状态。可在 Finnhub 免费套餐上使用;只读。

连接器

如何通过 MCP 将 Finnhub 连接到 Meta Muse

让你的 AI 获取 Finnhub 的实时市场数据:股票、外汇和加密货币报价,公司概况和关键财务指标,公司新闻和市场新闻,分析师评级,财报和 IPO 日历,内部人交易,SEC 文件以及市场开闭市状态。可在 Finnhub 免费套餐上使用;只读。

连接器

Cal.com 接入 MCP:在任意 AI 智能体中查看预约、空闲时段和通话转录

在 Claude、ChatGPT 或 Copilot 中读取 Cal.com 日程账号:活动类型、含参与者的预约、Cal Video 录像和转录、空闲时段、可用时间安排以及已连接的日历。预约、改期和取消功能也已包含,但安装时处于关闭状态。