# Use SEC EDGAR data in Cursor

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

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

1. Create a free sec-api.dev account and copy an API key.
2. Set SEC_API_KEY in the environment Cursor starts with, then restart Cursor.
3. Add the configuration below and enable the server in Settings, MCP.

~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

```json
{
  "mcpServers": {
    "sec-api": {
      "url": "https://sec-api.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer ${env:SEC_API_KEY}"
      }
    }
  }
}
```

Cursor resolves ${env:NAME} at startup, so the file itself holds no secret.

Sources: https://cursor.com/docs/context/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
