The AI Native Python library for SEC EDGAR Data
EdgarTools - Python Library for SEC EDGAR Filings
The AI Native Python library for SEC EDGAR Data
The only SEC EDGAR library built from the ground up for AI agents and LLMs. Extract financial data in 3 lines of code instead of 100+. Production-ready MCP server included.
Built with AI-assisted development • 3-10x faster velocity • Support this project
EdgarTools is a Python library for downloading and analyzing SEC EDGAR filings. Extract 10-K, 10-Q, 8-K reports, parse XBRL financial statements, and access insider trading data (Form 4) with a simple Python API. Free and open-source.

Why EdgarTools?
EdgarTools is the fastest, most powerful open-source library for SEC EDGAR data extraction. Built for financial analysts, data scientists, and AI developers who need reliable, production-ready access to SEC filings.
|
|
|
|
|
|
How It Works
# Install the SEC EDGAR Python library
pip install edgartools
# Set your identity (required by SEC regulations)
from edgar import *
set_identity("your.name@example.com")
# Get SEC 10-K, 10-Q filings and XBRL financial statements
balance_sheet = Company("AAPL").get_financials().balance_sheet()
# Access any company's SEC filings
company = Company("MSFT")
# Parse Form 4 insider trading tra
Tools (3)
get_company_filingsRetrieve SEC filings for a specific company ticker.get_financialsExtract financial statements like balance sheets and income statements.get_insider_tradingAccess insider trading data from Form 4 filings.Environment Variables
EDGAR_IDENTITYrequiredRequired by SEC regulations to identify your application (e.g., your.name@example.com)Configuration
{"mcpServers": {"edgartools": {"command": "python", "args": ["-m", "edgar.mcp"]}}}