loading…
Search for a command to run...
loading…
Enables LLMs to download, parse, and analyze SEC EDGAR filings, including 10-K/Q reports, XBRL financial statements, and insider trading data. It provides struc
Enables LLMs to download, parse, and analyze SEC EDGAR filings, including 10-K/Q reports, XBRL financial statements, and insider trading data. It provides structured access to institutional holdings, corporate events, and financial facts for comprehensive investment research.
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.

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.
|
Lightning Fast 10-30x faster than alternatives Optimized with lxml & PyArrow |
AI Native Built-in MCP server for Claude LLM-optimized text extraction |
Production Quality 1000+ tests, type hints Battle-tested by analysts |
|
XBRL Native Full XBRL standardization Cross-company comparisons |
Rich Data Objects Smart parsing for every form Pandas-ready DataFrames |
Open Source MIT license, community-driven Transparent & auditable |
# Install the SEC EDGAR Python library
pip install edgartools
# Set your identity (required by SEC regulations)
from edgar import *
set_identity("[email protected]")
# 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 transactions
filings = company.get_filings(form="4")
form4_filing = filings[0]
form4 = form4_filing.obj()

Track what hedge funds and institutional investors own by parsing SEC 13F filings. EdgarTools extracts complete portfolio holdings with position sizes, values, and quarter-over-quarter changes.
from edgar import get_filings
thirteenf = get_filings(form="13F-HR")[0].obj()
thirteenf.holdings # DataFrame of all portfolio positions
Monitor insider buying and selling activity from SEC Form 4 filings. See which executives are purchasing or selling shares, option exercises, and net position changes.
company = Company("TSLA")
form4 = company.get_filings(form="4")[0].obj()
form4.transactions # Insider buy/sell transactions
Get income statements, balance sheets, and cash flow statements from SEC annual and quarterly reports. Data is parsed from XBRL with standardized labels for cross-company comparison.
financials = Company("MSFT").get_financials()
financials.balance_sheet() # Balance sheet with all line items
financials.income_statement() # Revenue, net income, EPS
Access material corporate events as they happen -- earnings releases, acquisitions, executive changes, and more. EdgarTools parses 8-K filings into structured items with full text extraction.
eightk = get_filings(form="8-K")[0].obj()
eightk.items # List of reported event items
Access structured XBRL financial facts for any SEC filer. Query specific line items like revenue or total assets over time, and compare across companies using standardized concepts.
facts = Company("AAPL").get_facts()
facts.to_pandas("us-gaap:Revenues") # Revenue history as DataFrame
Financial Statements (XBRL)
Fund Holdings (13F)
Company Dataset & Reference Data
Insider Transactions
|
Filing Intelligence
Performance & Reliability
Developer Experience
|
EdgarTools supports all SEC form types including 10-K annual reports, 10-Q quarterly filings, 8-K current reports, 13F institutional holdings, Form 4 insider transactions, proxy statements (DEF 14A), and S-1 registration statements. Parse XBRL financial data, extract text sections, and convert filings to pandas DataFrames.
| Feature | EdgarTools | sec-api (paid) | OpenEDGAR | Manual Scraping |
|---|---|---|---|---|
| AI/MCP Integration | ||||
| Cost | Free | $150+/mo | Free | Free |
| Speed | 10-30x baseline | Fast (API) | Slow | Slow |
| XBRL Support | ||||
| Financial Statements | ||||
| LLM-Ready Output | ||||
| Type Hints | ||||
| Rate Limiting | N/A (API) | |||
| Open Source | N/A |
EdgarTools provides AI Skills that enable Claude and other AI assistants to perform sophisticated SEC filing analysis. Once configured, you can ask Claude questions like:
Claude will write the Python code, execute it, and explain the results - all powered by EdgarTools.
Install the EdgarTools skill for Claude Code or Claude Desktop:
pip install "edgartools[ai]"
python -c "from edgar.ai import install_skill; install_skill()"
This adds SEC analysis capabilities to Claude, including 3,450+ lines of API documentation, code examples, and form type reference.
Run EdgarTools as an MCP server for Claude Code or Claude Desktop:
pip install "edgartools[ai]"
python -m edgar.ai
Add to Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"edgartools": {
"command": "python",
"args": ["-m", "edgar.ai"],
"env": {
"EDGAR_IDENTITY": "Your Name [email protected]"
}
}
}
}
See AI Integration Guide for complete documentation.
I build and maintain EdgarTools solo using AI-assisted development. Your support directly funds the Claude Max subscription that makes this extraordinary velocity possible.
|
You Support Buy Me A Coffee contributions fund Claude Max |
AI Acceleration Specialized agents deliver 3-10x faster development |
Rapid Delivery Features in days instead of weeks 24 releases / 60 days |
You Benefit More features, faster fixes, free forever |
24Releases1 every 2.5 days |
322Commits5.4 per day |
3-10xVelocityvs traditional dev |
DaysNot Weeksfor major features |
| Feature | Traditional Estimate | With AI | Speedup |
|---|---|---|---|
| XBRL Period Selection | 3-4 weeks | 5 days | 7x faster |
| MCP Workflow Tools | 2-3 weeks | 2 days | 10x faster |
| HTML Parsing Rewrite | 2 weeks | 3 days | 4x faster |
| Standardized Concepts API | 2 weeks | 2-3 days | 5x faster |
What your support enables:
Alternative ways to support:
Corporate users: If your organization depends on EdgarTools for SEC compliance or regulatory reporting, GitHub Sponsors offers strategic sponsorship options designed for mission-critical dependencies.
We welcome contributions from the community! Here's how you can help:
See our Contributing Guide for details.
EdgarTools is distributed under the MIT License
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"edgartools-mcp": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.