# Use SEC EDGAR data in VS Code

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

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

1. Create a free sec-api.dev account and copy an API key.
2. Add the configuration below. VS Code prompts for the key once and stores it securely.
3. Open the Chat view in agent mode and enable the sec-api tools.

.vscode/mcp.json (workspace) or the user MCP configuration:

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "sec-api-key",
      "description": "sec-api.dev API key",
      "password": true
    }
  ],
  "servers": {
    "sec-api": {
      "type": "http",
      "url": "https://sec-api.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer ${input:sec-api-key}"
      }
    }
  }
}
```

The input variable keeps the key out of the file. Use ${env:SEC_API_KEY} instead if you prefer environment variables.

Sources: https://code.visualstudio.com/docs/agents/reference/mcp-configuration

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
