EdgarTools — SEC EDGAR filing library with a local MCP server

EdgarTools — SEC EDGAR filing library with a local MCP server

edgartools•bydgunning

A Python library that turns SEC EDGAR filings into typed structured data and ships a local MCP server (plus an agent skill) in its ai extra.

License: MIT License•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Parses many EDGAR filing types (13F holdings, Form 4 transactions, N-PORT portfolios, 8-K items) into typed objects and DataFrames.
  • •Provides standardized financial statements across filers, with discrete quarters and trailing twelve months.
  • •Exposes filing sections and whole filings as text or markdown for RAG.
  • •Offers full-text filing search, the live filing feed, rate limiting, caching and offline storage.

BEST FOR

  • •Building pipelines, backfills and backtests over hundreds of SEC filings inside your own Python process.
  • •Feeding AI assistants that can run Python, via the local MCP server or the bundled agent skill.
  • •Preparing RAG corpora from 10-K and 10-Q sections and full-filing markdown.

ABOUT EDGARTOOLS

EdgarTools — SEC EDGAR filing library with a local MCP server is cataloged as an MCP server attributed to dgunning. A Python library that turns SEC EDGAR filings into typed structured data and ships a local MCP server (plus an agent skill) in its ai extra. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for EdgarTools — SEC EDGAR filing library with a local MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the EdgarTools MCP server run locally or as a hosted service?

The library's MCP server runs locally in your own process; a separate hosted connector is offered by edgar.tools.

What does EdgarTools require to access SEC EDGAR?

An identity contact email is required on every request; no key, signup or rate-limit tier is needed.

Does using EdgarTools cost anything or require an API key?

No; it is free and MIT-licensed, runs in your own process with no API key or vendor quota, while respecting SEC's fair-access limit.

上游原版 README

在 GitHub 查看同一版本原文

README.md · eeed365eb0b4 · 采集于 2026-11-13 13:16:58 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

EdgarTools logo

EdgarTools — Python Library for SEC EDGAR Filings


PyPI - Version Python versions Build status Monthly downloads

EdgarTools is a Python library for SEC EDGAR filings as structured data: financial statements, insider trades, fund holdings, proxy statements and dozens of other filing types, through one consistent Python API. SEC publishes every filing since 1994 for free, and almost none of it is ready to use; EdgarTools turns a filing into a typed Python object. Free and open source, MIT-licensed.

Docs · Cheat sheet · Agents: Skill · MCP server · Hosted: edgar.tools

EdgarTools 6.0 needs Python 3.11 or newer and renames or removes some 5.x APIs. Read Upgrading to 6.0 before you upgrade, and Upgrading to 6.1 for what changed since.

EdgarTools SEC filing data extraction demo

Quick Start

1. Install. The package is edgartools; the module you import is edgar. Python 3.11+.

uv add edgartools        # or: pip install edgartools

2. Identify yourself to the SEC. EDGAR requires a contact email on every request. There is no key, signup or rate-limit tier.

from edgar import Company, set_identity

set_identity("your.name@example.com")

3. Get data.

# Five fiscal years of standardized income statement, from XBRL
Company("NVDA").income_statement(periods=5)
#> Total Revenue $215.9B $130.5B $60.9B

Why not just call SEC's APIs?

data.sec.gov gives you JSON facts and filing indexes. Everything past that is your code. EdgarTools does that part:

  • Section text and markdown. Item 1A, Item 7 or any Item of a 10-K or 10-Q as text, and whole filings as markdown for RAG. Raw HTML is where hand-rolled parsers break.
  • Parsed forms, not XML. 13F holdings, Form 4 transactions, N-PORT portfolios and 8-K items as typed objects and DataFrames.
  • Statements that line up. Rows standardized across filers, so "Total Revenue" means the same thing for a bank and a chipmaker, plus discrete quarters (Q4 derived from the 10-K) and trailing twelve months.
  • Search and plumbing. Full-text search over filing content, the live filing feed, rate limiting, caching and offline storage.

It runs in your own process, MIT-licensed, with no API key and no vendor quota; SEC's fair-access limit of 10 requests a second still applies, and EdgarTools keeps to it.

What you can do

Full-text search across SEC filings

Search the text of every filing since 2001, not just form types and dates.

from edgar import search_filings

# Every 10-K filed since 2025 that mentions tariffs
results = search_filings("tariff", forms="10-K", start_date="2025-01-01")
hit = results[0]
hit.accession_number, hit.form, hit.filed, hit.company  # a hit's fields; filed is the filing date
hit.get_filing()  # the Filing behind a hit, ready for .obj() or .markdown()

# Structured: 8-Ks that reported a cybersecurity incident (Item 1.05) in 2025
search_filings(forms="8-K", items="1.05", start_date="2025-01-01", end_date="2025-12-31")
#> 19 total

Full-text search guide →

Financial statements over several years

Company("MSFT").income_statement(periods=10)  # also .balance_sheet() and .cash_flow_statement()

Financial Statements guide →

One metric across companies

Pick rows by their standardized label, never by position: the first row of an income statement is not always total revenue.

import pandas as pd

revenue = {
    ticker: Company(ticker).income_statement(periods=3, as_dataframe=True)
            .set_index("label").filter(like="FY").loc["Total Revenue"] / 1e9
    for ticker in ["JPM", "PFE", "CAT"]
}
pd.DataFrame(revenue).round(1)  # $ billions
#> FY 2025 182.4 62.6 67.6

Quarterly figures and trailing twelve months

nvda = Company("NVDA")
nvda.get_ttm_revenue()                                 # the last four quarters, summed
nvda.income_statement(period="quarterly", periods=8)   # discrete quarters; Q4 is derived from the 10-K

Sections and markdown for RAG

filing = Company("NVDA").latest("10-K")
filing.markdown()          # the whole filing as markdown

tenk = filing.obj()
tenk.risk_factors          # Item 1A as text
tenk["Item 1C"]            # any Item by number

Sections guide →

Find filings, by anything

from edgar import find, get_current_filings, get_filings

get_filings(2025, 4, form="10-K")   # every 10-K filed in Q4 2025
get_current_filings()               # the live feed, as SEC posts it
find("0000320193-25-000079")        # an accession number, CIK or ticker

Finding filings guide →

find() resolving a ticker, a CIK and an accession number

get_current_filings() showing the live SEC filing feed

13F institutional holdings

thirteenf = Company("BRK.A").get_filings(form="13F-HR").latest().obj()
thirteenf.holdings  # one row per security: Issuer, Cusip, Ticker, SharesPrnAmount, Value, ...

Institutional Holdings guide →

Berkshire Hathaway's latest 13F holdings

Insider trades from Form 4

form4 = Company("TSLA").get_filings(form="4").latest().obj()
form4.to_dataframe()  # buys, sells, grants and exercises

Insider Trades guide →

Tesla's latest Form 4 parsed into a structured object

Fund holdings from N-PORT

from edgar import Fund

Fund("VOO").get_portfolio()  # the latest N-PORT holdings as a DataFrame

Fund Portfolios guide →

8-K events and earnings releases

eightk = find("0001045810-26-000073").obj()  # NVIDIA, 2026-08-26
eightk.items      # ['Item 2.02', 'Item 9.01']
eightk.earnings   # the EX-99.1 press release tables, parsed

Current Events guide →

Library or hosted?

EdgarTools is this library: free, MIT-licensed, running in your own Python process. edgar.tools is the hosted platform built on it: the same parsing, kept running and current, with every answer cited to its filing. You are not paying for the parsing; you are paying for it to be run and answerable. No feature is ever removed from the library to sell the platform.

If you want to…Use
Build something that runs: pipelines, backfills, backtests, model corpora, notebooks, custom joins, anything repeated across hundreds of names or run inside your own networkThe library
Ask, not build: what the companies you cover filed and what changed since last time, who sold, who holds it, one person across every company they touch, screens across a universe, alerts, cited answers to forward or share with a team. From a browser, a phone, Excel, Claude or ChatGPT, or an agent that cannot run Pythonedgar.tools. Free account to start
Own a maintained dataset (insider trades, 13F, BDC portfolios, material events), every row traceable to its filing, without running the pipelineedgar.tools data licensing
Fetch one known filing or one JSON document, once, from a scriptNeither: call EDGAR directly

Both have an MCP server: the library's runs locally (see AI Integration below), and edgar.tools' is hosted at app.edgar.tools/mcp. Attach one per client, not both: they overlap and split your assistant's routing.

AI integration

EdgarTools ships an agent skill and a local MCP server, both in the ai extra. For an assistant that cannot run Python, use the hosted connector from the section above instead.

pip install "edgartools[ai]"
python -c "from edgar.ai import install_skill; install_skill()"  # the skill, for Claude Code and Claude Desktop

The MCP server works with any MCP client. For Claude Desktop, add it to claude_desktop_config.json:

{
  "mcpServers": {
    "edgartools": {
      "command": "uvx",
      "args": ["--from", "edgartools[ai]", "edgartools-mcp"],
      "env": {
        "EDGAR_IDENTITY": "Your Name your.email@example.com"
      }
    }
  }
}

uvx needs uv; without it, pip install "edgartools[ai]" and run python -m edgar.ai. Setup for other clients: MCP server guide · Skill guide.

Support the project

The SEC changes filing formats and ships a new XBRL taxonomy every year. Sponsorship is what keeps the parsers current and pays for new ones as new disclosures appear.

  • GitHub Sponsors: monthly or one-time. Companies can sponsor on their existing GitHub bill.
  • Buy Me a Coffee: a one-time thank-you.
  • Consulting: help from the library's author with SEC data pipelines and financial AI built on it.

Sponsor on GitHub    Buy Me A Coffee

Docs, help and contributing

EdgarTools is distributed under the MIT License.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for EdgarTools — SEC EDGAR filing library with a local MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/edgartools)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics