marketdata-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FINVIZ_TIMEOUT | No | HTTP timeout in seconds for finviz.com requests. | 25 |
| FINVIZ_CACHE_TTL | No | Scraped-page cache lifetime in seconds. | 30 |
| FINVIZ_CHART_DIR | No | Directory where chart PNG files are written. | ~/.marketdata-mcp/charts |
| MARKETAUX_API_TOKEN | No | API token that enables news and sentiment data from the TradingView leg. | |
| MARKETDATA_HEALTH_TTL | No | Seconds a cached health verdict is reused. | 60 |
| MARKETDATA_HEALTH_STATE | No | Path to the health baseline state file. | ~/.marketdata-mcp/health_state.json |
| MARKETDATA_HEALTH_ENABLED | No | Turn the upstream drift monitor on or off. | true |
| MARKETDATA_HEALTH_INTERVAL | No | Seconds between background health probe rounds. | 300 |
| TRADINGVIEW_MCP_MIN_INTERVAL_S | No | Minimum spacing in seconds between TradingView scanner requests. | 0.25 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Market data from multiple independent providers (TradingView, Finviz, Yahoo Finance, StockAnalysis and Bloomberg), each fetched natively and asked in parallel where their definitions permit comparison. Equibles supplies separate authenticated fundamental and licensed-data tools; its fields are never merged with another provider. Every tool result includes data_provider, one of ALL, TRADINGVIEW, FINVIZ, YAHOO, SA, BLOOMBERG, EQUIBLES or NONE.
HOW TO READ IT:
ALL: every provider that was asked answered. This is COVERAGE, not agreement. Check
comparisonsfor whether the readings match, andproviders_answeredfor exactly which providers contributed.TRADINGVIEW, FINVIZ, YAHOO, SA, BLOOMBERG or EQUIBLES: only that provider had the data. You MUST tell the user this figure is single-source and not cross-verified.
EQUIBLES: retain the exact 'Data by Equibles' attribution,
as_of, freshness andreporting_delayfields with the observation. Historically reported values are not live. TAPEBASIS_EQUIBLES_API_KEY is the only local configuration; a 401 meansauth_rejectedand a 403 meansPLAN_REQUIRED, never an invented empty result.accesscan be configured, not_configured, auth_rejected, plan_required or partially_available. Provider ratings, squeeze scores and AI briefs are source claims, not Tapebasis analysis.BLOOMBERG readings can be structurally older: its equity and index quotes are exchange-delayed (typically 15 minutes). Check
exchange_delayandprint_timebefore calling such a price live, and relay anot_comparablereason instead of calling it a provider disagreement.SA is StockAnalysis. It covers US equities and ETFs only (no indices, FX, crypto, commodities or foreign listings), and its quote surface is the same consolidated tape Yahoo serves, so SA/YAHOO agreement is weak corroboration, not two independent witnesses.
NONE: no primary value; do not invent one. A separate
newsblock may still have its own coverage.
Symbol news comes only from TradingView's licensed Marketaux feed, Finviz and Yahoo Finance; StockAnalysis, Bloomberg and Equibles have no symbol-news adapter here. News-bearing calls return the newest 10 real unique stories by default. Each story's consensus requires multiple providers and means provider corroboration, not independent editorial verification. Read news.data_provider, news.providers_answered and news.errors for news coverage. In sentiment and editorial calls the top-level label describes only the primary leg.
Only one value is ever returned per compared field (the newest market print). Every provider's raw reading stays in comparisons, and disagreements are named in notice, never silently resolved. Fields that could not be judged are reported as not_comparable with the reason instead of being called a disagreement: the prints describe different sessions, one is past the staleness ceiling, or the field has no shared definition at all (an FX day change, since spot FX has no single official previous close). Symbols are resolved per provider, so XAUUSD reaches TradingView as OANDA:XAUUSD while Yahoo, Finviz and StockAnalysis report that they do not carry it; resolutions records how each ticker was derived.
Per-field provenance is in fields: source names the one provider for a compared value. For merged news, source is null and coverage plus supplied names the independent news coverage. compared holds providers actually judged, agreement the cross-check result. Raw side-by-side values live in comparisons, and provider failures in errors. If degraded is true or warnings names an upstream change, relay that warning: the provider health monitor detected an API/schema change or outage. Call tapebasis_health for details and for per-provider rate-limit state.
TOOLS: stock_quote, stock_prices, stock_screener, market_indices, stock_news, stock_options_chain, stock_earnings, stock_extended_hours, technical_analysis, stock_fundamentals, stock_analyst_estimates, stock_ownership_flows, stock_short_positioning, stock_options_analytics, stock_price_history (Equibles; options require Plus or Pro, access is decided by the actual API response), stock_filings, stock_ownership, stock_peers, stock_why_moving, stock_chart, stock_dilution, stock_screener_filters, crypto_*, futures_*, stock_backtest*, equibles_company, equibles_filings, equibles_investor_events, equibles_ownership, equibles_institutions, equibles_positioning, equibles_options, equibles_market_data, equibles_funds, equibles_macro, equibles_market_context, equibles_public_policy, equibles_international and equibles_crypto. Each grouped Equibles tool accepts an exact dataset and documented filters from tapebasis_tool_map, makes one GET, never auto-paginates and never falls back to another provider. Raw option contracts use equibles_options(dataset='chain'). Account-owned portfolios, custom-data/tracker routes and binary files are excluded; institution-copy backtests and direct two-institution portfolio comparison remain MCP-only.
market_snapshot, market_sentiment, egx_market_overview, combined_analysis, bloomberg_quote, bloomberg_markets, tapebasis_health, tapebasis_tool_map.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| stock_quoteA | Quote and fundamentals for one instrument, asked of every capable provider. Each provider is asked independently and natively: TradingView's scanner,
Finviz's quote page, Yahoo's chart API, StockAnalysis's quote API,
Investing's native search and identity-verified quote page, and Bloomberg's
quote page, in parallel. Nothing proxies another, so the
cross-check is real. Price, change, previous close, the session's own
open/high/low, the 52-week range, P/E, RSI, volume and the average analyst
target are compared field by field; Finviz's deeper fundamentals, the
84-field snapshot, the
revenue/segment breakdown, company profile, peers and after-hours print,
ride along, each labelled with the provider that supplied it. A field that
cannot be shown to describe the same observation is reported as
Bloomberg's prints can be structurally older than a live feed's
( StockAnalysis covers US equities and ETFs only. Its quote surface is the
same consolidated tape Yahoo serves, so agreement between those two is weak
corroboration rather than two independent witnesses; that is stated in the
docs and in the single-source notice. Indices, FX, crypto and foreign
listings resolve to "not carried" for that leg, which is recorded as
Symbols are resolved dynamically per provider, so Args:
symbol: Anything the instrument is commonly called ( Returns:
Envelope whose |
| stock_pricesA | Prices for several instruments at once, from every provider that carries them. Each ticker is resolved per provider and looked up natively: TradingView's
scanner, Finviz's screener, Yahoo's chart API, StockAnalysis's quote API,
Bloomberg's quote page and Investing.com's native search and verified quote
page. The per-row Args:
tickers: Comma-separated symbols, e.g. Returns:
Envelope whose |
| stock_screenerA | Run the US stock screener on both providers and cross-check the rows. TradingView ranks the entire market server-side ( The cross-check is only meaningful if both providers describe the same instruments. Finviz is therefore asked about the tickers TradingView ranked, not for an independent ranking of its own: comparing a market-cap ranking against a day-%-change ranking yielded zero overlapping rows on every call, so the "multi-source" screener was silently single-source. Args:
country: TradingView market ( Returns:
Envelope with |
| market_indicesA | Level and day change for the major US indices, asked of every capable provider. Covers the fixed snapshot list ( Returns:
Envelope whose |
| stock_newsA | Latest 10 stories for one ticker, merged across every news provider. Finviz supplies price reactions around an item, Yahoo supplies its search
feed and TradingView supplies its licensed Marketaux feed. The feeds are
deduplicated and ordered by publication time, so Finviz no longer hides
Yahoo's more recent headlines. Each story names its providers, their exact
alternate headlines and Args: symbol: Ticker. limit: Maximum unique stories returned, default 10 and capped at 50. include_reactions: Ask Finviz for price-reaction columns. Returns:
Envelope whose |
| stock_options_chainA | Multi-source options chain for one expiry. Finviz and Yahoo both publish a chain; contracts are matched by side, expiry and strike, then their volume and open interest are compared, so an agent can see whether the two chains agree on open positioning. TradingView has no chain, but its scanner independently quotes the underlying the contracts are priced against. Args:
symbol: Underlying ticker.
expiry: Returns:
Envelope with |
| stock_earningsA | Earnings calendar and history for one ticker. Finviz owns the detailed tables (reported quarters, estimate revisions,
fundamental series, post-earnings reactions); TradingView's scanner confirms
the next/last earnings timestamp from its own calendar. Yahoo supplies the
next scheduled date on its own feed. The dates are reported; Finviz's last
reported quarter never becomes Args: symbol: Ticker. When Returns:
Envelope with |
| stock_extended_hoursA | Pre-/post-market and overnight prices, with per-session comparisons. Finviz exposes the after-hours print on the quote page; Yahoo derives pre/regular/post prices from its own 1-minute candles; TradingView's scanner carries its own pre/post prints; StockAnalysis returns an extended-hours block next to the regular quote. Only like pre/post sessions with usable print times are compared, and every raw reading and session block is returned. Args: symbol: Ticker. Returns:
Envelope with |
| technical_analysisA | Multi-indicator technical analysis, price cross-checked across providers. TradingView computes the full indicator stack (RSI, MACD, EMAs, Bollinger, ATR, ADX, structure, trade setup). Finviz's snapshot and Yahoo's chart API independently provide price, RSI(14), ATR(14) and volume, which are compared here, so the numbers the analysis is built on are corroborated rather than taken on trust. The TradingView leg uses its resolved symbol and venue, never a bare ticker redirected by the caller's default exchange. Args:
symbol: Ticker.
exchange: TradingView exchange prefix ( Returns:
Envelope whose |
| stock_filingsA | SEC filing history for a ticker (Finviz-only, single-source). TradingView has no filing feed, so this capability cannot be cross-verified.
The response is labelled Args:
symbol: Ticker.
page: 1-based page.
page_size: Rows per page (1-100).
forms: Optional SEC form filter, e.g. Returns:
Envelope with the filing rows plus |
| stock_ownershipA | Insider trades, institutional holders and short interest. Finviz supplies the Form-4 insider transactions with monthly buy/sell aggregates, institutional positions and FINRA short-interest history. Those tables are Finviz-only: no other provider's filing population is treated as the same ownership observation. With Args: symbol: Ticker. limit: Max rows per table. Returns:
Envelope labelled |
| stock_peersB | Finviz peer group for a ticker (Finviz-only, single-source). Args: symbol: Ticker. limit: Maximum peers. Returns:
Envelope labelled |
| stock_why_movingA | Finviz's own explainer plus the latest 10 stories for a ticker. The editorial headline, summary, sentiment and catalyst remain Finviz-only.
Args: symbol: Ticker. Returns:
Envelope labelled |
| stock_chartA | Rendered PNG candlestick chart for a ticker (Finviz-only). TradingView's provider computes charts as text analysis, not images, so a PNG is Finviz-only and labelled as such. Args:
symbol: Ticker.
period: Returns:
Envelope labelled |
| stock_dilutionA | Dilution-risk model: share count, float and cash runway (Finviz-only). Finviz only builds this model for companies whose share count it considers
dilution-prone, so a large cap legitimately has none. When that happens the
response is Args: symbol: Ticker. Returns:
Envelope labelled |
| stock_screener_filtersB | Finviz's full screener filter catalogue (Finviz-only). Returns:
Envelope labelled |
| crypto_top_moversA | Top crypto gainers or losers on an exchange (TradingView-only). Args:
movement: Returns:
Envelope labelled |
| crypto_bollinger_scanA | Bollinger-band squeeze candidates (TradingView-only). Args: exchange: TradingView venue. timeframe: TradingView interval. bbw_threshold: Maximum band-width to qualify as a squeeze. limit: Rows to return. Returns:
Envelope labelled |
| crypto_volume_breakoutC | Volume + price breakout scanner (TradingView-only). Args: exchange: TradingView venue. timeframe: TradingView interval. volume_multiplier: Minimum relative volume. price_change_min: Minimum absolute % change. limit: Rows to return. Returns:
Envelope labelled |
| crypto_multi_timeframeB | Multi-timeframe technical read for a crypto symbol (TradingView-only). Args:
symbol: Coin symbol ( Returns:
Envelope labelled |
| crypto_multi_agentC | Multi-agent bull/bear debate over a crypto symbol (TradingView-only). Args: symbol: Coin symbol. exchange: TradingView venue. timeframe: TradingView interval. Returns:
Envelope labelled |
| futures_market_overviewB | Futures contracts ranked by volume (TradingView-only). Args:
category: Returns:
Envelope labelled |
| futures_top_moversB | Futures gainers/losers by percent change (TradingView-only). Args:
movement: Returns:
Envelope labelled |
| futures_watchlistC | Curated futures watchlist with levels (TradingView-only). Returns:
Envelope labelled |
| stock_backtestB | Backtest a strategy on a symbol, using each provider's own history. The history is fetched from TradingView's chart feed and from Yahoo's chart API independently, and the strategy is run on each. The two results are compared metric by metric, if the OHLCV bars differ materially, the backtest is only as trustworthy as the feed it came from, and the response says which one produced the numbers shown. Args:
symbol: Ticker or coin (any instrument either provider quotes).
strategy: One of Returns:
Envelope whose |
| stock_backtest_compareC | Compare every strategy under the returned Args: symbol: Ticker. period: Lookback period. initial_capital: Starting cash. Returns: Envelope with the strategy leaderboard per provider and the winning strategy they agree on (or a stated disagreement). |
| market_snapshotA | Global FX, crypto, index and ETF snapshot from two independent providers. TradingView's scanner and Yahoo's chart API are asked separately, so the groups that both carry (indices, major crypto, FX, ETFs) are genuinely cross-checked. Finviz has no equivalent breadth, so it is not asked. Returns: Envelope grouped by asset class, each group labelled with whether every asked provider answered it. |
| bitcoin_market_pulseC | Bitcoin market health: trend, dominance proxies and volatility. Returns:
Envelope labelled |
| market_sentimentA | News-based sentiment for a symbol, with no API key required. Prefers the licensed Marketaux entity sentiment when The accompanying Args: symbol: Ticker. category: News category (used by the Marketaux path only). limit: Headlines to analyse for sentiment. Returns:
Envelope labelled |
| egx_market_overviewC | Egyptian Exchange overview (TradingView-only). Returns:
Envelope labelled |
| combined_analysisA | Technical analysis, news and sentiment in one call, price cross-checked. Runs the TradingView technical read plus news sentiment, then asks Finviz and
Yahoo independently for the latest price to confirm the value the analysis
was built on. This composite can legitimately return Sentiment needs no API key: Marketaux is used when Args: symbol: Ticker. exchange: TradingView exchange prefix. timeframe: TradingView interval. Returns:
Envelope with |
| bloomberg_quoteA | Bloomberg's own quote page for one instrument (single-source). This tool asks only Bloomberg, so the response is single-source even though
the provider is a full leg of
Args:
symbol: Anything the instrument is commonly called ( Returns:
Envelope labelled |
| bloomberg_marketsA | Bloomberg's market board: index levels, government yields, commodities, FX. The government benchmark yields are the reason this tool exists: no other provider in this server publishes a yield curve. Index, commodity and FX levels ride along as context and are labelled single-source like the rest. The board carries no per-instrument print time, so the response reports
Returns:
Envelope labelled |
| investing_quoteA | Read one exact Investing.com equity or ETF, explicitly single-source.
Investing's Args:
symbol: Equity or ETF ticker, including share-class spellings such as
Returns:
Envelope labelled |
| stock_fundamentalsB | Read Equibles company identity, SEC fundamentals and guidance separately. Args:
symbol: US-listed ticker; share classes may use a dot or dash.
statement: Returns:
Envelope with isolated |
| stock_analyst_estimatesA | Read verified analyst estimates and snapshots without adding a rating. Source metric, period, dimensions, unit, basis, statistic, analyst and numeric string remain as supplied by Equibles. Revision observations are not recast into a score or mixed with another provider's target population. Args: symbol: US-listed ticker. metric: Optional exact upstream metric label. period: Optional exact upstream period label. dimensions: Optional exact upstream dimension labels. snapshot_id: Optional snapshot identifier returned by a previous call. limit: Observation page size, clamped to 1 through 100. offset: Zero-based observation offset, clamped to 0 through 100000. Returns:
Envelope containing the complete Equibles |
| stock_ownership_flowsB | Read separate 13F, N-PORT, insider and Form 144 ownership observations. Args: symbol: US-listed stock or ETF ticker. limit: Cap for each activity, fund, insider and proposed-sale page, clamped to 1 through 500. periods: Number of 13F reporting periods, clamped to 1 through 500. include_insiders: Fetch filed insider transactions when true. include_fund_owners: Fetch current N-PORT fund positions when true. Returns: Envelope with 13F ownership and movement, N-PORT fund ownership, Form 144 proposed sales, and optional insider activity in separate blocks. |
| stock_short_positioningA | Read short, FTD and off-exchange history with an ordinary API key. An account that lacks a dataset receives an explicit provider error; no provider fallback or empty downgrade occurs. Args: symbol: US-listed stock or ETF ticker. limit: Rows per dataset, clamped to 1 through 500. start_date: Optional inclusive ISO date filter. end_date: Optional inclusive ISO date filter. include_fails_to_deliver: Fetch SEC fails-to-deliver balances when true. include_off_exchange: Fetch weekly FINRA ATS and OTC volume when true. Returns: Envelope with unchanged short-interest, short-volume and selected FTD and off-exchange datasets, each retaining its distinct reporting delay. |
| stock_options_analyticsA | Read paid-plan option summary and term structure with an API key. Equibles requires Plus or Pro for option data. Max pain and expected move
remain source calculations, not price forecasts or a new consensus. A Free
account receives Args:
symbol: US-listed optionable stock or ETF ticker.
expiration: Optional Returns: Envelope with separate option summary and term-structure blocks. |
| stock_price_historyA | Read stored Equibles OHLCV with an API key, never as a live quote. Args:
symbol: US-listed ticker.
limit: Bar count, clamped to 1 through 500.
start_date: Optional inclusive ISO session-date filter.
end_date: Optional inclusive ISO session-date filter.
interval: Returns:
Envelope with the complete provider |
| equibles_companyB | Equibles: company fundamentals, disclosures, estimates and valuation Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_filingsC | Equibles: filings, document text and filings search Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_investor_eventsC | Equibles: calls, transcripts, IR materials and IPOs Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_ownershipB | Equibles: disclosed ownership, insiders and supply chains Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_institutionsB | Equibles: institutions and 13F portfolio analytics Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_positioningA | Equibles: short interest, FTD, off-exchange and model scores Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_optionsB | Equibles paid-plan: raw chains, contracts and option analytics Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_market_dataB | Equibles: quotes, price history, intraday bars and technicals Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_fundsA | Equibles: funds, ETFs, portfolios and annual operations Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_macroA | Equibles: FRED, Canadian macro calendars and CFTC positioning Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_market_contextB | Equibles: listings, indexes, sentiment and market context Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_public_policyB | Equibles: congressional disclosures and government contracts Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_internationalB | Equibles: international disclosure and native fund reports Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| equibles_cryptoB | Equibles: crypto directory, quotes and historical bars Args:
dataset: Exact operation listed by Returns:
Single-source EQUIBLES envelope containing the raw JSON under |
| tapebasis_healthA | Probe every upstream and report whether any provider's API drifted. Every other tool reads the cached verdict from this monitor and adds a
warning when a provider's upstream schema has changed or is down. Call this
with Drift is judged on the fields this server actually reads. An upstream that
drops a key nobody looks at is serving every number here correctly and is not
reported as an outage, which is what made every response
The report also carries Args:
refresh: Force fresh probes instead of using the cached verdict.
accept_baseline: Re-record the current shape as the baseline and clear
drift. Probes that are Returns:
Envelope whose |
| tapebasis_tool_mapA | List every tool, which providers back it, and how it is cross-checked. Useful for an agent that needs to know whether a given capability is
multi-source ( |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| providers_resource | Explain what each data_provider value means for a caller. |
| health_resource | Cached provider health verdict (no upstream call). |
TDQS
Scored across 56 tools
Many tools overlap heavily: stock_quote, stock_prices, bloomberg_quote, investing_quote, and equibles_market_data all retrieve quotes, while stock_ownership, stock_ownership_flows, stock_short_positioning, equibles_ownership, and equibles_positioning cover related ownership/short-interest ground. The descriptions explain source-specific differences, but with 56 tools an agent must still choose among several plausible candidates.
Almost all names use consistent snake_case with clear domain prefixes such as stock_, crypto_, futures_, bloomberg_, market_, and equibles_. There are a few deviations like combined_analysis, technical_analysis, bitcoin_market_pulse, and tapebasis_* names, but the overall convention is readable and predictable.
At 56 tools this is far beyond a well-scoped market data surface, and several groups are highly redundant, especially the many equibles_* wrappers and source-specific quote/ownership/options variants. Many capabilities could be consolidated into fewer parameterized tools.
The surface covers an unusually broad market data domain: quotes, multi-price snapshots, screeners, news, options, earnings, extended hours, technicals, filings, ownership, short positioning, fundamentals, macro, crypto, futures, backtesting, and provider health. For the apparent purpose, there are no obvious dead-end gaps.