SEC API packages on npm.
sec-api.dev publishes two MIT-licensed npm packages with no runtime dependencies: sec-api-dev, a typed JavaScript/TypeScript client for every endpoint, and sec-api-dev-mcp, a stdio MCP server that gives Claude, Cursor and other agents SEC EDGAR tools. Both read SEC_API_KEY; a few demo calls work without one.
JavaScript / TypeScript client
For Node 18+, Bun, Deno and edge runtimes. Keep the key on the server.
npm install sec-api-devimport { SecApi } from 'sec-api-dev';
const api = new SecApi(); // reads process.env.SEC_API_KEY
const { data } = await api.demo('filings', 'NVDA'); // demo tickers need no key
for (const f of data) console.log(f.filingDate, f.form, f.accessionNumber);MCP server (stdio)
Runs on your machine through npx and calls the hosted API. Two tools need no key: demo company data and the FDA calendar for the next 30 days.
claude mcp add sec-api -e SEC_API_KEY="$SEC_API_KEY" -- npx -y sec-api-dev-mcpClaude Desktop, Cursor and other clients that read an mcpServers block:
{
"mcpServers": {
"sec-api": {
"command": "npx",
"args": [
"-y",
"sec-api-dev-mcp"
],
"env": {
"SEC_API_KEY": "your-sec-api-key"
}
}
}
}sec-api-dev-mcp on npm ↗. Prefer no local process? Use the hosted EDGAR MCP server.
Any other language
The REST API works from any HTTP client. Start with the quickstart and the OpenAPI spec. Get a free key at sign-up.