# EdgarTools MCP server

> Lets an AI client access structured SEC EDGAR filing data, including financial statements, insider trades, and full-text search capabilities.

- Repository: https://github.com/dgunning/edgartools
- Page: https://hostedmcp.org/servers/dgunning/edgartools
- Transport: stdio
- Stars: 2855
- License: MIT
- Latest version: 6.2.0

## Install

### Claude Code

```sh
claude mcp add --env 'EDGAR_IDENTITY=<EDGAR_IDENTITY>' edgartools -- uvx edgartools
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "edgartools": {
      "command": "uvx",
      "args": [
        "edgartools"
      ],
      "env": {
        "EDGAR_IDENTITY": "<EDGAR_IDENTITY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "edgartools": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "edgartools"
      ],
      "env": {
        "EDGAR_IDENTITY": "<EDGAR_IDENTITY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"edgartools","type":"stdio","command":"uvx","args":["edgartools"],"env":{"EDGAR_IDENTITY":"<EDGAR_IDENTITY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "edgartools": {
      "command": "uvx",
      "args": [
        "edgartools"
      ],
      "env": {
        "EDGAR_IDENTITY": "<EDGAR_IDENTITY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add edgartools --env 'EDGAR_IDENTITY=<EDGAR_IDENTITY>' -- uvx edgartools
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.edgartools]
command = "uvx"
args = ["edgartools"]

[mcp_servers.edgartools.env]
EDGAR_IDENTITY = "<EDGAR_IDENTITY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'EDGAR_IDENTITY=<EDGAR_IDENTITY>' edgartools uvx -- edgartools
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "edgartools": {
      "command": "uvx",
      "args": [
        "edgartools"
      ],
      "env": {
        "EDGAR_IDENTITY": "<EDGAR_IDENTITY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `EDGAR_IDENTITY` | yes | no | Your name and email for SEC EDGAR API identification (e.g. 'Your Name your.email@example.com') |

## FAQ

### Can I search for specific text within SEC filings?

Yes, you can perform full-text searches across every filing since 2001, including specific form types and dates.

### What kind of financial data can be extracted?

The tool provides structured data for income statements, balance sheets, cash flow statements, 13F holdings, and insider trades.
