@pipeworx/sec-fundamentals
Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/sec-fundamentals’s. Install: one-click buttons
Connect to just the @pipeworx/sec-fundamentals pack
https://gateway.pipeworx.io/sec-fundamentals/mcp — only @pipeworx/sec-fundamentals’s own tools, nothing else in the catalog.
No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.
Tools: 4
Point-in-time US public company financials with no look-ahead: what a company’s statements said on a given date, using only values it had filed by then. Also every restatement of a line, and cross-company screens of one concept and one period. Keyless.
Tools
sec_fundamentals_as_of(company, as_of?, concepts?, period?, periods?)— one company’s standard statement lines as known onas_of. A restatement filed afteras_ofcannot change the answer. Returns value, period start and end, calendar period label, filing date, form, accession, and whether the period had already been restated byas_of.sec_fundamentals_restatements(company, concept, period_end?, as_of?, include_unrevised?, limit?)— every reporting period of one line whose value changed between filings, with each version, filing date and the change in absolute and percent terms.sec_fundamentals_frame(concept, period, as_of?, sort?, min_value?, max_value?, limit?)— every filer’s value of one concept in one calendar period (CY2023,CY2023Q1,CY2023Q4I), ranked, as known onas_of. One row per company.sec_fundamentals_concepts(statement?, search?)— the 76 standard concepts (income statement, balance sheet, cash flow, per-share and cover-page lines), their units and the ordered XBRL tag chain each is read from.
edgar_company_concept is the live single-company lookup (with its own as_of, restated flags and derived Q4). This pack is the bulk, screenable store: a whole statement set as of a past date in one call, and screens across every filer.
Auth
Keyless.
Data sources
- US Securities and Exchange Commission, XBRL financial data. US federal government data, public domain. Covers filings from 2009 onward (the start of XBRL) by operating companies that report any of the standard concepts, about 11,000 filers.
Every response carries data_as_of (the newest filing date in the data) and source.
How the data is shaped
- One record per filer holds every distinct value of each standard concept, with the filing that first reported it: filed date, form, accession, period start and end, and the XBRL tag it came from. A later filing that repeats the same number is not stored (it adds nothing to an as-of read); a later filing with a different number is stored, and that is the restatement.
- Tag chains. Each concept maps to an ordered list of XBRL tags (revenue:
RevenueFromContractWithCustomerExcludingAssessedTax, thenRevenues, thenSalesRevenueNet, and so on). For each reporting window the first tag in the chain that the filer reports wins, so a company that changed tags still gets one continuous series. The map is insrc/concepts.tsand is returned bysec_fundamentals_concepts. - Frames. For cross-company screens, every value is also placed on a calendar period in the SEC frames convention: a full year (about 365 days) is
CYyyyy, a discrete quarter (about 91 days) isCYyyyyQn, a balance at a date isCYyyyyQnI. Fiscal periods land in the nearest calendar period. Six- and nine-month year-to-date cash-flow windows are in company records (period: "all") but not in frames. - No look-ahead.
as_offilters on the filing date, never the period date. A period first filed afteras_ofis absent; a figure restated afteras_ofshows its earlier value. - Explicit empty answers. An
as_ofbefore the company’s first filing returnsfound:false,empty_reason: "as_of_before_first_filing"and the earliest filing date. A concept the company does not report returnsempty_reason: "concept_not_reported".
Things to know
fiscal yearandfiscal periodin the raw SEC data describe the FILING, not the period a value covers (a 10-Q for fiscal Q3 also reports a prior-year balance). Rows here carry the period’s own start and end and a calendarperiodlabel instead.- Discrete Q4 is not a filed figure and is not derived here. Use
edgar_company_conceptfor a derived Q4 on a live lookup. - The first version of an older period is the earliest XBRL-era filing that carried it, not necessarily the original pre-XBRL report.
- Stock splits appear as restatements of per-share and share-count lines, because later filings recast them.
Budget
- One-time load: about 11,000 company objects plus about 8,000 frame objects plus 2 small ones, about 19,000 writes at $4.50 per million = about $0.09, plus list calls; target $0.11.
- Storage about 0.5 GB at $0.015 per GB-month = under $0.01 per month.
- Refresh: at most daily, rewriting only objects whose bytes changed (gzip output is deterministic and the new md5 is compared with the stored one). A day’s filings touch a few hundred company objects and the frame periods they land in: about 1,000 writes a day = about $0.14 per month, plus the listing. Under $1 per month in total.
- Zero new bindings, no database, no Durable Object. Reads are one to three object reads per call.
scripts/load-sec-fundamentals.mjs carries the same budget as a # BUDGET: header.
Tools
- sec_fundamentals_as_of — POINT-IN-TIME company fundamentals with no look-ahead: what a US public company’s financial statements said ON A GIVEN DATE, using only values the company had FILED with the SEC on or before that date
- sec_fundamentals_restatements — Full REVISION HISTORY of one financial line for one US public company: every reporting period whose reported value changed between filings, with each version, the date it was filed, the form and acces
- sec_fundamentals_frame — CROSS-COMPANY screen of one financial concept in one period, as known on a date: every US filer’s value of (for example) revenue for CY2023, or total_assets at CY2024Q2I, ranked, with no look-ahead. S
- sec_fundamentals_concepts — List the standard financial concepts the SEC fundamentals tools understand: the short key to pass as
concept(revenue, net_income, total_assets, eps_diluted, operating_cash_flow, capex, long_term_de
Tools
sec_fundamentals_as_of— POINT-IN-TIME company fundamentals with no look-ahead: what a US public company's financial statements said ON A GIVEN DATE, using only values the company had FILED with the SEC on or before that datesec_fundamentals_concepts— List the standard financial concepts the SEC fundamentals tools understand: the short key to pass as `concept` (revenue, net_income, total_assets, eps_diluted, operating_cash_flow, capex, long_term_desec_fundamentals_frame— CROSS-COMPANY screen of one financial concept in one period, as known on a date: every US filer's value of (for example) revenue for CY2023, or total_assets at CY2024Q2I, ranked, with no look-ahead. Ssec_fundamentals_restatements— Full REVISION HISTORY of one financial line for one US public company: every reporting period whose reported value changed between filings, with each version, the date it was filed, the form and acces