Skip to main content
Glama
yieldterminal-mcp

yieldterminal-mcp

yieldterminal-sec-data

Quarterly revenue, net income and diluted EPS read from companies' SEC results filings, with the filing link and cross-check flags on every figure. This repository holds runnable examples for the YieldTerminal Pro Earnings Data API, the MCP connector setup, a copy of the OpenAPI spec and a small reproducible study on the free archive sample.

openapi.json here is a copy taken on 2026-11-26 (spec version 2026-11-26). The live file at https://yieldterminalpro.com/openapi.json is canonical; if they differ, trust the live one.

Educational data, not investment advice.

Client libraries

  • Python: clients/python (package yieldterminal), pip install yieldterminal once it is on PyPI.

  • JavaScript / TypeScript: clients/node (package yieldterminal), zero dependencies.

  • MCP server for Claude, Cursor and other AI agents: mcp/ (npm yieldterminal-mcp), npx -y yieldterminal-mcp. Free sample with no key.

  • VibeWright public-records MCP server (data centers, utility rates, contractors, nonprofits, wages): vibewright-mcp/ (npm vibewright-mcp), npx -y vibewright-mcp.

Both are MIT licensed (see each folder's LICENSE). The MIT licence covers the code in this repository, not the data the API returns; data use is governed by https://yieldterminalpro.com/terms .

Related MCP server: Agent Signals MCP

What the data is

  • Source. For each company results filing on SEC EDGAR (Form 8-K Item 2.02 for a U.S. filer, Form 6-K for a foreign filer), code reads the quarter's revenue, net income and diluted EPS from the release itself. No analyst estimates are involved, so nothing is labelled a beat or a miss.

  • Withholding rule. A figure is published only when the number in the release's financial table agrees with a second source: the release's own text, or the figures the company filed with the SEC for this quarter and the year-ago quarter. For a U.S. filer, revenue and net income must also match SEC data (this quarter's 10-Q or the year-ago quarter). Anything that fails is withheld. A withheld figure is blank (or absent in JSON), never zero.

  • Links. Every result carries source_url, the release on SEC.gov, and the accession number.

  • 10-Q re-check. When the 10-Q arrives, the figure is compared again. ..._matches_10q = true means it matched; false means not checked yet or no 10-Q exists (fiscal Q4 goes in the 10-K), never that the 10-Q disagrees: a figure the 10-Q contradicts is withheld or taken down.

  • History. Company responses also carry up to 20 quarters of revenue, net income and diluted EPS from the company's own XBRL data (10-Q and 10-K), as first reported, with later restatements marked separately. Most companies' history starts in 2021.

  • Outlook changes. Outlook (guidance) figures in a release next to the same figure in the company's previous release, with both sentences and both SEC links, for releases filed from 2026-10-06 on.

  • Coverage. Results filings in five earnings-season windows: Oct 1 to Nov 21, 2025; Jan 12 to Mar 13, 2026; Apr 13 to May 22, 2026; Jul 13 to Aug 21, 2026; and from Oct 1, 2026 on. It is the releases the parser could read, not every company that reported.

How it is checked, in numbers

I publish the counts at https://yieldterminalpro.com/accuracy, rebuilt from the published data on each site build; the raw numbers are at https://yieldterminalpro.com/data/accuracy.json. The figures below are from the build of 2026-11-27T01:00:20Z (filings dated 2025-10-01 to 2026-11-25). They move with every build.

15,819 results filings (14,439 Form 8-K, 1,380 Form 6-K) from 4,103 companies. Of 47,457 possible figures (three per filing), 37,526 were published (79.1%) and 9,931 withheld.

Figure

Published

Withheld

Matches the later 10-Q (of checkable)

Awaiting re-check

Year-ago matches SEC

Revenue

11,900 (75.2%)

3,919

9,467 of 10,824 (87.5%)

98

10,753 (90.4%)

Net income

13,231 (83.6%)

2,588

10,954 of 12,282 (89.2%)

79

12,220 (92.4%)

Diluted EPS

12,395 (78.4%)

3,424

10,269 of 11,646 (88.2%)

162

not checked

  • Across all three figures, 30,690 published figures match the 10-Q: 81.8% of everything published, 88.3% of the figures a 10-Q check can cover (U.S. filers reporting in U.S. dollars).

  • Published figures the 10-Q contradicts: 0. That is zero by construction, not a measured error rate: a figure whose 10-Q value differs is withheld before publication or taken down during the 45-day re-check window.

  • What the accuracy page does not measure: whether the company's own numbers are right (if a release and its 10-Q share an error, so does this data), releases the parser did not read, and any comparison with another vendor.

To see the current numbers yourself:

curl -s https://yieldterminalpro.com/data/accuracy.json | python -m json.tool | head -60

Quick start (no key)

The sample endpoint returns real responses in the same format as the paid API, with no key: the company endpoint for NVDA, WMT, TJX, HD and TGT, and the first three results of the latest filing day or outlook rows of the latest outlook day. It is cached for 5 minutes and CORS is open.

BASE=https://yieldterminalpro.com/api/apps/6a44fce3122251d9ebac82ed/functions
curl -s "$BASE/data-sample?ticker=NVDA"          # one company: releases + SEC history
curl -s "$BASE/data-sample?endpoint=results"     # latest filing day, first 3 results
curl -s "$BASE/data-sample?endpoint=outlook"     # latest outlook day, first 3 rows
curl -s "$BASE/data-status"                      # data freshness

Python (standard library only):

import json, urllib.request

BASE = "https://yieldterminalpro.com/api/apps/6a44fce3122251d9ebac82ed/functions"
req = urllib.request.Request(f"{BASE}/data-sample?ticker=NVDA", headers={"User-Agent": "my-script/1.0"})
co = json.load(urllib.request.urlopen(req, timeout=30))
for r in co["results"]:
    print(r["filed"], r.get("revenue_text") or "withheld", r.get("net_income_text") or "withheld", r["source_url"])

JavaScript (Node 18+ or a browser):

const BASE = "https://yieldterminalpro.com/api/apps/6a44fce3122251d9ebac82ed/functions";
const co = await fetch(`${BASE}/data-sample?ticker=NVDA`).then((r) => r.json());
for (const r of co.results) console.log(r.filed, r.revenue_text ?? "withheld", r.net_income_text ?? "withheld", r.source_url);

Full runnable versions are in examples/:

python examples/python/quickstart.py
node examples/js/quickstart.mjs
bash examples/curl.sh

Each runs the no-key calls, then the keyed calls only if YT_API_KEY is set.

With a key

Get a key at https://yieldterminalpro.com/developers (the free key takes an email address). Put it in an environment variable rather than in code; the examples read YT_API_KEY and send it in the x-api-key header. (?key= in the address still works but is deprecated, because addresses end up in logs.)

export YT_API_KEY=ytp_your_key_here
curl -s -H "x-api-key: $YT_API_KEY" \
  "https://yieldterminalpro.com/api/apps/6a44fce3122251d9ebac82ed/functions/data-api?endpoint=company&ticker=AAPL"

endpoint=

Parameters

Returns

results

date=YYYY-MM-DD (optional)

Every published result filed that day (default: latest filing day).

company

ticker=

The company's latest results and up to 20 quarters of SEC history.

outlook

date= or ticker= (optional)

Outlook figures next to the same figure in the previous release.

levels

ticker= or date= (optional)

Dated chart levels published on the site and their tracked outcomes.

capex

ticker= (optional)

The AI spenders capex board, from 10-Q and 10-K XBRL data.

scorecard

season= (optional)

Reported quarter vs the company's own prior outlook for it.

13f

ticker=

Which of the 19 tracked managers reported the ticker's shares in their latest 13F filings vs the quarter before (free key: the 10 sandbox tickers only).

updates (Pro)

since= ISO time

Results first published, corrected or withdrawn since then.

archive (Pro)

after=<accession> (optional)

Every published result, 1,000 per call.

Full reference: openapi.json (live: https://yieldterminalpro.com/openapi.json) and https://yieldterminalpro.com/developers.

MCP connector (Claude, Cursor, VS Code and other MCP clients)

A remote MCP server at https://yieldterminalpro.com/api/mcp, over HTTPS with OAuth 2.0 sign-in. It is free; the first tool call opens a YieldTerminal sign-in (or free account creation) in your browser. Setup and the tool list: https://yieldterminalpro.com/connector.

Claude Code:

claude mcp add --transport http yieldterminal https://yieldterminalpro.com/api/mcp

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "yieldterminal": {
      "url": "https://yieldterminalpro.com/api/mcp"
    }
  }
}

VS Code (.vscode/mcp.json):

{
  "servers": {
    "yieldterminal": {
      "type": "http",
      "url": "https://yieldterminalpro.com/api/mcp"
    }
  }
}

Claude (app): Settings, then Connectors, then Add custom connector; name it YieldTerminal and paste the server address. Tools: get_earnings_results, get_company_history, get_outlook_changes, get_sec_filings, check_trading_rule, get_published_levels, and subscribe_to_sunday_recap (which signs up only the signed-in account's own email, and only after you say yes). Every answer carries the quoted sentence and the SEC.gov link.

Free downloads

Study

studies/ has first_reported_vs_restated.py, which downloads the archive sample, verifies it against its manifest, and compares first-reported figures with later filings. Short version: in the sample, no revenue, net income or EPS figure was restated; the only 3 flagged rows are NVDA share counts changed by a share split; and all 32 release figures with a matching XBRL figure equal it. The sample is too small to say anything about the full archive. Full output in studies/README.md.

Notebook: point-in-time earnings backtest

Open In Colab

notebooks/point-in-time-earnings-backtest.ipynb shows on real data how restated fundamentals leak future information into an earnings backtest, and how figures "as first reported", keyed to their filing date, fix it. For 30 large U.S. companies it pulls single-quarter revenue and net income from the free data.sec.gov companyconcept JSON, compares each quarter's first-reported value with the latest one, ranks the companies each quarter on year-over-year revenue growth both ways, and ends with the yieldterminal client (first-reported history with filing links, and a withheld figure).

In the snapshot retrieved on 2026-11-27: 132 of 2,153 company-quarter values (6.1%) changed after they were first reported, at 15 of the 30 companies; the revenue-growth ranking differed in 28 of 42 quarters. There are no returns and no strategy in it, only the inputs. The pulled data and the results are frozen as CSV in notebooks/data/, so it runs top to bottom without network access; set PIT_REFRESH=1 to pull everything again.

Pricing

Free key $0 (100 calls a day, personal non-commercial use: results and outlook rows from the last 30 days, full history for AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT and KO); Developer $29 a month (1,000 calls a day, every filing day, 13F endpoint for every ticker, personal and internal use); Pro $99 a month (20,000 calls a day, updates and archive endpoints, commercial display with attribution). The full historical archive is a one-time download, $49 personal or $149 commercial. The CSV and the sample are free. Current details: https://yieldterminalpro.com/developers and https://yieldterminalpro.com/dataset.

Licence and terms

  • Code in this repository: MIT, see LICENSE.

  • Data returned by the API, the connector and the downloads is not covered by the MIT licence. It is under the site's terms: https://yieldterminalpro.com/terms. The free CSV may be used in research, articles, classes, apps and AI tools, naming YieldTerminal Pro as the source with a link to yieldterminalpro.com. The archive sample is free to use for evaluating the archive. API keys and the paid archive carry the plan or licence terms on /developers and /dataset; none of them allow reselling or redistributing the raw data as a dataset.

  • Attribution: "Source: YieldTerminal Pro (yieldterminalpro.com), read from SEC EDGAR filings."

  • The data is provided as is, with no warranty. The parser can be wrong: open source_url and read the filing before relying on a number. If you find an error, write to yieldterminalpro@gmail.com and I will fix it.

Educational data, not investment advice.

Available Tools

16 tools
get_13f_holdersGet 13F HoldersA
Read-onlyIdempotent

Which tracked fund managers reported holding a ticker in their latest Form 13F filings, versus the quarter before, with the SEC filing links. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: ticker (required).

get_capital_returnsGet Buybacks, Dividends and DilutionA
Read-onlyIdempotent

Per-quarter share counts and their year-on-year change, stock-based compensation, buybacks, dividends paid and dividends per share from SEC XBRL, as first reported, each with its accession number. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: ticker (required).

get_company_historyGet Company HistoryA
Read-onlyIdempotent

One company's checked results releases plus up to 20 quarters of revenue, net income and diluted EPS from its 10-Q and 10-K XBRL data, as first reported (later restatements marked separately). Read from the company's own SEC EDGAR filings; every row carries the SEC.gov filing link and accession number. Without a key: NVDA, WMT, TJX, HD, TGT only. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: ticker (required).

get_datacenter_projectsGet US Data Center ProjectsA
Read-onlyIdempotent

US data center projects named in a primary record (county or city record, state agency, utility-commission filing, court record, company release or SEC filing; news alone never adds one), filtered by state, county or city, company, ticker or status. Each field carries a check tier and its sources; announced MW has a stated basis (IT vs utility load). Free, no key; at most 25 per call. Source: VibeWright.

Inputs: limit, state, county, status, +2 more.

get_data_statusGet Data StatusA
Read-onlyIdempotent

Data freshness (latest filing day and update time), whether an API key is configured (the key itself is never shown), what works without one, and where to get a free key or top up credits. Uses no credits.

Inputs: no named parameters.

get_earnings_resultsGet Earnings ResultsA
Read-onlyIdempotent

Quarterly revenue, net income and diluted EPS from every results release (Form 8-K Item 2.02 or 6-K) filed on one day. A figure is published only when the release's table agrees with a second source (its own text or the company's SEC filings); otherwise it is withheld (absent), never zero. *_matches_10q shows the later 10-Q agreed. Read from the company's own SEC EDGAR filings; every row carries the SEC.gov filing link and accession number. No analyst estimates, so no beat/miss labels. Without a key: the first 3 results of the latest filing day. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: date.

get_insider_tradesGet Insider Trades (Form 4)A
Read-onlyIdempotent

Form 4 and 4/A rows filed for a company in the last 365 days: insider, role, transaction code and label, shares, price, value, shares owned after, the 10b5-1 plan flag and the SEC filing link, plus a 90- and 365-day summary of open-market purchases (code P) and sales (code S). Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: ticker (required).

get_large_load_rulesGet Large-Load Tariff RulesA
Read-onlyIdempotent

Utility large-load (data center) tariffs, settlements, commission rules and statutes by state or utility: MW threshold, minimum demand charge, contract term, ramp, exit fee, collateral and cost responsibility, each with its check tier and the official sources (commission dockets, tariff sheets). Free, no key; at most 25 per call. Source: VibeWright.

Inputs: limit, state, status, utility, +1 more.

get_material_events_8kGet Material 8-K EventsA
Read-onlyIdempotent

Form 8-K filings in which a company reported Item 1.01 (entry into a material definitive agreement), 1.02 (termination of one), 1.03 (bankruptcy or receivership), 1.05 (a material cybersecurity incident) or 5.07 (shareholder vote results), by ticker or by filing day or range. Each row: ticker, CIK, accession, filed date, the items, the SEC link and the item's first sentence quoted. Item fields are copied from the filing text or are keyword matches: agreement names and the parties after "entered into ... with" (1.01/1.02), court and chapter (1.03), dates, the discovery and impact sentences and the first 1,500 characters (1.05), and the vote tables with every cell as filed (5.07). Nothing is characterised beyond what the filing says. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: to, date, from, item, +1 more.

get_outlook_changesGet Outlook (Guidance) ChangesA
Read-onlyIdempotent

Outlook figures a company gave in a results release next to the same figure in its previous release (raised, cut or held), with both sentences quoted and both SEC links. By ticker or by filing day. Without a key: the first 3 rows of the latest outlook day. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: date, ticker.

get_ownership_stakesGet 13D/13G Stakes and Form 144 NoticesA
Read-onlyIdempotent

Big holders and insider intent for a company from the last 365 days: Schedule 13D and 13G filings and amendments (filer, event date, percent of class and shares as reported, 13D purpose excerpt), Form 144 notices of proposed sales (seller, relationship, broker, shares and value; a notice, not a completed sale) and NT 10-K / NT 10-Q late-filing notices, each with the SEC link. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: ticker (required).

get_risk_factor_changesGet 10-K Risk-Factor ChangesA
Read-onlyIdempotent

Item 1A risk-factor headings added, removed and reworded between a company's latest two Form 10-K filings, quoted word for word, with both SEC links. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: ticker (required).

get_sec_filingsGet SEC 8-K EventsA
Read-onlyIdempotent

Form 8-K filings in which a company reported Item 5.02 (officer or director changes), 2.03 (a new debt obligation), 2.04 (an accelerated obligation), or (with item=) 1.01, 1.02, 1.03, 1.05 or 5.07, by ticker or by filing day or range, with the SEC link and the item's first sentence quoted. Role, action and amount fields are keyword matches on the filing text. For agreements, bankruptcy, cybersecurity incidents and votes, get_material_events_8k is the focused tool. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: to, date, from, item, +1 more.

get_shares_outstandingGet Shares Outstanding and Public FloatA
Read-onlyIdempotent

Shares outstanding (dei:EntityCommonStockSharesOutstanding, with the as-of date the company gives) and public float (dei:EntityPublicFloat, the U.S. dollar figure the company reports on its 10-K cover) exactly as reported on the cover pages of the company's own 10-K and 10-Q filings, with the full history and each filing's SEC link. Companies that report share classes separately get one figure per class, never added together. Nothing is computed from market prices. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: ticker (required).

get_subsidiariesGet Subsidiaries (Exhibit 21)A
Read-onlyIdempotent

The subsidiary list a company filed as Exhibit 21 to its latest Form 10-K: each name and jurisdiction as written in the exhibit, with the exhibit URL, the 10-K filing date and accession. Companies may omit subsidiaries that are not significant, so this is the list as filed. Needs YIELDTERMINAL_API_KEY (free key: sandbox tickers AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT, KO; credit pack: any ticker, 1 credit per successful call).

Inputs: ticker (required).

get_upcoming_hearingsGet Upcoming Data Center HearingsA
Read-onlyIdempotent

Scheduled public hearings, votes and commission conferences on US data centers (county and city boards, planning commissions, utility commissions, state agencies) from official agendas, legal notices and docket calendars, with how to comment where the body says so. Free, no key. Source: VibeWright.

Inputs: limit, state, days_ahead.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 16 tools

    Disambiguation4/5

    Most tools map to a clearly distinct SEC filing type (Form 4, Exhibit 21, 13D/13G, 13F, 10-K risk factors), and the descriptions explicitly cross-reference where they border each other. The main ambiguity is get_sec_filings vs get_material_events_8k, which both cover 8-K Items 1.01/1.02/1.03/1.05/5.07, plus partial overlap between get_earnings_results and get_company_history on quarterly revenue/net income/EPS. The descriptions do resolve these ('get_material_events_8k is the focused tool'), keeping misselection manageable but not impossible.

    Naming Consistency5/5

    All 16 tools follow a uniform snake_case get_<resource> pattern with no camelCase or verb-style deviations. Names are readable and each noun phrase reflects its data source or concept.

    Tool Count4/5

    16 tools is slightly above the comfortable band but each corresponds to a genuinely different filing type or dataset, so nothing feels padded. The two free VibeWright tools plus get_data_status round out the set without redundancy.

    Completeness4/5

    Coverage of SEC filing-derived fundamentals is broad (earnings, history, capital returns, ownership, insider activity, risk factors, subsidiaries, 8-K events) and there is a status/diagnostics tool. Gaps remain for full financial statements beyond revenue/net income/EPS (no balance sheet or cash flow), price/market data, and filings such as S-1/proxies, but these are outside the apparent filing-data focus and mostly workaroundable.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Self-hosted financial data terminal for AI agents. Scrapes and serves SEC filings (full-text search), 13F institutional holdings, insider and congressional trades, FINRA short data, FRED economic indicators, CFTC futures positioning, VIX/put-call ratios, and daily stock prices over MCP.
      65
      249
      AGPL 3.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      One MCP server that gives AI agents nine live data tools — company hiring signals, SEC filings, academic papers, GitHub repos, Hacker News, Stack Overflow, clinical trials, Federal Register, and global news — all as flat, citation-ready JSON with pay-per-result billing.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Wall Street data feed for AI agents, providing access to 100M+ source-traced SEC records, institutional holdings, insider trades, congress trading, and more via MCP tools.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides structured US SEC/EDGAR filing data, including filings index, XBRL-derived earnings, and Form 4 insider transactions, as clean JSON via MCP. Supports x402 payments (USDC on Base) and Stripe subscription for access.
      MIT