MCP 服务

edgrapi-skills|美国政府数据与SEC财报的托管MCP服务器及Python技能集

edgrapi-skills

将SAM.gov、USAspending、Grants.gov、美国众议院交易和SEC EDGAR数据统一为JSON,通过托管MCP服务器和Python技能供AI代理调用。

获取与使用

可连接

按官方资料配置客户端连接服务

使用难度待核验
国内可用性待核验

2026-11-09 更新 · 本站尚未实测

项目介绍

MCP 服务 · 2026-11-09 更新 · 本站尚未实测

edgrapi-skills 把五个美国政府公开数据源——SAM.gov 合同机会、USAspending 拨款与合同、Grants.gov 资助机会、美国众议院 STOCK Act 股票交易披露、SEC EDGAR 公司披露——归一化成同一套 JSON 结构,供 AI 代理调用。它提供三种使用形态:托管 MCP 服务器、可安装的 Python 客户端,以及本仓库内的 Python 技能(skills)。

项目要解决的是原始数据源的字段与分页问题,例如 SAM.gov 使用 ncode 而非 naics、日期格式为 MM/dd/yyyy、查询窗口上限一年;USAspending 在 10,000 条记录处 hasNext 返回 false,而真实数据延续到 50,000 条;EDGAR 存在 XBRL 标签漂移。Edgrapi 表示会把这些统一为一份可一次调用取回的 schema。

需要说明:Edgrapi 是独立服务,与 SEC、GSA、SAM.gov、USAspending.gov、Grants.gov 或美国众议院没有隶属、背书或赞助关系。

核心能力

点击能力名称查看输入、输出和原文依据。

托管 MCP 服务器共提供 19 个只读工具,按来源划分如下(详见 README 表格):

  • SAM.gov:get_opportunities,按 NAICS、set-aside、州、类型查询合同机会,2 积分。
  • USAspending:get_awards,查询合同、拨款、贷款、直接支付,2 积分。
  • Grants.gov:get_grants,查询资助机会,含 CFDA 编号与截止日期,2 积分。
  • 美国众议院:get_congress,查询 STOCK Act 股票交易,2 积分。
  • SEC EDGAR:包括 get_insider(Form 4,含 cluster-buy 检测)、get_holdings(13F,按季度差分)、get_activist(13D/G 超 5% 持仓)、get_events(分类 8-K)、get_fundamentals、get_ratios、get_sections、get_company、get_filings,以及 XBRL 转 JSON、实体解析、全文检索,积分 1–5 不等。

仓库内的四个 Python 技能均为纯标准库、无第三方依赖:edgrapi-full(9 个工具,覆盖全部五源)、edgrapi-gov(5 个工具,政府四源)、edgrapi-fundamentals(2 个工具,标准化财报与比率)、edgrapi-filings(2 个工具,公司档案与近期 10-K/10-Q/8-K)。

实际应用场景

适用场景

  • 需要把美国联邦合同机会、拨款、资助信息接入 AI 助手进行检索汇总。
  • 需要查询上市公司内部人交易、13F 持仓、维权股东披露和 8-K 事件。
  • 希望在 Claude Desktop、Claude Code、Cursor、Cline 等 MCP 客户端中直接调用上述数据,而不自行处理各源字段差异与分页边界。
  • 以 Python 脚本或技能方式批量获取标准化财报与比率。

安装与接入

资料给出四种方式,原文如下:

  1. 托管 MCP 服务器:无需安装、无本地进程,把客户端指向 https://api.edgrapi.com/mcp,在请求头放 Authorization: Bearer <API_KEY>。传输为 streamable-http,鉴权为 bearer edgr_ 密钥或带 PKCE 的 OAuth 2.1;服务器自身即身份提供方并支持动态客户端注册。initialize、tools/list 开放,无密钥也可查看工具列表,tools/call 需要密钥。
  2. Python 客户端:pip install edgrapi
  3. Docker 容器方式:docker run -e EDGRAPI_API_KEY=edgr_... ghcr.io/paperandbeyond23-gif/edgrapi-mcp:latest
  4. 通过 skills CLI 安装本仓库技能:
    • npx skills add paperandbeyond23-gif/edgrapi-skills --all
    • npx skills add paperandbeyond23-gif/edgrapi-skills --skill edgrapi-full

使用 Python 技能时设置环境变量 EDGRAPI_KEY(格式 edgr_...),密钥以 X-API-Key 请求头发送,base URL 硬编码,项目方说明密钥不会发送至其他主机,本站未进行安全审计。示例:export EDGRAPI_KEY="edgr_..."。

该项目也已列于 Official MCP Registry,标识为 io.github.paperandbeyond23-gif/edgrapi-skills。

Auth

bearer edgr_ key 或 OAuth 2.1 with PKCE

使用条件与限制

是否需要部署
服务入口见官方资料,客户端与认证要求见正文
是否需要注册
账号和认证要求见正文;未明确说明的项目仍待核验
是否需要 API Key
待核验
费用与额度
费用边界见正文,项目许可不代表模型或托管服务免费
所需权限
待核验
许可证与服务条款
待核验

权限费用与限制

费用:免费档一次赠送 50 积分、无需信用卡;付费档按 README 列出 Starter $10/月 10,000 积分、Pro $29/月 30,000 积分、Pro 年付 $290/年 360,000 积分、Business $99/月 150,000 积分;另有一次性、不过期的补充包:5,000/$7、15,000/$18、50,000/$55;付费档积分可结转。以上价格来自 README,实际计费与条款请向官方页面核验。

积分按接口加权,调用实际消耗见响应头 X-Credits-Cost。

权限:MCP 工具全部为只读。

已知限制(README 明确列出):

  • 众议院交易仅覆盖美国众议院,以美元区间披露,依法最多滞后 45 天。
  • 不提供州与地方(SLED)采购,仅联邦层面。
  • 合同提醒为每日轮询而非实时,通知可能滞后最多一天。
  • 数据新鲜度遵循各源自身节奏,Edgrapi 只做归一化,不持有或改写数据。
  • USAspending 检索不能早于 2007-10-01,EDGAR 全文检索覆盖 2001 年起。

国内使用情况

网友核验 用户经验分享

与站长实测独立,不代表官方认证或本站已实测。

我要核验
0 位参与者0 份有效分项记录

最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。

分项统计、有效期与样本量
核验项目有效人数成功 / 部分 / 失败 / 无法判断成功率最近核验 / 有效期
官方网站访问00 / 0 / 0 / 0样本不足暂无 / 7 天
GitHub 仓库访问00 / 0 / 0 / 0样本不足暂无 / 7 天
安装与运行00 / 0 / 0 / 0样本不足暂无 / 30 天
官方服务国内连接 / MCP 连接00 / 0 / 0 / 0样本不足暂无 / 30 天
国内网络情况00 / 0 / 0 / 0样本不足暂无 / 7 天
国内模型兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
自定义 API00 / 0 / 0 / 0样本不足暂无 / 30 天
海外服务依赖
00 / 0 / 0 / 0样本不足暂无 / 30 天
海外账号要求
00 / 0 / 0 / 0样本不足暂无 / 30 天
中文界面
00 / 0 / 0 / 0样本不足暂无 / 30 天
客户端兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
账号及费用信息
00 / 0 / 0 / 0样本不足暂无 / 30 天

成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。

最近有效核验

暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。

查看全部有效核验 →

国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。

官方网站访问
尚未实测 待核验
GitHub 仓库访问
尚未实测 待核验
官方服务国内连接
尚未实测 待核验
国内网络情况
尚未实测 待核验
国内模型兼容性
尚未实测 待核验
自定义 API
尚未实测 待核验
海外服务依赖
尚未实测 待核验
海外账号要求
尚未实测 待核验
中文界面
尚未实测 待核验
国内最后核验时间
尚未实测

许可与国内使用

仓库代码使用 MIT No Attribution(MIT-0)许可,允许复制、修改、合并、发布、再许可与销售,无需署名,以“按原样”提供且不附带担保。该许可仅针对本仓库代码;托管的 Edgrapi API、付费积分、第三方数据源及可能的云服务条款需另行确认,公开仓库不等于服务免费。

国内使用方面,资料未说明在中国大陆的访问可用性、延迟或数据合规安排,需待核验。文档与注册页均为 edgrapi.com 域名,服务部署地域未在资料中说明,域名不代表部署位置。

项目资料与来源

官方网站 ↗

GitHub 仓库 ↗

官方文档 ↗

字段依据与待核验事项

access:来源确认 · Nothing to install, no local process. Point any MCP client at one URL:

project_type:来源确认 · served as a hosted MCP server plus drop-in Python skills

原始 README(折叠技术参考)
# edgrapi-skills

**US government data for AI agents — five official sources, one key, one JSON schema.**

SAM.gov contract opportunities, USAspending awards, Grants.gov funding, US House STOCK Act trades,
and SEC EDGAR filings, served as a hosted MCP server plus drop-in Python skills, over the
[Edgrapi API](https://edgrapi.com).

Every one of those sources is free and public. Each also ships its own headache: SAM.gov takes
`ncode` where you'd expect `naics` and silently ignores unknown filters, its dates are MM/dd/yyyy
and its query window caps at a year; USAspending's `hasNext` goes false at record 10,000 while real
rows continue to 50,000; EDGAR gives you XBRL tag drift. Edgrapi normalises all of it into one
schema so your agent gets numbers it can trust in one call.

Free to start — [grab a key](https://edgrapi.com/app), 50 free credits to start, no card.

Pure Python standard library. No dependencies. MIT-0 licensed.

## Fastest path: the hosted MCP server

Nothing to install, no local process. Point any MCP client at one URL:

```json
{
  "mcpServers": {
    "edgrapi": {
      "url": "https://api.edgrapi.com/mcp",
      "headers": { "Authorization": "Bearer <API_KEY>" }
    }
  }
}
```

Works in Claude Desktop, Claude Code, Cursor and Cline. Transport is streamable-http. Auth is a
bearer `edgr_` key or OAuth 2.1 with PKCE — the server is its own provider and supports dynamic
client registration. Discovery (`initialize`, `tools/list`) is open, so you can inspect the full
tool list before you have a key; `tools/call` needs one.

## Other ways in

```bash
# Python client
pip install edgrapi

# Docker — the MCP server as a container
docker run -e EDGRAPI_API_KEY=edgr_... ghcr.io/paperandbeyond23-gif/edgrapi-mcp:latest

# Python skills from this repo, via the skills CLI
npx skills add paperandbeyond23-gif/edgrapi-skills --all
npx skills add paperandbeyond23-gif/edgrapi-skills --skill edgrapi-full
```

Also listed in the [Official MCP Registry](https://registry.modelcontextprotocol.io) as
`io.github.paperandbeyond23-gif/edgrapi-skills`.

## What the MCP server covers

19 tools, all read-only.

| Source | Tools | Credits |
|---|---|---|
| **SAM.gov** | `get_opportunities` — contract opportunities by NAICS, set-aside, state, type | 2 |
| **USAspending** | `get_awards` — contracts, grants, loans, direct payments | 2 |
| **Grants.gov** | `get_grants` — funding opportunities with CFDA numbers and deadlines | 2 |
| **Congress** | `get_congress` — US House STOCK Act stock trades | 2 |
| **SEC EDGAR** | `get_insider` (Form 4, with cluster-buy detection), `get_holdings` (13F, diffed quarter-over-quarter), `get_activist` (13D/G >5% stakes), `get_events` (typed 8-K), `get_fundamentals`, `get_ratios`, `get_sections`, `get_company`, `get_filings`, XBRL-to-JSON, entity resolution, full-text search | 1–5 |

For the live list, call `tools/list` or read the
[server card](https://api.edgrapi.com/.well-known/mcp/server-card.json) — both are generated from
the server, so neither goes stale.

## Skills in this repo

Drop-in Python, pure standard library. Install all of them or just the one you need.

| Skill | Tools | Purpose |
|---|---|---|
| [`edgrapi-full`](skills/edgrapi-full) | 9 | Everything below in one skill, across all five sources |
| [`edgrapi-gov`](skills/edgrapi-gov) | 5 | SAM.gov opportunities, USAspending awards, Grants.gov, congressional trades |
| [`edgrapi-fundamentals`](skills/edgrapi-fundamentals) | 2 | Normalised financial statements + computed ratios |
| [`edgrapi-filings`](skills/edgrapi-filings) | 2 | Company profiles + recent 10-K/10-Q/8-K |

## Authentication

Set `EDGRAPI_KEY` to your key (format `edgr_...`). It is sent as the `X-API-Key` header, and the
base URL is hardcoded, so the key never reaches any other host.

```bash
export EDGRAPI_KEY="edgr_..."
```

**[Get a free key](https://edgrapi.com/app)** — 50 credits to start, no card. The same key works
for the skills, the MCP server and direct REST.

## Pricing

Credits are weighted by endpoint, not one per request. Government endpoints cost 2. On the SEC side,
company, filings, events, entity resolution and full-text search cost 1; fundamentals, ratios and
XBRL cost 3; sections, insider, holdings and activist cost 5. The exact cost of a call comes back in
the `X-Credits-Cost` header.

| Plan | Price | Credits |
|---|---|---|
| Free | $0 | 50 to start (one-time) |
| Starter | $10/mo | 10,000 / month |
| Pro | $29/mo | 30,000 / month |
| Pro annual | $290/yr | 360,000 up front |
| Business | $99/mo | 150,000 / month |

Top-up packs, one-time and never expiring: 5,000 / $7 · 15,000 / $18 · 50,000 / $55. Paid-plan
credits roll over. Full details at <https://edgrapi.com/pricing>. Also available metered on RapidAPI.

## Limits, stated plainly

- **Congressional trades are US House only**, reported as dollar ranges, and lag up to 45 days by law.
- **No state or local (SLED) procurement.** Federal only.
- **Contract alerts poll daily**, not in realtime, so a notice can be up to a day old when it lands.
- **Freshness is each source's own cadence.** Edgrapi normalises the official feeds; it does not
  hold or restate anything.
- USAspending search cannot reach before 2007-10-01, and EDGAR full-text search covers 2001 onward.

## Source

- Docs: <https://edgrapi.com/docs> · OpenAPI 3.1: <https://edgrapi.com/openapi.json>
- Agent guide: <https://edgrapi.com/agents> · Status: <https://edgrapi.com/status>

## Issues and contributions

See [CONTRIBUTING.md](CONTRIBUTING.md). Security reports: [SECURITY.md](SECURITY.md).

## License

[MIT No Attribution](LICENSE). Fork, ship, sublicense — no attribution required.

## Independence

Edgrapi is an independent service, not affiliated with, endorsed by or sponsored by the U.S.
Securities and Exchange Commission, the General Services Administration, SAM.gov, USAspending.gov,
Grants.gov, or the U.S. House of Representatives. All data originates from those bodies' public
systems and is in the public domain.
历史前置条件说明(补充参考)

前置环境:MCP客户端(如Claude Desktop、Claude Code、Cursor、Cline)或Python环境与pip,或Docker与npx(skills CLI)。权限:需Edgrapi API密钥(格式edgr_...),MCP工具为只读。费用:免费档赠50积分,付费档价格见README(Starter $10/月、Pro $29/月、Pro年付 $290/年、Business $99/月),具体条款待向官方核验。境外依赖:数据服务由edgrapi.com托管,需要互联网访问该域名;中国大陆访问可用性待核验。模型/API Key:项目本身不涉及大模型,但接入AI客户端需相应客户端配置;数据调用需Edgrapi密钥。

项目来源与清单版权许可

https://github.com/paperandbeyond23-gif/edgrapi-skills

整理来源:https://github.com/slavakurilyak/awesome-ai-agents

清单版权与许可:

MIT License

Copyright (c) 2024 Slava Kurilyak

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.