EdgarTools
概览
作者提供的说明(英文原文)
Open-source SEC EDGAR toolkit — 13 tools, 7 prompts, every filing type. No API key required.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i广泛使用↓ 28.5万/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
- 你需要填写:EDGAR_IDENTITY
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
EDGAR_IDENTITY
你需要
- PyPI已安装 Python 的 uv(用于 uvx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"edgartools": {
"command": "uvx",
"args": [
"edgartools",
"mcp"
],
"env": {
"EDGAR_IDENTITY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add edgartools --env EDGAR_IDENTITY=your-value -- uvx edgartools mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"edgartools": {
"command": "uvx",
"args": [
"edgartools",
"mcp"
],
"env": {
"EDGAR_IDENTITY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"edgartools": {
"type": "stdio",
"command": "uvx",
"args": [
"edgartools",
"mcp"
],
"env": {
"EDGAR_IDENTITY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Your name and email for SEC EDGAR API identification (e.g. 'Your Name your.email@example.com')
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 dgunning 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5732 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5732 个服务器的 70% 更新
- 基础检查结果等于或优于此分类中其他 5732 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
EdgarTools 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:EDGAR_IDENTITY
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(5.62.1)于17天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
EdgarTools — Python Library for SEC EDGAR Filings
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](https://edgartools.readthedocs.io/en/latest/) · [Cheat sheet](https://edgartools.readthedocs.io/en/latest/quick-guide/) · Agents: [Skill](https://edgartools.readthedocs.io/en/latest/ai/skills/) · [MCP server](https://edgartools.readthedocs.io/en/latest/ai/mcp-setup/) · Hosted: [edgar.tools](https://www.edgar.tools)
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 →](https://edgartools.readthedocs.io/en/latest/guides/full-text-search/)
Financial statements over several years
Company("MSFT").income_statement(periods=10) # also .balance_sheet() and .cash_flow_statement()
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 →](https://edgartools.readthedocs.io/en/latest/concepts/data-objects/)
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 →](https://edgartools.readthedocs.io/en/latest/guides/searching-filings/)
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 →](https://edgartools.readthedocs.io/en/latest/guides/thirteenf-data-object-guide/)
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 →](https://edgartools.readthedocs.io/en/latest/insider-filings/)
Fund holdings from N-PORT
from edgar import Fund
Fund("VOO").get_portfolio() # the latest N-PORT holdings as a DataFrame
[Fund Portfolios guide →](https://edgartools.readthedocs.io/en/latest/guides/nport-data-object-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 →](https://edgartools.readthedocs.io/en/latest/eightk-filings/)
Library or hosted?
EdgarTools is this library: free, MIT-licensed, running in your own Python process. [edgar.tools](https://www.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 network | The 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 Python | [edgar.tools](https://app.edgar.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 pipeline | [edgar.tools data licensing](https://www.edgar.tools/data) |
| Fetch one known filing or one JSON document, once, from a script | Neither: 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](https://github.com/sponsors/dgunning): monthly or one-time. Companies can sponsor on their existing GitHub bill.
- [Buy Me a Coffee](https://www.buymeacoffee.com/edgartools): a one-time thank-you.
- [Consulting](https://www.edgar.tools/consulting): help from the library's author with SEC data pipelines and financial AI built on it.
Docs, help and contributing
- Documentation · Cheat sheet · Notebooks · Blog
- Questions go to Discussions; bugs and feature requests to Issues.
- Contributions are welcome, including AI-assisted ones. Read the contributing guide and point your assistant at AGENTS.md.
EdgarTools is distributed under
只显示了开头部分;其余内容请在仓库中阅读