EdgarTools MCP

EdgarTools MCP

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.

Category
访问服务器

README

<p align="center"> <a href="https://github.com/dgunning/edgartools"> <img src="docs/images/edgartools-logo.png" alt="EdgarTools Python SEC EDGAR library logo" height="80"> </a> </p>

<h1 align="center">EdgarTools - Python Library for SEC EDGAR Filings</h1> <h3 align="center">The AI Native Python library for SEC EDGAR Data</h3>

<p align="center"> <a href="https://pypi.org/project/edgartools"><img src="https://img.shields.io/pypi/v/edgartools.svg" alt="PyPI - Version"></a> <a href="https://github.com/dgunning/edgartools/actions"><img src="https://img.shields.io/github/actions/workflow/status/dgunning/edgartools/python-hatch-workflow.yml" alt="GitHub Workflow Status"></a> <a href="https://www.codefactor.io/repository/github/dgunning/edgartools"><img src="https://www.codefactor.io/repository/github/dgunning/edgartools/badge" alt="CodeFactor"></a> <a href="https://github.com/pypa/hatch"><img src="https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg" alt="Hatch project"></a> <a href="https://github.com/dgunning/edgartools/blob/main/LICENSE"><img src="https://img.shields.io/github/license/dgunning/edgartools" alt="GitHub"></a> <a href="https://pypi.org/project/edgartools"><img src="https://img.shields.io/pypi/dm/edgartools" alt="PyPI - Downloads"></a> </p>

<p align="center"> <img src="docs/images/badges/badge-ai-native.svg" alt="AI Native"> <img src="docs/images/badges/badge-10x-faster.svg" alt="10x Faster"> <img src="docs/images/badges/badge-zero-cost.svg" alt="Zero Cost"> <img src="docs/images/badges/badge-production-ready.svg" alt="Production Ready"> <img src="docs/images/badges/badge-open-source.svg" alt="Open Source"> <img src="docs/images/badges/badge-financial-data.svg" alt="Financial Data"> </p>

<p align="center"> <b>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.</b> </p>

<p align="center"> <sub>Built with AI-assisted development • 3-10x faster velocity • <a href="#-support-ai-powered-development">Support this project</a></sub> </p>

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 SEC filing data extraction demo

<p align="center"> <img src="docs/images/dividers/divider-hexagons.svg" alt=""> </p>

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.

<table align="center"> <tr> <td align="center" width="33%"> <img src="docs/images/icons/icon-speed.svg" width="80" alt="Lightning Fast"><br> <b>Lightning Fast</b><br> 10-30x faster than alternatives<br> Optimized with lxml & PyArrow </td> <td align="center" width="33%"> <img src="docs/images/icons/icon-ai.svg" width="80" alt="AI Native"><br> <b>AI Native</b><br> Built-in MCP server for Claude<br> LLM-optimized text extraction </td> <td align="center" width="33%"> <img src="docs/images/icons/icon-quality.svg" width="80" alt="Data Quality"><br> <b>Production Quality</b><br> 1000+ tests, type hints<br> Battle-tested by analysts </td> </tr> <tr> <td align="center" width="33%"> <img src="docs/images/icons/icon-xbrl.svg" width="80" alt="XBRL Support"><br> <b>XBRL Native</b><br> Full XBRL standardization<br> Cross-company comparisons </td> <td align="center" width="33%"> <img src="docs/images/icons/icon-data.svg" width="80" alt="Rich Data"><br> <b>Rich Data Objects</b><br> Smart parsing for every form<br> Pandas-ready DataFrames </td> <td align="center" width="33%"> <img src="docs/images/icons/icon-community.svg" width="80" alt="Open Source"><br> <b>Open Source</b><br> MIT license, community-driven<br> Transparent & auditable </td> </tr> </table>

<p align="center"> <img src="docs/images/dividers/divider-hexagons.svg" alt=""> </p>

How It Works

<p align="center"> <img src="docs/images/how-it-works.svg" alt="How EdgarTools Python library extracts SEC EDGAR filing data"> </p>

<p align="center"> <img src="docs/images/dividers/divider-hexagons.svg" alt=""> </p>

<p align="center"> <img src="docs/images/sections/section-quick-start.svg" alt="Quick Start"> </p>

# 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 transactions
filings = company.get_filings(form="4")
form4_filing = filings[0]
form4 = form4_filing.obj()

Apple SEC Form 4 insider transaction data extraction with Python

<p align="center"> <img src="docs/images/dividers/divider-hexagons.svg" alt=""> </p>

Use Cases

Analyze 13F Institutional Holdings & Hedge Fund Portfolios

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

Track Insider Trading with SEC Form 4

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

Extract Financial Statements from 10-K and 10-Q Filings

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

Parse 8-K Current Reports for Corporate Events

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

Query XBRL Financial Data Across Companies

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

<p align="center"> <img src="docs/images/dividers/divider-hexagons.svg" alt=""> </p>

<p align="center"> <img src="docs/images/sections/section-features.svg" alt="Key Features"> </p>

Comprehensive SEC Data Access

<table> <tr> <td width="50%" valign="top">

Financial Statements (XBRL)

  • Balance Sheets, Income Statements, Cash Flows
  • Individual line items via XBRL tags
  • Multi-period comparisons with comparative periods
  • Standardized cross-company data
  • Automatic unit conversion
  • Metadata columns (dimensions, members, units)
  • Complete dimensional data support

Fund Holdings (13F)

  • Complete 13F filing history
  • Portfolio composition analysis
  • Position tracking over time
  • Ownership percentages
  • Value calculations

Company Dataset & Reference Data

  • Industry and state filtering
  • Company subsets with metadata
  • Standardized industry classifications
  • SEC ticker/CIK lookups
  • Exchange information

Insider Transactions

  • Form 3, 4, 5 structured data
  • Transaction history by insider
  • Ownership changes
  • Grant and exercise details
  • Automatic parsing

</td> <td width="50%" valign="top">

Filing Intelligence

  • Any form type (10-K, 10-Q, 8-K, S-1, etc.)
  • Complete history since 1994
  • Smart data objects for each form
  • Automatic HTML to clean text
  • Section extraction (Risk Factors, MD&A)

Performance & Reliability

  • 10-30x faster than alternatives
  • Configurable rate limiting (enterprise mirrors supported)
  • Custom SEC data sources (corporate/academic mirrors)
  • Smart caching (30-second fresh filing cache)
  • Robust error handling
  • SSL verification with fail-fast retry
  • Type hints throughout
  • Enterprise configuration →

Developer Experience

  • Intuitive, consistent API
  • Pandas DataFrame integration
  • Rich terminal output
  • Comprehensive documentation
  • 1000+ tests

</td> </tr> </table>

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.

<p align="center"> <img src="docs/images/dividers/divider-hexagons.svg" alt=""> </p>

Comparison with Alternatives

Feature EdgarTools sec-api (paid) OpenEDGAR Manual Scraping
AI/MCP Integration <img src="docs/images/icons/compare-check.svg" width="20"> <img src="docs/images/icons/compare-cross.svg" width="20"> <img src="docs/images/icons/compare-cross.svg" width="20"> <img src="docs/images/icons/compare-cross.svg" width="20">
Cost Free $150+/mo Free Free
Speed 10-30x baseline Fast (API) Slow Slow
XBRL Support <img src="docs/images/icons/compare-check.svg" width="20"> Full <img src="docs/images/icons/compare-partial.svg" width="20"> Partial <img src="docs/images/icons/compare-cross.svg" width="20"> <img src="docs/images/icons/compare-cross.svg" width="20">
Financial Statements <img src="docs/images/icons/compare-check.svg" width="20"> Parsed <img src="docs/images/icons/compare-check.svg" width="20"> Parsed <img src="docs/images/icons/compare-partial.svg" width="20"> Basic <img src="docs/images/icons/compare-cross.svg" width="20"> DIY
LLM-Ready Output <img src="docs/images/icons/compare-check.svg" width="20"> <img src="docs/images/icons/compare-cross.svg" width="20"> <img src="docs/images/icons/compare-cross.svg" width="20"> <img src="docs/images/icons/compare-cross.svg" width="20">
Type Hints <img src="docs/images/icons/compare-check.svg" width="20"> <img src="docs/images/icons/compare-cross.svg" width="20"> <img src="docs/images/icons/compare-partial.svg" width="20"> <img src="docs/images/icons/compare-cross.svg" width="20">
Rate Limiting <img src="docs/images/icons/compare-check.svg" width="20"> Auto N/A (API) <img src="docs/images/icons/compare-cross.svg" width="20"> Manual <img src="docs/images/icons/compare-cross.svg" width="20"> Manual
Open Source <img src="docs/images/icons/compare-check.svg" width="20"> MIT <img src="docs/images/icons/compare-cross.svg" width="20"> Proprietary <img src="docs/images/icons/compare-check.svg" width="20"> Apache N/A

<p align="center"> <img src="docs/images/dividers/divider-hexagons.svg" alt=""> </p>

<p align="center"> <img src="docs/images/sections/section-ai-integration.svg" alt="AI Integration"> </p>

Use EdgarTools with Claude Code & Claude Desktop

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:

  • "Compare Apple and Microsoft's revenue growth rates over the past 3 years"
  • "Which Tesla executives sold more than $1 million in stock in the past 6 months?"
  • "Find all technology companies that filed proxy statements with executive compensation changes"

Claude will write the Python code, execute it, and explain the results - all powered by EdgarTools.

<details> <summary><b>Setup Instructions</b></summary>

Option 1: AI Skills (Recommended)

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.

Option 2: MCP Server

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.

</details>

<p align="center"> <img src="docs/images/dividers/divider-hexagons.svg" alt=""> </p>

<img src="docs/images/icons/emoji-heart.svg" width="24" height="24"> Support AI Powered Development

I build and maintain EdgarTools solo using AI-assisted development. Your support directly funds the Claude Max subscription that makes this extraordinary velocity possible.

The Virtuous Cycle

<table align="center"> <tr> <td align="center" width="25%" valign="top"> <img src="docs/images/icons/emoji-1.svg" width="24" height="24"><br> <b>You Support</b><br><br> Buy Me A Coffee<br> contributions fund<br> Claude Max </td> <td align="center" width="25%" valign="top"> <img src="docs/images/icons/emoji-2.svg" width="24" height="24"><br> <b>AI Acceleration</b><br><br> Specialized agents<br> deliver <b>3-10x faster</b><br> development </td> <td align="center" width="25%" valign="top"> <img src="docs/images/icons/emoji-3.svg" width="24" height="24"><br> <b>Rapid Delivery</b><br><br> Features in <b>days</b><br> instead of weeks<br> 24 releases / 60 days </td> <td align="center" width="25%" valign="top"> <img src="docs/images/icons/emoji-4.svg" width="24" height="24"><br> <b>You Benefit</b><br><br> More features,<br> faster fixes,<br> free forever </td> </tr> </table>

Real Impact: Last 60 Days

<table align="center"> <tr> <td align="center" width="25%" valign="top"> <img src="docs/images/icons/emoji-rocket.svg" width="24" height="24"><br> <h3>24</h3> <b>Releases</b><br> <sub>1 every 2.5 days</sub> </td> <td align="center" width="25%" valign="top"> <img src="docs/images/icons/emoji-lightning.svg" width="24" height="24"><br> <h3>322</h3> <b>Commits</b><br> <sub>5.4 per day</sub> </td> <td align="center" width="25%" valign="top"> <img src="docs/images/icons/emoji-target.svg" width="24" height="24"><br> <h3>3-10x</h3> <b>Velocity</b><br> <sub>vs traditional dev</sub> </td> <td align="center" width="25%" valign="top"> <img src="docs/images/icons/emoji-timer.svg" width="24" height="24"><br> <h3>Days</h3> <b>Not Weeks</b><br> <sub>for major features</sub> </td> </tr> </table>

Recent Examples

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

<p align="center"> <a href="https://github.com/sponsors/dgunning" target="_blank"> <img src="https://img.shields.io/badge/sponsor-30363D?style=for-the-badge&logo=GitHub-Sponsors&logoColor=#EA4AAA" alt="GitHub Sponsors" height="40"> </a>    <a href="https://www.buymeacoffee.com/edgartools" target="_blank"> <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="40"> </a> </p>

What your support enables:

  • <img src="docs/images/icons/emoji-check.svg" width="16" height="16"> Claude Max subscription (AI agents that write, test, and document code)
  • <img src="docs/images/icons/emoji-check.svg" width="16" height="16"> Continued 3-10x development velocity (features in days, not weeks)
  • <img src="docs/images/icons/emoji-check.svg" width="16" height="16"> Rapid response to SEC format changes and bug reports
  • <img src="docs/images/icons/emoji-check.svg" width="16" height="16"> New features based on community needs
  • <img src="docs/images/icons/emoji-check.svg" width="16" height="16"> Free access for everyone, forever (no API keys, no rate limits)

Alternative ways to support:

  • <img src="docs/images/icons/emoji-star.svg" width="16" height="16"> Star the repo on GitHub
  • <img src="docs/images/icons/emoji-bug.svg" width="16" height="16"> Report bugs and contribute fixes
  • <img src="docs/images/icons/emoji-book.svg" width="16" height="16"> Improve documentation
  • <img src="docs/images/icons/emoji-speech.svg" width="16" height="16"> Answer questions in Discussions
  • <img src="docs/images/icons/emoji-link.svg" width="16" height="16"> Share EdgarTools with colleagues

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.

<p align="center"> <img src="docs/images/dividers/divider-hexagons.svg" alt=""> </p>

<p align="center"> <img src="docs/images/sections/section-community.svg" alt="Community & Support"> </p>

Documentation & Resources

Get Help & Connect

Contributing

We welcome contributions from the community! Here's how you can help:

  • Code: Fix bugs, add features, improve documentation
  • Examples: Share interesting use cases and examples
  • Feedback: Report issues or suggest improvements
  • Spread the Word: Star the repo, share with colleagues

See our Contributing Guide for details.


<p align="center"> EdgarTools is distributed under the <a href="LICENSE">MIT License</a> </p>

Star History

Star History Chart

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选