@pipeworx/edgar
Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/edgar’s. Install: one-click buttons
Connect to just the @pipeworx/edgar pack
https://gateway.pipeworx.io/edgar/mcp — only @pipeworx/edgar’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: 9
The Securities and Exchange Commission’s filings database. Every public company in the US files here, every filing is timestamped and immutable, and every disclosure (revenue, debt, risk factors, executive compensation, M&A activity, insider trading) is structured for machine retrieval. Free and authoritative.
Why this matters for AI agents
If your agent is answering anything about a US public company — financials, legal exposure, IP, executive turnover, recent material events — the answer is in EDGAR. The data is structured (XBRL), so you don’t have to parse PDFs.
The two key flows — and the one call that does both:
0. Snapshot (one call). “Give me the SEC picture on Apple.” → edgar_company_snapshot({ticker_or_cik: "AAPL"}) → CIK + the recent substantive filings (10-K/10-Q/8-K/20-F/40-F/6-K/DEF 14A by default; Form 4 noise excluded unless you ask for form_type: "all") + the headline XBRL figures from the latest annual report (revenue, net income, assets, cash, EPS…). This is flows 1 and 2 collapsed: the resolve → list → pull chain that depth users otherwise assemble by hand three calls at a time. A filer with no XBRL (a fund or trust) still returns its filings with financials_status: "unavailable" and the reason. edgar_ticker_to_cik now returns a next hint pointing here.
1. Filings flow. “Show me Apple’s recent 10-Q.” → edgar_ticker_to_cik("AAPL") → edgar_company_filings(cik) → list of filings with accession numbers, form types, filing dates.
2. Concepts flow. “What was Apple’s revenue trend the last 4 quarters?” → edgar_company_concept(cik, "Revenues") → time series of XBRL-tagged values across periods.
3. Peer/competitor flow. “Who competes with Apple?” → edgar_companies_by_sic({ticker_or_cik: "AAPL"}) → resolves Apple’s own SIC code (3571, Electronic Computers) and returns other SEC filers under that code, listed-ticker peers first. Pass a sic code directly instead of a company to browse an industry cold.
4. Entity-resolution flow (parent ↔ subsidiary). sponsor_to_filer({sponsor: "Merck Sharp and Dohme"}) resolves a subsidiary/operating name up to its listed parent (MRK). filer_to_sponsors({ticker_or_cik: "MRK"}) goes the other way — the parent’s full disclosed subsidiary list from Exhibit 21 of its latest 10-K, with jurisdiction and filing provenance. Pass name_filter to check one candidate name without reading the whole list.
5. Product-level revenue. “How much revenue did Keytruda generate?” → edgar_product_revenue({ticker_or_cik: "MRK", product_filter: "Keytruda"}). edgar_company_concept/edgar_company_facts only expose undimensioned XBRL totals — a product/segment breakdown is tagged with an XBRL dimension (a “Keytruda [Member]”), invisible to those APIs. This reads SEC’s own rendered Financial Report of that dimensional data straight out of the revenue-disaggregation note, with a citation (accession, filing date, report URL). With no form_type it resolves 10-K, then 20-F, then 40-F, so foreign private issuers work the same way (edgar_product_revenue({ticker_or_cik: "NVS", product_filter: "Entresto"}) reads Novartis’s 20-F); the form actually used comes back as resolved_form. Not every filer tags product-level revenue in XBRL — Neurocrine discloses revenue by major customer and United Therapeutics only its recognition policy, and both return an explicit not_found rather than an empty array.
6. Operating KPIs that never reach XBRL (press releases). “Tesla’s Q3 2026 vehicle deliveries and production” / “how much energy storage did Tesla deploy.” A company’s quarterly production, delivery, and shipment/deployment KPIs are reported in its press release — the exhibit attached to an 8-K — not in the structured financial statements, so edgar_company_concept/edgar_company_facts correctly have nothing to return for them. edgar_filing_exhibit_text({ticker_or_cik: "TSLA", filed: "2026-10"}) reads the exhibit text directly (the 8-K’s OWN primary document typically just says “see the attached exhibit” and carries none of the numbers) and defaults to the EX-99.* attachment, the universal convention for an Item 2.02/7.01 earnings or KPI release. Pass search for a specific figure (“vehicle deliveries”, “Megapack”, “same-store sales”) instead of reading the whole release. Generalizes to any US filer’s 8-K press release, not just Tesla’s.
Both flows are usually preceded by edgar_ticker_to_cik or resolve_entity({type: "company", value: "AAPL"}) to get the canonical 10-digit CIK.
Auth
None. SEC EDGAR is a free, public, no-auth service. Pipeworx forwards a polite User-Agent header to comply with SEC’s API guidelines.
Citable URIs
pipeworx://edgar/company/{cik}/filings
pipeworx://edgar/company/{cik}/facts
Embed in your output. Stable across reorganizations — companies rebrand, but their CIK doesn’t change.
Form types worth knowing
| Form | What it is | When |
|---|---|---|
| 10-K | Annual report | ~60 days after fiscal year-end |
| 10-Q | Quarterly report | ~45 days after quarter-end |
| 8-K | Material event (M&A, exec changes, earnings, etc.) | Within 4 business days |
| DEF 14A | Proxy statement (executive comp, governance) | ~6 weeks before annual meeting |
| Form 4 | Insider trading disclosure | Within 2 business days of trade |
| 13F | Institutional holdings (>$100M AUM funds) | 45 days after quarter-end |
| S-1 | IPO registration | When going public |
| 13D / 13G | >5% beneficial ownership disclosure | Within 10 days of crossing threshold |
For insider trades specifically, see the dedicated insider-trading pack — it surfaces Form 4 / 13D / 13G changes with cleaner schemas.
Common pitfalls
- Concept name drift. SEC filers occasionally change the XBRL concept they tag for revenue. The default
Revenuesconcept may be stale for newer fiscal years; tryRevenueFromContractWithCustomerExcludingAssessedTaxas a fallback. - Period mismatches. Fiscal years end at different times across companies (Apple = Sept, Microsoft = June, Google = Dec). When comparing, always disclose the period.
- CIK formatting. Some endpoints want zero-padded 10-digit (
0000320193), some want unpadded (320193). Pipeworx accepts either; thecik_paddedfield inedgar_ticker_to_cikis the canonical form for resource URIs. - Real-time-ish, not real-time. Filings appear on EDGAR within minutes of submission, but Pipeworx caches results. For breaking-news-grade timeliness, set
Cache-Control: no-cache(anonymous limit applies) or check the_meta.cache.fresh_untilfield. - Concept availability differs. Smaller filers tag fewer XBRL concepts than large ones.
edgar_company_conceptmay return empty arrays for valid concepts that the company simply doesn’t report. Useedgar_company_factsto see which concepts a company DOES report. - The company argument is spelled three different ways across this pack, and
edgar_company_conceptaccepts all of them.edgar_company_filings/edgar_insider_transactions/edgar_product_revenuename itticker_or_cik,edgar_fund_holdings/edgar_ticker_to_cikname itticker, andedgar_company_concept/edgar_company_factsname itcik(which takes a ticker too). A model filling arguments reaches for whichever word it read last, soedgar_company_conceptdeclarestickerandticker_or_cikas aliases ofcik, andmetricas an alias ofconcept. Measured before that change (fleet #2058): of 11 times the ask_pipeworx adjudicator selected this tool over 16 never-before-asked questions, 9 calls were rejected by the gateway’s required-argument pre-flight — every one of them because it had senttickerorticker_or_cikrather thancik, and a third of those sentmetricrather thanconceptas well. Both calls that usedcik+conceptsucceeded. The outcome recorded for the rejected ones waspartial, not an error, because a single-tool selection that arrives as a one-elementtoolsarray runs the fan-out branch — so the word for “the only lookup never ran” was the same word used for “some of several lookups ran”. - A filing you did not NAME is a filing we CHOSE, and the envelope now says which (fleet #3319).
edgar_filing_textandedgar_filing_documentsauto-resolve the LATEST filing ofform_typewhenaccessionis omitted, and every field then describes that filing as though it had been asked for. Measured live 2026-10-18: a grounded question about “Tesla’s September 29 2026 8-K” reachededgar_filing_text({ticker:"TSLA", form_type:"8-K", search:"credit facility"}), resolved to the 2026-10-02 8-K — a different filing, 3,061 chars, zero matches — and refusednot_in_source5 tries out of 5, while the filing asked about sat one row further down the same index with all three credit tranches in it. So every response carriesaccession_source("caller"|"auto_selected") plus, when we chose, anauto_selectedblock naming what was requested, what was picked, what was read with its exact-match count, and the candidates that were not read. Passfiled(“2026-09-29”, “2026-09”, “September 29, 2026”) whenever the question names a date; for an 8-K the newest filing is routinely not the one meant. When only asearchis available,edgar_filing_textreads on past a candidate whose text contains no exact match (bounded to 4 documents, exact matches only), and if none match it falls back to the newest WITH a warning that a zero-match result there is inconclusive about the company rather than about that filing. edgar_company_filingsused to drop a namedaccessionon the floor. It declared neitheraccessionnorinclude_primary_text, so a caller that named one filing got the same unnarrowed list as one that named nothing — HTTP 200, reads as a clean success. That is how the fleet #3319 question finally died: the grounded ladder’s last attempt routed here with{accession:"0001628280-26-063820", ticker:"TSLA", include_primary_text:true}(AEblob12— the router had already resolved the right 8-K) and the extraction model received a generic 10-row filings list carrying no facility amounts. Both arguments are real now, plusfiled; a one-row result says so innarrowed_note, and an accession the filer never filed is a loudnot_found:error rather than an unfiltered list.fiscal_yearandfiscal_periodare filters AND response fields. They are the names of two fields on every row invalues, and the description’s advice to “match the requested fiscal_year and fiscal_period” used to make argument-fillers send them as arguments, where they were undeclared and silently dropped — so the caller got all 89-230 reported periods back with nothing saying its filter had been ignored. They are now real optional filters: pass either or both andvalues/latestcome back scoped to it, with aperiod_filterblock echoing what was applied. An unmatched filter returns NO rows plus the list of fiscal years and periods the filer actually reports, rather than falling back to every period —fiscal_yearis the filer’s OWN label (NVDA’s FY2024 ended January 2024), so a caller thinking in calendar years needs to see the labels rather than be handed a neighbouring year’s number.edgar_search_filingsignoressize/limitupstream, and silently drops a one-sided date filter, if you don’t account for both (fleet #3251). EDGAR’s search index (efts.sec.gov) returns a FIXED page of up to 100 hits no matter whatsizeis requested — verified live — so the tool now trims to the caller’slimititself and reportstotal_hits(the true match count) separately fromreturned; anotesays so whenever the fixed page held more than was asked for. Separately,dateRange=customwith only one ofstartdt/enddtset is silently IGNORED by efts (the filter never applies and filings from 2001 onward appear) — passing onlystart_dateor onlyend_datenow defaults the other end (EDGAR full-text coverage’s floor, 2001-01-01, or today) rather than losing the filter. Passentity(ticker, company name, or CIK; aliasesticker_or_cik/cik/ticker) to scope the market-wide search to one filer — resolved the same wayedgar_ticker_to_cikresolves a company, with the delisted/non-listed fallback for filers absent fromcompany_tickers.json. Because efts’s response cache is keyed onq/dates/forms/frombut NOT onciks/entityName(reference_efts_cache_key_leak, fleet #619 — aciks-filtered request can be served a cached UNFILTERED result as a clean 200), an entity filter appends a negated cache-busting token toqand every row is re-checked client-side against the requested CIK; a dropped mismatch is reported asentity_filter_guard_droppedrather than silently vanishing. The tool returns no text snippet — EDGAR’s index has none — so chain a result’saccessionintoedgar_filing_textwithsearchset to the query for the matching passage, instead of this tool fetching every hit’s document on your behalf (SEC rate-limits the whole fleet by one shared egress IP).
Tools
- edgar_search_filings — Full-text search across every SEC filing, using EDGAR’s own search index.
- edgar_company_snapshot — A US public company’s SEC identity, recent filings and headline financials in one call.
- edgar_ticker_to_cik — The SEC CIK number for a stock ticker or company name, from EDGAR’s company list.
- sponsor_to_filer — The SEC filer entities linked to a plan sponsor, from EDGAR Form 5500 filings.
- edgar_xbrl_frames — One XBRL financial concept’s reported value across every US public company for one period, from EDGAR.
- edgar_companies_by_sic — Every SEC filer classified under one industry code — a company’s public peers.
- edgar_filing_documents — The documents and attachments inside one SEC filing, by accession number.
- edgar_filing_text — The full text of an SEC filing’s main document, HTML stripped to clean plaintext.
- edgar_filing_exhibit_text — Full text of an exhibit (e.g. a press release) attached to an SEC filing, such as an 8-K’s EX-99.1.
Tools
edgar_companies_by_sic— Every SEC filer classified under one industry code — a company's public peers.edgar_company_snapshot— A US public company's SEC identity, recent filings and headline financials in one call.edgar_filing_documents— The documents and attachments inside one SEC filing, by accession number.edgar_filing_exhibit_text— Full text of an exhibit (e.g. a press release) attached to an SEC filing, such as an 8-K's EX-99.1.edgar_filing_text— The full text of an SEC filing's main document, HTML stripped to clean plaintext.edgar_search_filings— Full-text search across every SEC filing, using EDGAR's own search index.edgar_ticker_to_cik— The SEC CIK number for a stock ticker or company name, from EDGAR's company list.edgar_xbrl_frames— One XBRL financial concept's reported value across every US public company for one period, from EDGAR.sponsor_to_filer— The SEC filer entities linked to a plan sponsor, from EDGAR Form 5500 filings.