FinanceQuery

io.github.Verdenroz由 GitHub 账号 Verdenroz 发布v3.4.0更新于 Nov 19, 2026

Stock quotes, charts, financials, options, SEC filings, crypto and macro data. Hosted, no API key.

发布方自己的服务:Finance Foundation

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

一个托管、免密钥的 MCP 服务器,让助手获取股票行情、图表、财报、期权、SEC 文件、加密货币与宏观数据。

可以做什么
  • 查询行情、公司简介、搜索与筛选器,以及市场概览、交易时段和指数
  • 获取历史 OHLCV 图表、42 项技术指标、风险指标与回测结果
  • 读取基本面:利润表、资产负债表、现金流量表、股息、持股人、分析师评级与目标价
  • 获取期权链、加密货币市值、外汇、期货、大宗商品与恐惧贪婪指数
  • 检索并阅读 SEC EDGAR 文件、XBRL 数据、电话会议记录、新闻稿、新闻与 RSS 订阅
  • 获取 FRED 宏观时间序列与美国国债收益率
适用场景
适合让助手研究股票、ETF、加密货币或宏观环境,比较公司,查看即将到来的财报与分红,或阅读监管文件与财报电话会议,而无需自行接入多个付费数据 API。
运行要求
托管端点无需安装或 API 密钥。自托管需要 Docker 或 Rust 工具链;可选的 EDGAR_EMAIL 启用 SEC EDGAR 工具,FRED_API_KEY 启用 FRED 序列,托管实例已预配置这两项。需要网络访问。
安装前请注意
数据来自第三方提供商(Yahoo、CoinGecko、FMP、EDGAR、FRED、Polygon、Alpha Vantage),可能延迟、不完整或不准确,且不构成投资建议。自托管并设置 EDGAR_EMAIL 时,会把你的联系邮箱放入 User-Agent 发送给 SEC。工具为只读,但回测需要特殊构建特性。

安装

在 SourceWeft 中

  1. 打开 控制台中的 FinanceQuery,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.Verdenroz%2Ffinance-query/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "financequery": {
      "type": "http",
      "url": "https://finance-query.com/mcp"
    }
  }
}

README

finance-query-mcp

MCP server for finance-query — real-time stock quotes, charts, technical indicators, financials, options, SEC filings, and more as MCP tools.

Works with any MCP-compatible agent: Claude Code, Claude Desktop, Cursor, Windsurf, Zed, Continue, VS Code Copilot, and others.

Hosted (Recommended)

A hosted instance runs at https://finance-query.com/mcp. No installation required — just add it to your client config.

Note: The hosted instance runs with EDGAR_EMAIL and FRED_API_KEY pre-configured, so all tools are available.

Claude Code

Add to .mcp.json in your project root:

json
{  "mcpServers": {    "finance-query": {      "type": "http",      "url": "https://finance-query.com/mcp"    }  }}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "finance-query": {      "type": "http",      "url": "https://finance-query.com/mcp"    }  }}

Cursor

Add to .cursor/mcp.json in your project or ~/.cursor/mcp.json globally:

json
{  "mcpServers": {    "finance-query": {      "type": "http",      "url": "https://finance-query.com/mcp"    }  }}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "finance-query": {      "type": "http",      "url": "https://finance-query.com/mcp"    }  }}

VS Code (GitHub Copilot)

Add to .vscode/mcp.json in your project:

json
{  "servers": {    "finance-query": {      "type": "http",      "url": "https://finance-query.com/mcp"    }  }}

Continue

Add to .continue/config.yaml:

yaml
mcpServers:  - name: finance-query    type: http    url: https://finance-query.com/mcp

Zed

Add to ~/.config/zed/settings.json:

json
{  "context_servers": {    "finance-query": {      "command": {        "path": "cargo",        "args": ["run", "-p", "finance-query-mcp", "--quiet"],        "env": {          "EDGAR_EMAIL": "[email protected]",          "FRED_API_KEY": "your_fred_api_key"        }      }    }  }}

Zed runs MCP servers as local processes (stdio). Clone the repo and run from source, or build the binary with cargo build -p finance-query-mcp --release and point "path" at target/release/fq-mcp.


Self-Hosting

If you'd prefer to run your own instance, the server supports both HTTP and stdio transports.

Docker (recommended)

bash
# HTTP transport (remote/VPS)docker run -p 3000:3000 \  -e MCP_TRANSPORT=http \  -e [email protected] \  -e FRED_API_KEY=your_fred_api_key \  ghcr.io/verdenroz/finance-query/mcp:latest

Point your client at http://localhost:3000/mcp.

From Source

bash
# stdio (default — for local clients that launch the process)cargo run -p finance-query-mcp --quiet
# HTTPMCP_TRANSPORT=http cargo run -p finance-query-mcp --quiet

For stdio, point your client at the binary:

json
{  "mcpServers": {    "finance-query": {      "command": "cargo",      "args": ["run", "-p", "finance-query-mcp", "--quiet"],      "env": {        "EDGAR_EMAIL": "[email protected]",        "FRED_API_KEY": "your_fred_api_key"      }    }  }}

Environment Variables

VariableRequiredDescription
EDGAR_EMAILOptionalEnables get_edgar_* tools. SEC requires a contact email in the User-Agent.
FRED_API_KEYOptionalEnables get_fred_series. Free key at fred.stlouisfed.org. get_treasury_yields is keyless and always available.

Available Tools

Quotes

ToolDescription
get_quoteCurrent quote + full company data for a symbol
get_quotesBatch quotes for multiple symbols
get_recommendationsSimilar stocks and analyst ratings
get_splitsHistorical stock split history

Charts & Sparklines

ToolDescription
get_chartHistorical OHLCV candlestick data
get_chartsBatch OHLCV data for multiple symbols
get_sparkLightweight close-price sparklines (faster than get_charts)

Fundamentals

ToolDescription
get_financialsIncome statement, balance sheet, or cash flow
get_batch_financialsFinancials for multiple symbols
get_holdersMajor, institutional, fund, or insider holders
get_analysisAnalyst recommendations, upgrades/downgrades, earnings estimates

Technical Indicators (42 indicators)

ToolDescription
get_indicatorsAll 42 indicators for a symbol (SMA, EMA, RSI, MACD, Bollinger Bands, Ichimoku, etc.)
get_batch_indicatorsIndicators for multiple symbols

Options

ToolDescription
get_optionsOptions chain for a symbol (nearest or specific expiration)

Dividends

ToolDescription
get_dividendsDividend history + analytics (CAGR, avg payment)
get_batch_dividendsDividends for multiple symbols

Market Data

ToolDescription
get_market_summaryMajor indices and currencies by region
get_market_hoursMarket open/closed status by region
get_trendingTrending tickers by region
get_indicesWorld market indices (S&P 500, DAX, Nikkei, etc.)
get_fear_and_greedCNN Fear & Greed Index (0–100)
get_sectorSector data for any of the 11 GICS sectors
get_industryIndustry data by slug

Search & Discovery

ToolDescription
searchSearch stocks, ETFs, and companies by name or ticker
lookupType-filtered ticker discovery (equity, ETF, fund, index, etc.)
screenerPredefined screeners (most-actives, day-gainers, undervalued-growth, etc.)
get_newsNews for a symbol or general market news
get_feedsRSS/Atom feeds from Bloomberg, WSJ, FT, SEC, MarketWatch, and more
get_transcriptsEarnings call transcripts

Risk Analytics

ToolDescription
get_riskVaR (95/99%), Sharpe/Sortino/Calmar ratios, beta, max drawdown

Crypto (CoinGecko, no API key)

ToolDescription
get_crypto_coinsTop N coins by market cap

FRED / US Treasury

ToolDescription
get_fred_seriesAny FRED time series (FEDFUNDS, CPI, GDP, UNRATE, etc.)
get_treasury_yieldsUS Treasury yield curve (1m–30y) for a given year

SEC EDGAR

ToolDescription
get_edgar_factsXBRL structured financial data for any public company
get_edgar_submissionsSEC filing history and company metadata
get_edgar_searchFull-text search across SEC filings

Backtesting (requires backtesting build feature)

ToolDescription
run_backtestRun a prebuilt strategy (SMA crossover, RSI reversal, MACD signal, Bollinger mean-reversion, SuperTrend follow, Donchian breakout) against a symbol's history — returns summary metrics, a paginated equity curve, and a paginated trade list.

来源:finance-query-mcp/README.md,提交 4697974

工具

64

get_analysis

Analyst Data

Get analyst data for a stock: recommendation trends, upgrades/downgrades, earnings estimates, or earnings history.

输入参数fieldssymbol必填analysis_type必填

get_calendar

Upcoming Events for Symbols

Get a time-sorted calendar of upcoming financial events (earnings with estimates, ex-dividend and dividend-payment dates, options expirations, and — when FRED is configured — market-wide economic releases) across multiple symbols. Answers 'what's coming up for my portfolio?' in one call.

输入参数range必填fieldssymbols必填

get_chart

Price Chart (OHLCV)

Get historical OHLCV candlestick chart data for one or more stock symbols (comma-separated). A single symbol supports start/end absolute timestamps and returns one chart; multiple symbols return a batch of charts plus per-symbol errors (interval/range only, no start/end).

输入参数endlimitrange必填startcursorfieldssymbols必填interval必填

get_commodity

Commodity Quote

Get a commodity's current quote (e.g. gold, silver, crude oil), provider-routed (Yahoo, keyless).

输入参数fieldssymbol必填

get_company_profile

Company Profile

Get a company's identity/classification profile (name, description, asset type, exchange, currency, country, sector, industry, market capitalization).

输入参数fieldssymbol必填

get_congressional_trades

Congressional Trades

Get congressional trading disclosures for a symbol. Uses FMP when FMP_API_KEY is set, keyless House PTR filings otherwise.

输入参数limitcursorfieldssymbol必填

get_crypto

Top Cryptocurrencies

Get top cryptocurrency coins by market cap from CoinGecko (no API key required).

输入参数countlimitcursorfieldsvs_currency

get_crypto_news

Crypto News

Get market-wide crypto news (currently FMP only, requires FMP_API_KEY).

输入参数countlimitcursorfields

get_dividends

Dividend History

Get dividend history for one or more dividend-paying stocks (comma-separated symbols). A single symbol returns paginated dividend history plus analytics (CAGR, average payment, payout count); multiple symbols return a batch of dividend histories plus per-symbol errors (no analytics for batch).

输入参数limitrange必填cursorfieldssymbols必填

get_earnings_surprises

Earnings Surprises

Get a stock's earnings-surprise history (actual vs. estimated EPS).

输入参数fieldssymbol必填

get_earnings_transcript

Earnings Call Transcript

Get an earnings call transcript for a symbol. Provide quarter and year for a specific call, or omit both for the latest (Yahoo only).

输入参数yearfieldssymbol必填quarter必填

get_edgar_facts

SEC EDGAR XBRL Facts

Get SEC EDGAR XBRL structured financial data (all reported accounting concepts) for a company. Requires EDGAR_EMAIL env var.

输入参数limitcursorfieldssymbol必填conceptstaxonomy

get_edgar_submissions

SEC EDGAR Filing History

Get SEC filing history and company metadata from EDGAR (up to 1000 most recent filings). Requires EDGAR_EMAIL env var.

输入参数limitcursorfieldssymbol必填

get_etf_profile

ETF Profile and Holdings

Get an ETF's profile and holdings (net assets, expense ratio, sector/country weightings, top holdings).

输入参数fieldssymbol必填

get_executive_compensation

Executive Compensation

Get disclosed executive compensation by year for a symbol.

输入参数limitcursorfieldssymbol必填

get_fails_to_deliver

Fails-to-Deliver Records

Get fails-to-deliver records for a symbol. Uses FMP when FMP_API_KEY is set, keyless EDGAR otherwise.

输入参数limitcursorfieldssymbol必填

get_fear_and_greed

Fear & Greed Index

Get the CNN Fear & Greed Index — market sentiment from extreme fear (0) to extreme greed (100).

输入参数fields

get_feeds

Financial News Feeds

Fetch RSS/Atom news from financial publishers (Bloomberg, WSJ, MarketWatch, FT, SEC, etc.).

输入参数limitcursorfieldssources

get_filing_sections

SEC Filing Sections

Get sectioned text of one SEC filing by accession number (10-K or 8-K). Routes through EDGAR (best-effort HTML extraction) or Polygon when configured.

输入参数form必填fieldssymbol必填accession_number必填

get_financials

Financial Statements

Get income statement, balance sheet, or cash flow statement for one or more stock symbols (comma-separated). A single symbol returns one statement; multiple symbols return a batch plus per-symbol errors.

输入参数fieldsmetricssymbols必填frequency必填statement必填

get_forex

Exchange Rate

Get a currency pair's current exchange rate, provider-routed (Capability::FOREX).

输入参数to必填from必填fields

get_forex_news

Forex News

Get market-wide forex news (currently FMP only, requires FMP_API_KEY).

输入参数countlimitcursorfields

get_fred_series

FRED Economic Series

Get FRED macroeconomic time series data (e.g., FEDFUNDS, CPIAUCSL, GDP, UNRATE). Requires FRED_API_KEY env var.

输入参数id必填as_oflimitcursorfields

get_futures

Futures Quote

Get a futures contract's current quote, provider-routed (Yahoo, keyless).

输入参数fieldssymbol必填

get_grading_actions

Analyst Upgrades and Downgrades

Get provider-routed analyst upgrades and downgrades for a symbol.

输入参数limitcursorfieldssymbol必填

get_holders

Ownership and Insider Activity

Get ownership data for a stock: major holders, institutional/fund ownership, or insider activity.

输入参数limitcursorfieldssymbol必填holder_type必填

get_index_constituent_changes

Index Constituent Changes

Get additions and removals from an index's constituent list.

输入参数limitcursorfieldssymbol必填

get_index_constituents

Index Constituents

Get an index's current constituent list, provider-routed (Wikipedia, S&P 500 only).

输入参数fieldssymbol必填

get_indicators

Technical Indicators

Get all 42 technical analysis indicators (SMA, EMA, RSI, MACD, Bollinger Bands, Ichimoku, etc.) for one or more stock symbols (comma-separated). A single symbol returns one indicators object; multiple symbols return a paginated batch plus per-symbol errors.

输入参数limitrange必填cursorfieldssymbols必填interval必填

get_indices

World Market Indices

Get world market indices (S&P 500, DAX, Nikkei, etc.), optionally filtered by region.

输入参数fieldsregion必填

get_industry

Industry Overview

Get comprehensive industry data (overview, performance, top companies) for a specific industry slug.

输入参数langfieldsindustry必填

get_key_metrics_ttm

Key Metrics (TTM)

Get trailing-twelve-month key metrics for a symbol.

输入参数fieldssymbol必填

get_market_calendar

Market-Wide Event Calendar

Get a market-wide event calendar over a date range: earnings, IPOs, dividends, splits, economic releases, market holidays, or live exchange open/closed status. Unlike get_calendar (per-symbol), this spans the whole market.

输入参数tofromkind必填fields

get_market_hours

Market Hours

Get current market hours and open/closed status for a region.

输入参数fieldsregion必填

get_market_summary

Market Summary

Get market overview with major indices and currencies for a region.

输入参数langfieldsregion必填

get_news

Stock and Market News

Get recent news. If a symbol is provided, returns news for that stock; otherwise returns general market news.

输入参数langlimitcursorfieldssymbol

get_options

Options Chain

Get the options chain for a symbol. Provide an expiration timestamp to get a specific expiry, or omit for the nearest expiration.

输入参数limitcursorfieldssymbol必填expiration

get_press_releases

Company Press Releases

Get a company's own press releases, distinct from get_news (press coverage). Routes through EDGAR 8-K exhibits, falling back to FMP/Alpha Vantage when configured.

输入参数limitfieldssymbol必填

get_price_target_consensus

Price Target Consensus

Get a stock's consensus analyst price target (high/low/mean/median).

输入参数fieldssymbol必填

get_price_target_summary

Price Target Summary

Get analyst price-target counts and averages per window (FMP only, requires FMP_API_KEY).

输入参数fieldssymbol必填

get_protocol_tvl

DeFi Protocol TVL

Get a DeFi protocol's total value locked and per-chain split (DefiLlama, keyless).

输入参数id必填fields

get_protocol_tvl_history

DeFi Protocol TVL History

Get a DeFi protocol's TVL history, oldest first (DefiLlama, keyless).

输入参数id必填limitcursorfields

get_quote

Stock Quote

Get current quote and company data (price, market cap, PE ratio, 52-week range, etc.) for one or more stock symbols (comma-separated). A single symbol returns one quote object; multiple symbols return a paginated batch of quotes plus per-symbol errors.

输入参数langlimitcursorfieldssymbols必填

get_rating_consensus

Analyst Rating Consensus

Get a stock's consensus analyst rating rollup (strong buy/buy/hold/sell/strong sell counts and a headline consensus label).

输入参数fieldssymbol必填

get_ratios_ttm

Financial Ratios (TTM)

Get trailing-twelve-month financial ratios for a symbol.

输入参数fieldssymbol必填

get_recommendations

Similar Stocks

Get similar stock recommendations and analyst ratings for a symbol.

输入参数limitfieldssymbol必填

get_risk

Risk Analytics

Get risk analytics: VaR (95/99%), Sharpe/Sortino/Calmar ratios, beta, and maximum drawdown for a symbol.

输入参数range必填fieldssymbol必填interval必填benchmark

get_risk_factors

Filing Risk Factors

Get risk factors extracted from a symbol's SEC filings. Routes through EDGAR (best-effort HTML extraction) or Polygon when configured.

输入参数fieldssymbol必填

get_sector

Sector Overview

Get comprehensive sector data (overview, performance, top companies, ETFs) for one of the 11 GICS sectors.

输入参数langfieldssector必填

get_sector_pe

Sector P/E Ratios

Get price/earnings ratios by market sector, provider-routed (Yahoo screener fan-out, keyless).

输入参数fields

get_sector_performance

Sector Performance

Get aggregate performance for every market sector, provider-routed (Yahoo screener fan-out, keyless). Distinct from get_sector (per-sector Yahoo-only shortcut).

输入参数fields

get_sector_performance_history

Sector Performance History

Get sector performance per session, most recent first.

输入参数limitfields

get_short_volume

Short-Sale Volume

Get daily FINRA short-sale volume for a symbol (keyless).

输入参数limitcursorfieldssymbol必填

get_spark

Price Sparklines

Get lightweight close-price sparklines for multiple symbols. Faster and smaller than get_charts — use when you only need price direction/trend across many symbols.

输入参数range必填fieldssymbols必填interval必填

get_splits

Stock Split History

Get historical stock split history for a symbol.

输入参数range必填fieldssymbol必填

get_symbol_details

Symbol Reference Details

Get reference detail for one symbol (name, exchange, SIC code, employees, list date).

输入参数fieldssymbol必填

get_transcripts

Earnings Call Transcripts

Get earnings call transcripts for a company. Returns paragraph-by-paragraph text (speaker, timestamp, text), paginated via paragraph_limit/paragraph_cursor since a full call can be tens of thousands of tokens.

输入参数langlimitfieldssymbol必填paragraph_limitparagraph_cursor

get_treasury_auctions

Treasury Auction Results

Get US Treasury securities auction results (bid-to-cover ratio, high yield or discount rate, and the primary-dealer/direct/indirect bidder split), newest first. Set upcoming=true for the announced schedule of auctions not yet held. No API key required.

输入参数tofromcountlimitcursorfieldsupcomingsecurity_termsecurity_type

get_treasury_yields

Treasury Yield Curve

Get US Treasury yield curve data (1m through 30y) for a given year. No API key required.

输入参数yearlimitcursorfields

lookup

Ticker Lookup by Type

Discover tickers filtered by type (equity, ETF, mutual fund, index, future, currency, cryptocurrency).

输入参数langlogoquery必填fieldsquery_type必填

screener

Stock Screener

Get results from a predefined stock screener (e.g., most-actives, day-gainers, undervalued-growth-stocks).

输入参数countfieldsscreener_type必填

版本历史

1
  1. v3.4.0最新Nov 19, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Finance 集成