SEC API docs ▾

Troubleshooting the SEC API, MCP server and CLI

401 or 429?

  • 401 missing_key: nothing identified you. The key or sign-in didn't reach the server: a header was dropped, an environment variable was empty, or the client never finished signing in.
  • 401 invalid_key or invalid_token: something arrived but isn't valid. The key was revoked or mistyped (keys start with qs_), or the sign-in expired.
  • 429 rate_limited: too many requests in one second for your plan. Wait for retry-after (one second) and send it again.
  • 429 quota_exceeded: the plan's calls for the month and your credits are used up. Retrying won't help until the reset on the 1st (UTC) or an upgrade on the keys page. Nothing is charged for the refused calls.

npx quantisnow usage or GET /v1/usage shows which it is, and neither costs a call. A new account starts with 20 free calls; a quota_exceeded soon after signing up usually means they're used.

The sign-in keeps coming back

  • Finish the whole flow in the browser window: sign in, then press Allow. Closing the window at the consent screen leaves the client without a token, and it asks again.
  • Blocked third-party cookies or a strict privacy extension can stop the window from returning to the client. Allow quantisnow.com for the sign-in, or use an API key instead.
  • Signed in to the wrong Quantisnow account? Sign out on quantisnow.com, then remove and re-add the server so the client asks again.
  • Clients cache tokens. Removing the server and adding it back clears a stale one.

The assistant doesn't use the tools

  • Check the server is switched on for this chat. Claude and ChatGPT list connectors under the message box; Cursor and VS Code list MCP servers in settings with a status dot.
  • Restart the client after editing a config file. Claude Desktop needs a full quit, not just closing the window.
  • Name it in the question: "Use quantisnow to find...". Without that, an assistant may answer from what it already knows.
  • In VS Code and Continue, MCP tools only work in Agent mode.
  • Check the config is valid JSON: a trailing comma makes most clients ignore the whole file. npx quantisnow mcp install <client> --print shows a correct entry to compare against.

Where each client keeps its config

  • Claude Desktop on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json.
  • Claude Desktop on Windows: %APPDATA%\Claude\claude_desktop_config.json.
  • Claude Desktop on Linux builds: ~/.config/Claude/claude_desktop_config.json.
  • Claude Code: claude mcp list and claude mcp get quantisnow show what's saved.
  • Cursor: ~/.cursor/mcp.json, or .cursor/mcp.json in a project.
  • VS Code: .vscode/mcp.json in a workspace, or MCP: Open User Configuration.
  • Windsurf: ~/.codeium/windsurf/mcp_config.json. Gemini CLI: ~/.gemini/settings.json. Codex CLI: ~/.codex/config.toml.

mcp install keeps the previous file next to the new one as .bak, so you can always go back.

Logs

  • Claude Desktop: ~/Library/Logs/Claude on macOS and %APPDATA%\Claude\logs on Windows; mcp-server-quantisnow.log has the server's output.
  • Claude Code: start it with claude --debug to see MCP connection errors.
  • The stdio bridge writes errors to stderr, which clients put in their MCP logs. Run npx -y quantisnow mcp in a terminal to see them directly; it waits for input, so stop it with Ctrl+C.

Corporate networks and proxies

  • Everything goes over HTTPS to www.quantisnow.com on port 443: the API at https://www.quantisnow.com/api/v1 and the MCP server at https://www.quantisnow.com/api/v1/mcp. Ask your network team to allow that host.
  • The CLI and the stdio bridge use Node's built-in fetch, which ignores the system proxy and HTTPS_PROXY unless told otherwise. On recent Node releases, set both HTTPS_PROXY=http://proxy.example:8080 and NODE_USE_ENV_PROXY=1.
  • A proxy that inspects TLS uses its own certificate. Point Node at it with NODE_EXTRA_CA_CERTS=/path/to/company-root.pem.
  • Some proxies buffer streamed responses. The MCP server answers with plain JSON, so it works through them; the live filing stream (Business plan) needs a proxy that passes Server-Sent Events.

Query errors

400 bad_query (or a tool result starting with Query error:) means the query didn't parse or named a field that doesn't exist. The message says which. Field names are on each dataset page, and the query syntax page covers quoting, ranges and wildcards. Wildcards work only at the end of a word: Black*, not *rock.

A search that takes more than 8 seconds is stopped with a message asking for a narrower query. Add a date range, a form type or a ticker.

Remove the server

  • Claude Code: claude mcp remove quantisnow (add --scope user if you added it there).
  • Claude.ai and Claude Desktop connectors: Settings, Connectors, the menu next to Quantisnow, Remove.
  • ChatGPT: Settings, Apps and Connectors, Quantisnow, Delete.
  • File-based clients: delete the quantisnow entry from the config file above, or restore the .bak file.
  • To cut off every client at once, revoke the key on the keys page. Signed-in connectors stop working once you remove them.

Still stuck? Write to quantisnow@quantisnow.com with the client, what you ran and the exact error. Leave the key out of the email.

Run your own queries with a key

Sign up, press one button on the keys page and the key is on your screen, with 20 free calls to try it.

Quantisnow is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. EDGAR is the SEC's filing system; the filings themselves are public records.