# Use SEC EDGAR data in Gemini CLI

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

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

1. Create a free sec-api.dev account and copy an API key.
2. Export SEC_API_KEY before starting Gemini CLI.
3. Add the server below to settings.json and run /mcp to confirm the tools.

~/.gemini/settings.json (user) or .gemini/settings.json (project):

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

httpUrl selects streamable HTTP; url would select SSE, which this server does not use.

Sources: https://geminicli.com/docs/tools/mcp-server/

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
