Add the SEC MCP server to OpenAI Codex CLI
Codex CLI starts MCP servers listed in ~/.codex/config.toml. Ours runs through the quantisnow CLI's local bridge.
With the CLI
npx quantisnow loginnpx quantisnow mcp install codexThis adds the block below to ~/.codex/config.toml, unless a quantisnow server is already there. Add --print to see it without writing. Restart Codex afterwards.
By hand
[mcp_servers.quantisnow]
command = "npx"
args = ["-y", "quantisnow", "mcp"]
# To use an API key instead of npx quantisnow login:
# env = { QUANTISNOW_API_KEY = "qs_your_key" }npx -y quantisnow mcp is a small local bridge from the quantisnow CLI. It forwards every request to https://www.quantisnow.com/api/v1/mcp and signs in with your npx quantisnow login, so run that once first. To use an API key instead, set QUANTISNOW_API_KEY in the server's env. New accounts get 20 free calls to try every endpoint, the MCP server and the CLI. After that, plans start at $49 a month for 30,000 calls.
Check it works
Ask this, word for word:
Use quantisnow to list what Nvidia filed with the SEC in the last 90 days.You should see a tool call to search with "dataset": "filings" and a query like ticker:NVDA AND filedAt:[...], then a list of filings: form type (8-K, 10-Q, Form 4), date, and a sec.gov link for each. If the assistant answers from memory with no tool call, the server isn't switched on for this chat. If the tool call returns an error, the troubleshooting page goes through each one.
Things to ask
- Write a script that pulls every Item 4.01 auditor change this year into a CSV
- Which funds sold all their Tesla shares last quarter?
- Check whether any of the tickers in portfolio.txt filed an 8-K today
{
"name": "search",
"arguments": {
"dataset": "13f/holdings",
"query": "issuer.ticker:NVDA AND change:new AND period:2026-06-30",
"size": 5,
"sort": "valueUsd:desc"
}
}{
"total": {
"value": 216,
"relation": "eq"
},
"data": [
{
"id": "0001313360-26-000003:1045810",
"period": "2026-06-30",
"filedOn": "2026-08-07",
"accessionNo": "0001313360-26-000003",
"manager": {
"cik": "0001313360",
"name": "SG Americas Securities, LLC",
"city": "NEW YORK",
"state": "NY"
},
"issuer": {
"cik": "0001045810",
"ticker": "NVDA",
"name": "NVIDIA Corporation"
},
"shares": 62298007,
"valueUsd": 12465208000,
"previousShares": 0,
"change": "new",
"changeValueUsd": 12465208000
},
{
"id": "0001213900-26-088240:1045810",
"period": "2026-06-30",
"filedOn": "2026-08-12",
"accessionNo": "0001213900-26-088240",
"manager": {
"cik": "0001633516",
"name": "NewEdge Advisors, LLC",
"city": "NEW ORLEANS",
"state": "LA"
},
"issuer": {
"cik": "0001045810",
"ticker": "NVDA",
"name": "NVIDIA Corporation"
},
"shares": 3483179,
"valueUsd": 696949263,
"previousShares": 0,
"change": "new",
"changeValueUsd": 696949263
}
]
}13F records carry the change from the quarter before, so new positions are a filter, not a comparison you do yourself.
Other clients: Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, ChatGPT, Claude.ai, Gemini CLI, Cline, Continue, JetBrains AI Assistant, Goose, LibreChat, Raw JSON-RPC.