EdgarStack Get beta access

Documentation

Connect EdgarStack to the MCP-compatible AI client and model you choose. The MCP server supplies SEC data and filing evidence; your AI client interprets and explains it. A REST API is also available for scripts and dashboards.

View the EdgarStack MCP server profile →

MCP connector

EdgarStack works with any MCP client that supports remote servers. It has no built-in model and needs no model-provider credentials: your client's model calls the tools and explains the results.

OAuth (recommended)https://edgarstack.com/mcp. Your client opens the EdgarStack sign-in page, where you paste your API key.
Key in the URLhttps://edgarstack.com/mcp/<your-api-key>, for clients without OAuth.

Step-by-step setup for Claude, ChatGPT, Claude Code, Cursor and others, with demos → Lost your key? Request a replacement.

REST API

Same underlying data, same auth backend, plain HTTP for anything that doesn't speak MCP: scripts, dashboards, notebooks.

curl https://edgarstack.com/api/v1/financials/AAPL \
  -H "X-API-Key: efm_live_yourkeyhere"

All requests need the X-API-Key header. There's no separate REST-only key; the same key from your signup email works everywhere.

Prices and your Tiingo key

SEC filings never contain market prices, so the price-backed outputs (get_market_multiples, get_price_history, the valuation section of company_snapshot and report packs, and the Excel model's Market Multiples tab) use a market data feed. Tiingo's self-serve plans license that data for the key owner's own use, so EdgarStack serves prices only when the request carries your own Tiingo key (free at tiingo.com):

curl https://edgarstack.com/api/v1/market-multiples/AAPL \
  -H "X-API-Key: efm_live_yourkeyhere" \
  -H "X-Tiingo-Key: your_tiingo_token"

On MCP connections the same X-Tiingo-Key request header works (most clients have a per-server extra-headers setting). The key is used for that request only: it is never logged, echoed back, cached under a shared key, or stored server-side. If a request arrives without it, the SEC-derived fields are returned as normal and each price-derived field (price, market cap, enterprise value, multiples, price series, returns) comes back null with a note pointing here; nothing is invented in their place. Quotes are delayed or end-of-day; treat them as indicative, not for trading.

Endpoints

MethodPathNotes
GET/api/v1/companies/:tickerTicker → CIK + registered name
GET/api/v1/financials/:ticker?period=annual|quarterly|ttm&metrics=revenue,netIncome&limit=8. The response includes filings, which maps each accessionNumber to its SEC filing page.
GET/api/v1/ratios/:ticker?period=annual|quarterly&limit=5
POST/api/v1/peer-compareBody: { tickers: [...], metrics: [...], period }: compare up to 6 metrics, aligned by period end and ranked; the legacy single metric field is also accepted
POST/api/v1/peer-compare/excelBody: { tickers | text | fileBase64 + filename, years }: the peer comparison workbook as an .xlsx download (same builder as the peer_comparison_excel tool; Analyst plan)
GET/api/v1/filings/:ticker?formType=10-K|10-Q|8-K&limit=4
POST/api/v1/filing-sectionBody: { ticker, accessionNumber, primaryDocument, formType, itemNumber }
GET/api/v1/diff/:ticker?item=1A&formType=10-K: server-side diff of the same Item across the latest two filings (or pass oldAccessionNumber / newAccessionNumber). Compares the full section text and returns modified, added and removed sentences.
POST/api/v1/diffBody: { oldText, newText }
GET/api/v1/companies?q=appleSearch company names and tickers
GET/api/v1/search?q=...&forms=10-K,10-Q&dateFrom=2026-01-01&dateTo=2026-06-01&limit=10&offset=0; Boolean keyword search (unquoted terms are ANDed, double quotes request an exact phrase), with SEC excerpts, one result per filing, and nextOffset pagination
GET/POST/DELETE/api/v1/watchlistManage up to 10 companies for a database-backed customer
POST/api/v1/watchlist/batchBody: { tickers | text | fileBase64 + filename }: add several companies at once, in order up to the plan cap (3 on Free, 10 on Analyst); reports per-ticker added / alreadyOnList / notFound / overCap
GET/api/v1/alerts?limit=20Recent alert delivery history for the current customer
GET/api/v1/screen?metric=rdExpense&year=2024&min=1000000000&sort=desc&limit=20: screen all SEC filers by one metric, no tickers required
GET/api/v1/screen-ratio?ratio=rdIntensity&year=2024&min=0.1&sort=desc&limit=20: screen all SEC filers by a computed ratio (or ?numerator=...&denominator=... for a custom pairing)
GET/api/v1/market-multiples/:ticker?period=annual|quarterly: P/E, P/S, P/B, EV/Revenue, EV/EBITDA, market cap, enterprise value
GET/api/v1/model/:ticker?limit=5&includeValuation=true|false: downloads a formula-driven .xlsx skeleton model with source-linked history and editable assumptions. Annual periods only.
GET/api/v1/insider-activity/:ticker?limit=20: recent Form 3/4/5 transactions: who traded, when, how much, and at what price
GET/api/v1/segments/:ticker?formType=10-K|10-Q&years=1-5&accessionNumber=&breakdowns=business,geography,product&maxMetrics=10: revenue, costs, operating income, assets and other metrics by business segment, geography and product line from one filing's XBRL, with reconciling items, the consolidated total and a sum check per period.
GET/api/v1/off-balance-sheet/:ticker?sectionId=&offset=: latest 10-K only: off-balance-sheet figures the company tags in XBRL, with prior year and accession; the matching notes and MD&A liquidity section with key quotes; and an 18-category checklist. Pass a returned sectionId (and offset) to read that section's full text.
financials, ratios, and peer-compare support 39 metrics in total: revenue, grossProfit, operatingIncome, netIncome, epsBasic, epsDiluted, totalAssets, currentAssets, totalLiabilities, currentLiabilities, longTermDebt, totalEquity, cashAndEquivalents, operatingCashFlow, capex, rdExpense, sharesOutstanding, dividendsPerShare, dividendsPaid, stockBasedCompensation, deferredRevenue, goodwill, intangibleAssets, depreciationAmortization, costOfGoodsSold, sellingGeneralAndAdministrative, interestExpense, otherNonoperatingIncomeExpense, pretaxIncome, incomeTaxExpense, shortTermInvestments, weightedAverageDilutedShares, shareRepurchases, accountsReceivable, inventory, accountsPayable, propertyPlantAndEquipment, investingCashFlow, and financingCashFlow.
ratios also computes working-capital metrics from the balance sheet fields above: days sales outstanding, days inventory outstanding, days payable outstanding, and the cash conversion cycle (DSO + DIO - DPO).
/api/v1/screen uses SEC's XBRL Frames API, which indexes by one exact tag per period, so a filer reporting the same concept under a different synonym tag for that period won't show up in results. Not every metric above is screenable this way; the ones that are: revenue, grossProfit, operatingIncome, netIncome, epsBasic, epsDiluted, totalAssets, currentAssets, totalLiabilities, currentLiabilities, longTermDebt, totalEquity, cashAndEquivalents, operatingCashFlow, capex, rdExpense, operatingExpenses.
/api/v1/market-multiples combines a market price (Tiingo IEX last price or latest close, not SEC data) with the most recently reported period's fundamentals. It's a point-in-time multiple, not a trailing-twelve-month calculation. Market quotes run about 20 minutes delayed, so treat the price as indicative, not execution-grade. Prices are only served with your own Tiingo key; see Prices and your Tiingo key.
/api/v1/model generates Readme, Source Data, Standardized Data, Assumptions, Historical Model, Segments (where the company tags segments), Forecast, Dashboard, and Audit Flags tabs (plus Market Multiples if requested) from live SEC data. Annual periods only, since quarterly data has a structural Q4 gap (see the note under build_financial_model below).
/api/v1/insider-activity covers Forms 3, 4, and 5 only: officer/director/10%-owner trades in their own company's stock. For institutional 13F holdings, use the institutional_ownership MCP tool. >5% beneficial ownership filings (13D/13G) are not covered.
/api/v1/off-balance-sheet covers US 10-K filers and reads the latest 10-K only. It reports what the company discloses (XBRL-tagged figures and note text) and does not compute adjusted net debt or present values. Categories a company neither tags nor describes are marked not found.
/api/v1/screen-ratio presets: grossMargin, operatingMargin, netMargin, opexRatio, rdIntensity, capexIntensity, fcfMargin, currentRatio, debtToEquity, returnOnAssets, returnOnEquity, cashToAssets, assetTurnover: the same ratio definitions compute_ratios uses per-company, just ranked market-wide. Joins two (or three) separate XBRL frame queries by CIK, so a filer must report every underlying tag the ratio needs for the same period to show up at all.

Tools

The MCP server registers 27 tools. Each has its own page with inputs, a sample prompt, outputs and limits. The REST endpoints above call the same functions.

ToolWhat it does
lookup_companyResolve a ticker to its SEC CIK number and registered name: the starting point everything else builds on.
get_financialsStandardized line items across periods, with source XBRL tags and accession numbers.
compute_ratiosMargins, liquidity, leverage, returns, and working-capital ratios, computed from reported SEC data.
analyze_capital_allocationSummarize reported operating cash flow, capex, dividends, repurchases, and shares by annual or TTM period.
analyze_earnings_qualityTwo views.
assess_financial_data_qualityTwo checks.
company_snapshotBuild a compact, source-aware view of TTM financials, ratios, earnings-quality indicators, market multiples, filings, and insider transactions.
peer_compareCompare 1–6 metrics across 2–15 tickers.
peer_comparison_excelA peer comparison Excel workbook for 2–15 companies from a ticker list, pasted text or an uploaded .xlsx/.csv: latest-year metrics with MEDIAN and rank rows, five-year Revenue / Operating income / Net income / FCF history sheets, and 10-K source links.
list_recent_filingsRecent 10-K / 10-Q / 8-K filings with accession numbers, ready to feed into the section and comparison tools below.
get_filing_sectionExtract one Item section's text (Risk Factors, MD&A and more) straight from the filing.
diff_filing_sectionsSee what management added, reworded, or quietly dropped between filings.
get_earnings_releaseQuarterly results on results day from the 8-K earnings release, checked against XBRL, or from the 10-Q once filed; outlook quoted.
management_guidance_trackerTwo modes.
screen_companiesScreen every SEC filer for a period, not just tickers you already know.
get_market_multiplesMarket multiples (P/E, P/S, P/B, EV/Revenue, EV/EBITDA) from a price snapshot and reported filings.
build_financial_modelA branded, formula-driven Excel skeleton model generated from SEC data.
get_insider_activityRecent Form 3/4/5 transactions: decoded transaction codes, a buy/sell summary, and who's behind each trade (officer, director, or 10%+ owner).
institutional_ownershipForm 13F institutional holdings, both ways.
get_price_historyEnd-of-day prices for a US ticker (daily, weekly or monthly) from Tiingo, with split- and dividend-adjusted closes, dividends and splits in the range, and statistics: total and annualized return, annualized volatility, maximum drawdown with dates, and the range high and low.
off_balance_sheetCommitments and contingencies that sit outside the balance sheet, from the latest 10-K.
get_market_risk_sensitivityHow a rate rise, a stronger dollar or a commodity move would hit the company, as it states in the market-risk section of its latest 10-K or 10-Q: shock, metric, dollar effect and source passage.
get_segment_breakdownRevenue, costs, operating income, assets and other metrics split by business segment, by geography and by product or service line, read from the XBRL of one 10-K (default) or 10-Q.
build_report_packOne call returns a cited evidence pack for an analyst-style report, and your AI client writes the report from it.
build_research_reportBoth deliverables of a company filing report in one call: an Excel model and a report pack.
manage_watchlistFollow up to 10 companies.

Rate limits

Each API key can make up to 120 requests per minute across REST and MCP combined. The limit refills evenly, so short bursts are fine. When you go over it, the API returns 429 with a Retry-After header giving the seconds to wait, and the error message states the limit.

All customers share one queue to SEC EDGAR, which EdgarStack throttles to stay within the SEC's fair-access limits. Requests that need several filings, such as models and diffs, can take longer when the queue is busy. During the closed beta there is no availability promise; see the beta terms.

Status codes

Errors return JSON with an error message. Authentication errors also include a reason code, such as not_found or beta_ended.

CodeMeaning
400Invalid request: a required parameter is missing, a metric or ratio name is unknown, or a value is out of range. The message names the problem and, where useful, the allowed values.
401Key not recognized: missing, unknown, or malformed
402Key recognized, but access has ended (beta ended, trial ended, cancelled, expired)
403Key is valid, but this feature is not included in its access, such as the research workspace for a lapsed key
404Not found: the ticker is not an SEC-reporting company, or the data the request needs (such as revenue history or a price quote) is not available
409Conflict, for example adding a ticker that is already on your watchlist
422The request is well formed but cannot be applied, for example a watchlist that is already full
429Rate limit exceeded. Wait for the number of seconds in the Retry-After header.
500Unexpected error, often a temporary problem reaching SEC EDGAR. Retry after a short wait; if it persists, contact us with the request.