Library / Documents, PDF & OCR
Documents, PDF & OCR
Summarize 10-K risk factor changes with SEC EDGAR MCP, OpenAI, and Google Docs
On a schedule, it reads and extracts data from documents with OpenAI / ChatGPT using Data Table, Google Docs.
What it does
## Read the risk factors that changed Item 1A of a 10-K is the company's own list of what could go wrong, and almost all of it is last year's text carried over untouched. The signal is the paragraphs that are new, the ones that quietly disappeared and the ones that were rewritten. You only see those by holding two filings side by side. ### How it works The filing list comes from a SEC EDGAR MCP server, called over plain HTTP. n8n's MCP Client Tool is an agent sub-node, so the usual route is to hand an agent the tool and hope it calls. Streamable HTTP is JSON-RPC over POST, so Ask For The Filings calls it directly, once per company. Diff The Risk Factors does the thinking, before any model is involved. Paragraphs are paired by token overlap rather than hashed, because a carried-over risk factor is rarely byte-identical - a date moves, a product is named. Above 0.95 is unchanged, 0.80 to 0.95 is a light rewording that gets counted and nothing more, and below that is a material rewrite. Only the additions, the removals and the rewrites reach the model. Save What We Reported is keyed on the accession number, not the filing date: a 10-K stays the newest filing for a year. ### Setup 1. Run the server: npx -y edgar-mcp@1.1.0 --http --host 0.0.0.0 --port 8932. No API key - EDGAR is free. 2. Point mcp_url in Settings at it: http://host.docker.internal:8932/mcp from n8n in Docker, http://127.0.0.1:8932/mcp otherwise. 3. Put your own email in sec_user_agent. The SEC answers a client without one with 403. 4. Create a Data Table named risk_factor_watch with the columns ticker, accession, filed_on, added, removed and rewritten. 5. An OpenAI credential and a Google Docs credential. Put your tickers in Settings.
The steps
- Every Monday Morning
- Or Run It Now
- Settings
- Ask What The Server Offers
- Check The Tools Are There
- Read What We Reported
- Pick The Companies
- Ask For The Filings
- Read The Filing List
- Is There A New Filing?
- Fetch This Year's Report
- Read This Year's Risk Factors
- Fetch Last Year's Report
- Read Last Year's Risk Factors
24 steps in total.
Similar automations
Finance, Invoices & AccountingAnalyze latest SEC 10-K and 10-Q risk sections with OpenAI, Sheets and Slack16 stepsEmail AutomationEmail daily SEC EDGAR 8-K, 10-Q, and 10-K watchlist filings via SMTP7 stepsLead Generation & EnrichmentMonitor SEC Form D filings with Apify and score leads in Sheets and Slack35 stepsFinance, Invoices & AccountingScreen US stocks by SEC revenue growth with GPT-5, Yahoo Finance, and Telegram23 steps