Build your first SEC agent
In three prompts, your AI agent goes from nothing to a cited institutional-flow analysis — every number traceable to the SEC filing it came from. Works with Claude Code, Cursor, Windsurf, Zed, or any MCP client. No API key needed to start.
Every command and output below was executed for real against live data — nothing is mocked.
1Connect the data layer~1 min
One command registers 24 SEC data tools with your agent:
claude mcp add ko-sec-data --transport http https://mcp.ko.io/mcpUsing Cursor, Windsurf or Zed instead? Grab the JSON config on the MCP page. Verify with claude mcp list — you should see ko-sec-data ... ✔ Connected.
2Ask your first real question~2 min
What are Berkshire Hathaway's largest holdings right now, and what changed last quarter?
The agent resolves "Berkshire" to CIK 1067983, pulls the latest 13F, and answers with filing-grade numbers. Actual tool response:
| Ticker | Issuer | Value | Weight | Action |
|---|---|---|---|---|
| AAPL | APPLE INC | $57.84B | 21.99% | UNCHANGED |
| AXP | AMERICAN EXPRESS | $45.83B | 17.4% | UNCHANGED |
| GOOGL | ALPHABET INC | $30.5B | 11.6% | ADDED |
The free tier covers this whole tutorial (200 calls/day, no key). Each row carries its quarter and change action — the agent cites instead of guessing.
3Cross datasets — where agents earn their keep~3 min
Which stocks did both institutions accumulate AND members of Congress buy in the last quarter? Cross-reference 13F changes with STOCK Act disclosures.
This is one prompt, but the agent chains get_stock_holders, get_congress_trades and get_insider_trades on its own — a join across three SEC datasets that would take an afternoon by hand. Try variations:
- "Chart NVIDIA's institutional ownership over 8 quarters"
- "Find threshold-list stocks with rising fails-to-deliver — classic squeeze setups"
- "What did Nancy Pelosi trade this year, and how long were her disclosure delays?"
4Unlock full depth~2 min
A free API key raises you to full history and all core datasets; Pro adds macro (Treasury/Fed), short interest and fails-to-deliver at 20,000 calls/day.
claude mcp add ko-sec-data --transport http "https://mcp.ko.io/mcp?api_key=ko_live_YOUR_KEY"Where to go next
- • All 24 tools with parameters: MCP reference
- • REST instead of MCP: 5-minute quickstart
- • Deep dives & new tutorials: ko.io Research