vigia-edgar
An always-on engine that watches SEC EDGAR for insider trading (Form 4) and material event (8-K) filings, alerting users through AI agents via MCP tools.
README
vigía EDGAR — Always-on SEC EDGAR watcher (Form 4 / 8-K alerts)
Public copy & quickstart live in
mcp/README.md. This root README is the developer/architecture doc for the two-layer system (engine + skin).
An always-on engine that watches US SEC EDGAR for you and queues an alert about ~45 seconds (median, under ~2 min worst case — fast polling, not instant/real-time) after the SEC accepts an insider Form 4 or a company's 8-K. Set a ticker watchlist (AAPL, TSLA, NVDA…) and your AI agent gets insider-trading and material-event alerts on Claude, Cursor, or any MCP client — no setup on your side. Free: 1 ticker. Pro ($29): unlimited tickers.
Latency, stated honestly: about 45 seconds median from when the SEC accepts a filing, under ~2 minutes worst case (measured on the EDGAR
getcurrentfeed). The engine polls fast and never sleeps.
Why this needs an MCP server (the moat)
An LLM agent on its own cannot watch EDGAR 24/7. The value here is infrastructure that never sleeps: a cron-driven engine continuously polls the SEC, dedupes every filing, and keeps a per-user cursor so your agent only ever sees what's new. The agent just asks; the engine has already been watching.
Tools
watch_insider(tickers: string[])
Register US tickers to monitor (Form 4 + 8-K). Resolves each ticker to its SEC CIK and starts watching. Returns the resolved list and any tickers it couldn't find.
get_alerts()
Return new filings detected for your watched tickers since your last call (a per-user cursor
advances automatically, so you never get duplicates). Each alert includes: ticker, company,
formType, category (insider | material_event), accession, acceptanceTime,
detectedTime, latencySeconds, and a direct filingUrl.
Architecture
Two layers:
- Engine (Cloudflare Worker + D1): a cron trigger polls EDGAR's
getcurrentatom feed every minute (two polls ~30s apart per tick → ~30s effective cadence). It dedupes accession numbers, matches filings to watched companies by CIK (robust to name changes), and stores matches in D1. State:seen(dedupe),watches(per-user CIKs),alerts,cursors(per-user delivery),ticker_map(refreshed daily fromcompany_tickers.json). - Skin (this MCP server, hosted on MCPize): exposes the two tools and reads/writes the engine
over an authenticated HTTP API (
/watch,/alerts). MCPize handles auth and billing.
Per-user isolation: set WATCH_NAMESPACE (your own key) in the MCP server config to keep your
watchlist and cursor private. Defaults to default.
SEC compliance
All requests to the SEC use the required identifiable User-Agent and stay well under the 10 req/s
limit (the EDGAR feed is polled once per cron cycle).
Configuration (env / secrets)
WORKER_URL— base URL of the Cloudflare engine.VIGIA_KEY— shared secret the skin uses to call the engine.WATCH_NAMESPACE— per-user watchlist namespace (optional; defaults todefault).
Funnel instrumentation
The engine counts four product numbers in the D1 funnel table (one aggregate row
per namespace, idempotent upserts — negligible cost):
- installs — namespace connected the MCP (first
/watch) - activations — actually used it (resolved a ticker, or pulled
/alerts) - wall_hits — bounced off the Free 1-ticker cap (hunger for Pro)
- conversions — paid → Pro active (Stripe-verified)
Read them (admin, needs X-Vigia-Key):
GET /admin/funnel -> { funnel: { installs, activations, wall_hits, total_wall_hits, conversions } }
GET /admin/funnel?detail=1 -> also returns per-namespace rows
Or straight from D1:
SELECT COUNT(installed_utc) installs,
COUNT(activated_utc) activations,
COUNT(first_wall_utc) wall_hits,
COUNT(converted_utc) conversions
FROM funnel;
Repo layout
worker/ Cloudflare Worker engine (cron + D1) — npx wrangler deploy
mcp/ MCPize MCP server (the 2 tools) — npx mcpize deploy
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.