# Use SEC EDGAR data in Claude Code

Canonical: https://sec-api.dev/use-with-claude

> Add sec-api.dev as a remote MCP server in Claude Code.

1. Create a free sec-api.dev account and copy an API key from the dashboard.
2. Run the command below in your project. Use --scope user to make the server available in every project.
3. Start Claude Code and run /mcp to confirm sec-api is connected and lists 12 tools.

Terminal (stored in ~/.claude.json, or .mcp.json with --scope project):

```bash
export SEC_API_KEY="your-key"
claude mcp add --transport http sec-api https://sec-api.dev/api/mcp \
  --header "Authorization: Bearer $SEC_API_KEY"
```

The header value is stored in Claude Code’s configuration when you add the server. Rotate the key from the dashboard if that file is shared.

Sources: https://code.claude.com/docs/en/mcp

Other clients: https://sec-api.dev/use-with-claude, https://sec-api.dev/use-with-cursor, https://sec-api.dev/use-with-codex, https://sec-api.dev/use-with-gemini, https://sec-api.dev/use-with-vscode

---
Independent. Not affiliated with, endorsed by, or sponsored by the U.S. Securities and Exchange Commission. Data is reproduced from public SEC filings and datasets. Not investment advice.
API: https://sec-api.dev/docs · ChatGPT app: https://chatgpt.com/plugins/plugin_asdk_app_6ae0ef2436ac8191941dae8a4d732669 · Free key: https://sec-api.dev/sign-up
