# 安装 SEC EDGAR

- 类型: MCP 工具
- 说明: 检索SEC财报、XBRL数据和全文披露文件
- 仓库: https://github.com/danishashko/edgar-mcp
- ⚠ 安全: 该 MCP 工具主要面向公开的 SEC EDGAR 数据检索，材料未见明显越权、隐蔽外传或凭证滥用红旗。基于官方 Registry、开源且近期维护，整体偏低风险，但因需要本地执行、存在网络访问且文档较少，仍建议按常规谨慎接入。

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "SEC EDGAR" MCP 服务：
执行：claude mcp add io-github-danishashko-edgar-mcp -- npx -y edgar-mcp
```

### Codex
```
请帮我安装 askskill 上的 "SEC EDGAR" MCP 服务：
在 ~/.codex/config.toml 中添加：
[mcp_servers.io-github-danishashko-edgar-mcp]
command = "npx"
args = ["-y","edgar-mcp"]
然后重启 Codex 生效
```

### Cursor
```
请帮我安装 askskill 上的 "SEC EDGAR" MCP 服务：
在 .cursor/mcp.json 的 "mcpServers" 中添加：
"io-github-danishashko-edgar-mcp": { "command": "npx", "args": ["-y","edgar-mcp"] }
然后在 Cursor 设置 > MCP 中启用
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
claude mcp add --env SEC_USER_AGENT=YOUR_VALUE --transport stdio io-github-danishashko-edgar-mcp -- npx -y edgar-mcp
```
需要环境变量：SEC_USER_AGENT

### Codex
```bash
codex mcp add --env SEC_USER_AGENT=YOUR_VALUE io-github-danishashko-edgar-mcp -- npx -y edgar-mcp
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.io-github-danishashko-edgar-mcp]
command = "npx"
args = ["-y","edgar-mcp"]

[mcp_servers.io-github-danishashko-edgar-mcp.env]
SEC_USER_AGENT = "YOUR_VALUE"
```
需要环境变量：SEC_USER_AGENT

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "io-github-danishashko-edgar-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "edgar-mcp"
      ],
      "env": {
        "SEC_USER_AGENT": "YOUR_VALUE"
      }
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=io-github-danishashko-edgar-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImVkZ2FyLW1jcCJdLCJlbnYiOnsiU0VDX1VTRVJfQUdFTlQiOiJZT1VSX1ZBTFVFIn19
需要环境变量：SEC_USER_AGENT
