
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
edgartools
Advanced tools
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 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 |
EdgarTools provides a clean abstraction layer over the SEC EDGAR database, handling all the complexity of SEC data access, parsing, and transformation:
%%{init: {'theme':'base', 'themeVariables': { 'primaryColor':'#FFD700', 'primaryTextColor':'#3d5875', 'primaryBorderColor':'#3d5875', 'lineColor':'#3d5875', 'secondaryColor':'#f8f9fa', 'tertiaryColor':'#ffffff'}}}%%
graph LR
A[Your Code] -->|Simple API| B[EdgarTools]
B -->|Fetches| C[SEC EDGAR]
B -->|Parses| D[Structured Data]
D -->|Returns| E[DataFrames]
D -->|Returns| F[Objects]
D -->|Returns| G[Clean Text]
style A fill:#FFD700,stroke:#3d5875,stroke-width:2px,color:#3d5875
style B fill:#3d5875,stroke:#FFD700,stroke-width:2px,color:#FFD700
style C fill:#3d5875,stroke:#3d5875,stroke-width:2px,color:#FFD700
style D fill:#f8f9fa,stroke:#3d5875,stroke-width:2px,color:#3d5875
style E fill:#ffffff,stroke:#FFD700,stroke-width:2px,color:#3d5875
style F fill:#ffffff,stroke:#FFD700,stroke-width:2px,color:#3d5875
style G fill:#ffffff,stroke:#FFD700,stroke-width:2px,color:#3d5875
For a comprehensive view of EdgarTools' internal architecture, see the Architecture Documentation.
# 1. Install
pip install edgartools
# 2. Set your identity (required by SEC regulations)
from edgar import *
set_identity("your.name@example.com")
# 3. Get company financials in 1 line
balance_sheet = Company("AAPL").get_financials().balance_sheet()
# 4. Explore with interactive documentation
company = Company("MSFT")
# 5. Or explore insider transactions
filings = company.get_filings(form="4")
form4_filing = filings[0]
form4 = form4_filing.obj()

|
Financial Statements (XBRL)
Fund Holdings (13F)
Company Dataset & Reference Data
Insider Transactions
|
Filing Intelligence
Performance & Reliability
Developer Experience
|
| 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 your.email@example.com"
}
}
}
}
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.
|
1️⃣ You Support Buy Me A Coffee contributions fund Claude Max |
2️⃣ AI Acceleration Specialized agents deliver 3-10x faster development |
3️⃣ Rapid Delivery Features in days instead of weeks 24 releases / 60 days |
4️⃣ 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
FAQs
Navigate Edgar filings with ease
We found that edgartools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.