DEV Community

Geo
Geo

Posted on

Give your AI agent live SEC EDGAR data via MCP — no scraping, no API key

If you've ever tried to wire an LLM agent to real financial filings, you know the
drill: data.sec.gov is free and public, but every project re-implements the same
boilerplate — CIK lookup, a descriptive User-Agent (SEC requires one), rate-limit
pacing under 10 req/s, and parsing XBRL facts or full-text search hits into
something an agent can actually use.

I packaged that boilerplate as an MCP server —
a SEC EDGAR MCP server — so any MCP-capable agent (Claude, ChatGPT, Cursor, a
custom agent framework) can call it as a tool, conversationally, with structured
JSON back.

What it exposes

Four tools, each backed by an official SEC endpoint (data.sec.gov /
efts.sec.gov — never scraped HTML, never the robots-disallowed
/cgi-bin/browse-edgar path):

Tool Returns Identify by
company_facts 10-year XBRL fundamentals (Revenues, NetIncomeLoss, EPS, Assets, …) ticker or CIK
submissions Filing history — form, filed date, report date, primary document, archive URL ticker or CIK
fulltext_search Full-text EDGAR search by keyword, optional form-type filter query string
filing_events Disclosure events — 8-K item codes, Form 4 insider transactions, Form D offerings ticker or CIK

Each call returns both a natural-language summary and structuredContent, so the
agent can read it or your code can parse it as JSON.

Connecting it

It runs in Apify's standby mode — an always-listening HTTP MCP server, not a
batch job:

https://gp005--sec-edgar-mcp.apify.actor/mcp
Authorization: Bearer <YOUR_APIFY_TOKEN>
Enter fullscreen mode Exit fullscreen mode

Add that as a Streamable HTTP MCP server in your client, then ask the agent to
call a tool:

{
  "name": "company_facts",
  "arguments": { "ticker": "AAPL", "concepts": ["Revenues", "NetIncomeLoss"] }
}
Enter fullscreen mode Exit fullscreen mode
{
  "company": { "cik": "0000320193", "ticker": "AAPL", "name": "Apple Inc." },
  "facts": [
    {
      "concept": "Revenues",
      "label": "Revenues",
      "unit": "USD",
      "values": [
        { "end": "2024-09-28", "val": 391035000000, "form": "10-K", "filed": "2024-11-01" }
      ]
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Fair-access and compliance by design

  • Sends a descriptive User-Agent (contact email + purpose), per SEC's fair-access policy.
  • Paces requests under the SEC's 10 req/s limit — default 8 req/s, configurable 1-10.
  • Full-text search surfaces EDGAR's own cap (~10,000 hits/query) rather than pretending it doesn't exist.
  • Forms 3/4/5/13D/G are a statutory public register; the Actor returns them per-query and never aggregates them into a name index.

Pricing

Pay-per-event: $0.05 per completed tool call (flat, current tier). No run
minimum, no subscription — a single company_facts lookup costs a nickel.
ACTOR_MAX_TOTAL_CHARGE_USD is checked before every call, so a run can't run
away on cost.

Try it

Company Fundamentals & SEC Filings MCP Server on Apify

Top comments (0)