Zum Inhalt springen
NEULerne Alaaddin kennen, deinen KI-Flaschengeist mit Stimme. trig8n startet am 1. Januar 2027. Neuigkeiten ansehen

Bibliothek / Dokumente, PDF & OCR

Dokumente, 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.

Was sie bewirkt

## 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.

Die Schritte

  1. Every Monday Morning
  2. Or Run It Now
  3. Settings
  4. Ask What The Server Offers
  5. Check The Tools Are There
  6. Read What We Reported
  7. Pick The Companies
  8. Ask For The Filings
  9. Read The Filing List
  10. Is There A New Filing?
  11. Fetch This Year's Report
  12. Read This Year's Risk Factors
  13. Fetch Last Year's Report
  14. Read Last Year's Risk Factors

Insgesamt 24 Schritte.

Ähnliche Automatisierungen