How to Search SEC EDGAR from Claude Code

Claude Code is great at working with code, but it has no built-in way to pull live data from SEC EDGAR. If you’re building anything that touches public company information — financial dashboards, compliance tooling, investor reports — you need a way to look up CIK numbers, ticker symbols, and company names. AgentPatch’s SEC Company Search tool gives Claude Code direct access to the SEC’s company tickers database.

Why This Matters

The SEC assigns every public company a Central Index Key (CIK). That CIK is the key to everything else in EDGAR: filings, financials, ownership data. But to get a CIK, you need to search the SEC’s company database first. Doing this manually means opening EDGAR in a browser, typing in the company name, finding the right entity, and copying the number back into whatever you’re building.

With SEC Company Search available as a tool, Claude Code can handle that lookup inline. Ask it to find a company’s CIK and it searches EDGAR directly, returning the CIK number, official company name, and ticker symbol. That result feeds straight into the next step of whatever you’re building — no context switching.

Setup

Install the AgentPatch CLI (zero dependencies, Python 3.10+):

pip install agentpatch

Set your API key:

export AGENTPATCH_API_KEY=your_api_key

Then use it:

ap search "web search"
ap run agentpatch google-search --input '{"query": "test"}'

Get your API key from the AgentPatch dashboard.

Run this command to add AgentPatch as an MCP server:

claude mcp add -s user --transport http agentpatch https://agentpatch.ai/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard. Claude Code discovers all AgentPatch tools automatically.

Example

You’re building an internal tool that pulls financial data for a set of companies and need to resolve their CIK numbers. You tell Claude Code:

“Look up Apple’s CIK number in SEC EDGAR.”

Claude Code searches the SEC database directly:

Searching SEC EDGAR for "Apple"...

Found match:
  Company: Apple Inc.
  Ticker:  AAPL
  CIK:     0000320193

This CIK can be used with the SEC Company Financials tool to pull
Apple's financial statements. Want me to fetch their latest 10-K data?

Claude Code resolved the company name to its CIK in one step. The same approach works for less obvious lookups too — searching by partial name when you don’t know the exact ticker, or verifying that you’ve got the right entity when two companies have similar names.

At 50 credits ($0.005) per search, you can resolve a full portfolio of tickers without thinking about cost.

Wrapping Up

Adding SEC Company Search to Claude Code gives it direct access to the SEC’s company database during any session. It pairs naturally with the SEC Company Financials tool, which uses the CIK to pull actual financial data. Both are available on the marketplace — along with everything else AgentPatch offers. Check it out at agentpatch.ai.