# SEC API

```json
{
  "name": "SEC API",
  "slug": "sec_api",
  "url": "https://composio.dev/toolkits/sec_api",
  "markdown_url": "https://composio.dev/toolkits/sec_api.md",
  "logo_url": "https://logos.composio.dev/api/sec_api",
  "categories": [
    "finance & accounting"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-24T05:39:06.278Z"
}
```

![SEC API logo](https://logos.composio.dev/api/sec_api)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with SEC API MCP or direct API to search filings, analyze disclosures, retrieve company identifiers, and review ownership and enforcement data through natural language.

## Summary

SEC API is a service for searching SEC filings, disclosure datasets, and company records.
It brings structured regulatory data into one searchable API for faster research.

## Categories

- finance & accounting

## Toolkit Details

- Tools: 92

## Images

- Logo: https://logos.composio.dev/api/sec_api

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for SEC API.
  - Setup:
    - Configure Api Key credentials for SEC API.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Search SEC filings for quarterly revenue
- Compare company ownership records over time
- Review enforcement actions for a company

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `SEC_API_CONVERT_XBRL_TO_JSON` | Convert XBRL To JSON | Convert one filing's XBRL data to standardized financial-statement JSON. The response preserves all statement, disclosure, and fact fields returned by SEC API when the JSON response is at most 25 MB; larger responses are rejected by the runtime limit. |
| `SEC_API_DOWNLOAD_AAER_DOCUMENT` | Download AAER Document | Download and offload one original PDF or HTML AAER document, or its provider-converted text form. Use the AAER number and document path from a Search AAERs result. The download has a 1 GB runtime safety limit. |
| `SEC_API_DOWNLOAD_AAER_DOCUMENT_ARCHIVE` | Download AAER Document Archive | Download and offload every AAER document published in one calendar year as a potentially large ZIP archive. Requires an active SEC API subscription; the download has a 1 GB runtime safety limit. |
| `SEC_API_DOWNLOAD_AAER_METADATA` | Download AAER Metadata | Download and offload the complete Accounting and Auditing Enforcement Releases metadata catalog as one potentially large JSON file. Requires an active SEC API subscription; the download has a 1 GB runtime safety limit. |
| `SEC_API_DOWNLOAD_BULK_DATASET` | Download Bulk Dataset | Download every container for one subscribed SEC API bulk dataset as a ZIP64 archive. This can be extremely large; inspect totalSize with Get Bulk Dataset Index before downloading. The archive is offloaded and returned as a downloadable file reference. |
| `SEC_API_DOWNLOAD_BULK_DATASET_CONTAINER` | Download Bulk Dataset Container | Download one paid monthly SEC API bulk dataset archive using a dataset identifier and container key returned by the dataset index. Check the container's size in Get Bulk Dataset Index before downloading. |
| `SEC_API_DOWNLOAD_EDGAR_FILE` | Download EDGAR File | Download one original EDGAR filing, exhibit, or attachment from the SEC API mirror. The result may be a large binary file; use an exact filename from filing metadata and download only when a file artifact is needed. |
| `SEC_API_DOWNLOAD_FILE_INDEX_ARCHIVE` | Download File Index Archive | Download and offload one potentially large daily gzip JSONL filing-index archive for a date returned by List File Index Archives. Verify its size before calling. This paid download has a 1 GB runtime safety limit. |
| `SEC_API_DOWNLOAD_FOCUS_BULK_FILE` | Download FOCUS Bulk File | Download and offload one paid, potentially large monthly Form X-17A-5 FOCUS JSONL gzip archive. Call LIST_FOCUS_BULK_FILES first to obtain an available year, month, and size. Downloads have a 1 GB safety limit. |
| `SEC_API_DOWNLOAD_SRO_DOCUMENT` | Download SRO Document | Download and offload one original PDF or HTML SRO filing document, or its provider-converted text form. Use the release number and document path from a Search SRO Filings result. Requires an active SEC API subscription; the download has a 1 GB runtime safety limit. |
| `SEC_API_DOWNLOAD_SRO_DOCUMENT_ARCHIVE` | Download SRO Document Archive | Download and offload every SRO filing document published in one calendar year as a potentially large ZIP archive. Requires an active SEC API subscription; the download has a 1 GB runtime safety limit. |
| `SEC_API_DOWNLOAD_SRO_METADATA` | Download SRO Metadata | Download and offload the complete self-regulatory organization filings metadata catalog as one potentially large JSON file. Requires an active SEC API subscription; the download has a 1 GB runtime safety limit. |
| `SEC_API_DOWNLOAD_TAR_ARCHIVE` | Download TAR Archive | Download and offload one potentially huge daily TAR archive containing the complete EDGAR directory tree for a date returned by List TAR Archives. Verify its size before calling. This paid download has a 1 GB runtime safety limit. |
| `SEC_API_EXTRACT_FILING_ITEM` | Extract Filing Item | Extract one documented section from a 10-K, 10-Q, or 8-K filing as plain text or HTML. |
| `SEC_API_FIND_COMPANIES` | Find Companies | Find companies by CIK, ticker, CUSIP, name, exchange, sector, or industry. Identifier searches usually return one company; classifications can return multiple companies. |
| `SEC_API_GENERATE_FILING_PDF` | Generate Filing PDF | Convert one SEC Archives filing or exhibit URL to a PDF. A conversion that is not ready yet returns status='processing' and SEC API's message; retry after five seconds. Generated PDFs larger than 25 MB are rejected. |
| `SEC_API_GET_ADVISER_AFFILIATIONS` | Get Adviser Affiliations | Return an adviser's related financial-industry persons from Form ADV Schedule D 7.A. |
| `SEC_API_GET_ADVISER_BROCHURES` | Get Adviser Brochures | List a firm's Form ADV Part 2 brochures by CRD number. |
| `SEC_API_GET_ADVISER_BUSINESS_NAMES` | Get Adviser Business Names | Return an adviser's other business names and their jurisdictions from Form ADV Schedule D 1.B. |
| `SEC_API_GET_ADVISER_DIRECT_OWNERS` | Get Adviser Direct Owners | Return direct owners and executive officers from an adviser's Form ADV Schedule A. |
| `SEC_API_GET_ADVISER_INDIRECT_OWNERS` | Get Adviser Indirect Owners | Return indirect owners from an adviser's Form ADV Schedule B. |
| `SEC_API_GET_ADVISER_MANAGED_ACCOUNTS` | Get Adviser Managed Accounts | Return an adviser's separately managed account assets, exposures, and custodians from Schedule D 5.K. |
| `SEC_API_GET_ADVISER_PRIVATE_FUNDS` | Get Adviser Private Funds | Return private funds reported by an adviser in Schedule D 7.B.1. |
| `SEC_API_GET_AUDIT_REPORT_CONTENT` | Get Audit Report Content | Retrieve the complete plain-text content of one financial-statement or ICFR audit report by its search-result ID. An active Audit Reports subscription is required. Responses larger than 25 MB are rejected by the runtime safety limit. |
| `SEC_API_GET_BULK_DATASET_INDEX` | Get Bulk Dataset Index | Return metadata and monthly archive containers for one bulk dataset. |
| `SEC_API_GET_COMPANY_COMPENSATION` | Get Company Compensation | Return all available executive compensation records across years for one company ticker or CIK. |
| `SEC_API_GET_EDGAR_ENTITY` | Get EDGAR Entity | Look up one EDGAR entity profile by CIK. |
| `SEC_API_GET_IDENTIFIER_MAPPING` | Get Identifier Mapping | Return a complete, potentially large mapping snapshot between CIKs, CUSIPs, and ticker symbols in the selected direction. The provider regenerates these snapshots daily; responses over 25 MB are rejected. |
| `SEC_API_GET_INGESTION_LOG` | Get Ingestion Log | Return every filing SEC API indexed for one publication date. |
| `SEC_API_GET_NPX_VOTING_RECORDS` | Get N-PX Voting Records | Return the complete Form N-PX filing and every proxy voting record for one accession number when the JSON response is at most 25 MB. Larger filings are rejected by the runtime limit. |
| `SEC_API_GET_SHARES_AND_FLOAT` | Get Shares And Float | Return current and historical outstanding shares and public float for exactly one company ticker or CIK. |
| `SEC_API_LIST_BULK_DATASETS` | List Bulk Datasets | List SEC API's complete bulk dataset catalogue and archive formats. |
| `SEC_API_LIST_FILE_INDEX_ARCHIVES` | List File Index Archives | List paid daily gzip JSONL filing-index archives with dates, sizes, update times, and filing counts. Use the returned archive_date and size before requesting a download. |
| `SEC_API_LIST_FOCUS_BULK_FILES` | List FOCUS Bulk Files | List all monthly Form X-17A-5 FOCUS bulk archives with their paths, update times, and sizes. This is a paid SEC API feature and the complete index may be large; call it before downloading an archive. |
| `SEC_API_LIST_TAR_ARCHIVES` | List TAR Archives | List documented daily full-content EDGAR TAR archives for availability and size inspection before download. This is a paid SEC API bulk endpoint. |
| `SEC_API_SEARCH_13D_13G_FILINGS` | Search 13D 13G Filings | Search Schedule 13D and 13G beneficial ownership filings. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_13F_COVER_PAGES` | Search 13F Cover Pages | Search institutional investment manager Form 13F cover pages. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_13F_HOLDINGS` | Search 13F Holdings | Search institutional investment manager Form 13F holdings tables. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_8K_AUDITOR_CHANGES` | Search 8-K Auditor Changes | Search extracted Form 8-K Item 4.01 auditor-change disclosures with an item4_01 fielded Lucene query. Returns one page and a continuation cursor. |
| `SEC_API_SEARCH_8K_LEADERSHIP_CHANGES` | Search 8-K Leadership Changes | Search extracted Form 8-K Item 5.02 director, officer, compensation, and organization changes. Returns one data page and an opaque cursor. |
| `SEC_API_SEARCH_8K_RESTATEMENTS` | Search 8k Restatements | Search extracted Form 8-K Item 4.02 non-reliance and financial restatement disclosures. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_AAERS` | Search AAERs | Search Accounting and Auditing Enforcement Releases published since 1997 with an AAER-specific fielded Lucene query. Returns one page and a continuation cursor. |
| `SEC_API_SEARCH_ADMIN_PROCEEDINGS` | Search Admin Proceedings | Search SEC administrative proceedings published since 1995 with a fielded Lucene query. Returns one page and a continuation cursor. |
| `SEC_API_SEARCH_ADVISER_FIRMS` | Search Adviser Firms | Search the latest Form ADV records for registered investment adviser firms. Returns one filings page and a cursor for continuation. |
| `SEC_API_SEARCH_ADVISER_REPRESENTATIVES` | Search Adviser Representatives | Search registered individual investment adviser representative records. Returns one data page and a cursor for continuation. |
| `SEC_API_SEARCH_AGREEMENT_TERMINATIONS` | Search Agreement Terminations | Search structured Form 8-K Item 1.02 material agreement terminations. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_AUDIT_FEES` | Search Audit Fees | Search audit, audit-related, tax, and other fees disclosed in proxy statements. Returns one page and an opaque continuation cursor. |
| `SEC_API_SEARCH_BANKRUPTCY_RECEIVERSHIP` | Search Bankruptcy Receivership | Search structured Form 8-K Item 1.03 bankruptcy and receivership records. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_BOARD_MEMBERS` | Search Board Members | Search current and historical company directors and board members. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_BOARD_OVERSIGHT` | Search Board Oversight | Search board leadership, independence, meetings, attendance, evaluations, and oversight. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_COMPLIANCE_SIGNALS` | Search Compliance Signals | Search proxy-statement compliance and governance signals extracted into structured records. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_CYBERSECURITY_INCIDENTS` | Search Cybersecurity Incidents | Search structured Form 8-K Item 1.05 material cybersecurity incidents. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_DIRECTOR_COMPENSATION` | Search Director Compensation | Search director and fund-trustee compensation, pay programs, ownership guidelines, and pay limits. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_EDGAR_ENTITIES` | Search EDGAR Entities | Search entities that have filed through EDGAR since 1994. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_ENFORCEMENT_ACTIONS` | Search Enforcement Actions | Search structured SEC enforcement actions published since 1997 with a fielded Lucene query. Returns one page and a continuation cursor. |
| `SEC_API_SEARCH_EQUITY_PLAN_DILUTION` | Search Equity Plan Dilution | Search equity-plan proposals, requested shares, overhang, dilution, warrants, and convertibles. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_ESG_OVERSIGHT` | Search ESG Oversight | Search board and committee oversight of ESG, climate, human capital, cybersecurity, and risks. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_EXECUTIVE_COMPENSATION` | Search Executive Compensation | Search standardized named-executive compensation records. This endpoint requires an active paid SEC API subscription. |
| `SEC_API_SEARCH_EXECUTIVE_COMPENSATION_GOVERNANCE` | Search Executive Compensation Governance | Search executive-pay governance, say-on-pay, peer groups, policies, and committee practices. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_FILINGS` | Search Filings | Search EDGAR filings and exhibits filed since 1993 with a Lucene query. Returns one page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_FILING_TEXT` | Search Filing Text | Search the body text of EDGAR filings and exhibits filed since 2001. |
| `SEC_API_SEARCH_FINANCIAL_STATEMENT_AUDITS` | Search Financial Statement Audits | Search structured financial-statement auditor reports. Requires an active SEC API Audit Reports subscription or entitlement and normalizes one page per call without inventing totals. |
| `SEC_API_SEARCH_FOCUS_REPORTS` | Search FOCUS Reports | Search broker-dealer Form X-17A-5 Financial and Operational Combined Uniform Single reports. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_FORM_144` | Search Form 144 | Search notices of proposed restricted or control securities sales. Returns one data page and a cursor for continuation. |
| `SEC_API_SEARCH_FORM_1A` | Search Form 1-A | Search Regulation A Form 1-A offering statements. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_FORM_1K` | Search Form 1-K | Search Regulation A Form 1-K annual reports. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_FORM_1Z` | Search Form 1-Z | Search Regulation A Form 1-Z exit reports and amendments. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_FORM_C` | Search Form C | Search structured Regulation Crowdfunding Form C filings. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_FORM_D` | Search Form D | Search Regulation D exempt private offering notices. Returns one offerings page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_FUND_GOVERNANCE` | Search Fund Governance | Search fund governance, advisers, advisory agreements, fees, expense caps, and trustees. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_FUND_REORGANIZATIONS` | Search Fund Reorganizations | Search fund mergers, liquidations, policy changes, legal-form changes, and leverage votes. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_ICFR_AUDITS` | Search ICFR Audits | Search structured internal-control-over-financial-reporting auditor reports. Requires an active SEC API Audit Reports subscription or entitlement and normalizes one page per call without inventing totals. |
| `SEC_API_SEARCH_INSIDER_5_PERCENT_OWNERSHIP` | Search Insider 5 Percent Ownership | Search proxy beneficial ownership for insiders and holders above 5%, including voting power. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_INSIDER_TRADING` | Search Insider Trading | Search standardized Forms 3, 4, and 5 insider holdings and transactions. Returns one transactions page and a cursor for continuation. |
| `SEC_API_SEARCH_LITIGATION_RELEASES` | Search Litigation Releases | Search SEC litigation releases published since 1995 with a fielded Lucene query. Returns one page and an opaque continuation cursor. |
| `SEC_API_SEARCH_MATERIAL_AGREEMENTS` | Search Material Agreements | Search structured Form 8-K Item 1.01 material definitive agreements. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_NCEN_FILINGS` | Search N-CEN Filings | Search Form N-CEN annual investment-company census reports. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_NPORT_FILINGS` | Search N-PORT Filings | Search Form N-PORT fund portfolio holdings and performance reports. Returns one filings page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_NPX_FILINGS` | Search N-PX Filings | Search Form N-PX proxy-voting filing metadata. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_PAY_VERSUS_PERFORMANCE` | Search Pay Versus Performance | Search pay-versus-performance tables, incentive outcomes, discretion, and shareholder returns. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_REG_A_FILINGS` | Search Reg A Filings | Search structured Regulation A Forms 1-A, 1-K, and 1-Z together. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_REGISTRATION_PROSPECTUSES` | Search Registration Prospectuses | Search structured S-1, F-1, S-11, and 424B4 registration and prospectus data. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_RELATED_PARTY_TRANSACTIONS` | Search Related Party Transactions | Search related-party transaction disclosures, policies, parties, amounts, and approvals. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_SEVERANCE_CHANGE_IN_CONTROL` | Search Severance Change In Control | Search executive severance, change-in-control triggers, multiples, tax treatment, and payments. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_SHAREHOLDER_MEETINGS` | Search Shareholder Meetings | Search meeting dates, formats, locations, record dates, voting methods, and deadlines. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_SHAREHOLDER_PROPOSALS_PROXY_CONTESTS` | Search Shareholder Proposals Proxy Contests | Search shareholder proposals, proxy contests, nominees, settlements, engagement, and deadlines. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_SHAREHOLDER_RIGHTS` | Search Shareholder Rights | Search voting structures, classified boards, shareholder rights, defenses, and governance proposals. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_SHAREHOLDER_VOTING_RESULTS` | Search Shareholder Voting Results | Search structured Form 8-K Item 5.07 shareholder voting results. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_SRO_FILINGS` | Search SRO Filings | Search self-regulatory organization rule filings and associated SEC releases with a fielded Lucene query. Returns one page and a continuation cursor. |
| `SEC_API_SEARCH_STRATEGIC_TRANSACTIONS` | Search Strategic Transactions | Search mergers, acquisitions, asset sales, SPAC transactions, consideration, fees, and votes. Requires an Enterprise subscription and returns one page per call. |
| `SEC_API_SEARCH_SUBSIDIARIES` | Search Subsidiaries | Search current and historical subsidiary lists extracted from Exhibit 21. Returns one data page and an opaque cursor for continuation. |
| `SEC_API_SEARCH_VOTE_STANDARDS` | Search Vote Standards | Search ballot items, board recommendations, voting standards, broker non-votes, and vote rules. Requires an Enterprise subscription and returns one page per call. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to SEC API
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["sec_api"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["sec_api"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run SEC API tools with your agent

Send a request, execute the SEC API tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Search SEC filings for Apple Inc.'s latest 10-K and summarize its material risks."}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Search SEC filings for Apple Inc.'s latest 10-K and summarize its material risks." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to SEC API and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["sec_api"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["sec_api"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a SEC API request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to SEC API tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Search SEC filings for Apple Inc.'s latest 10-K and summarize its material risks.")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Search SEC filings for Apple Inc.'s latest 10-K and summarize its material risks.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native SEC API Integration

- Supports both SEC API MCP and direct API integrations
- Structured, LLM-friendly schemas for reliable filing and disclosure searches
- Ready-to-use tools for company data, ownership records, and enforcement research

### 2. Managed Auth

- Securely store and use your SEC API key without hard-coding it in agent prompts or application code
- Central place to manage, scope, and revoke SEC API access
- Per-user and per-environment credentials for safer research workflows

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve filing and disclosure query reliability over time
- Clear schemas help agents choose the right SEC API tool and pass valid search parameters
- Comprehensive execution logs show what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC helps control which agents and users can access SEC API
- Scoped, least-privilege access to SEC API resources
- Full audit trail of agent actions to support financial research review and compliance

## Use SEC API with any AI Agent Framework

Choose a framework you want to connect SEC API with:

- [ChatGPT](https://composio.dev/toolkits/sec_api/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/sec_api/framework/claude-cowork)

## Related Toolkits

- [Stripe](https://composio.dev/toolkits/stripe) - Stripe is a global online payments platform offering APIs for managing payments, customers, and subscriptions. Trusted by businesses for secure, efficient, and scalable payment processing worldwide.
- [44API](https://composio.dev/toolkits/44api) - 44API is an API service for validating VAT and tax identifiers and returning company details. Use it to verify business tax data and manage account IP whitelists quickly.
- [Airwallex](https://composio.dev/toolkits/airwallex) - Airwallex is a global financial platform providing business accounts, payments, payouts, FX, and cards. Built to simplify cross-border payments and streamline financial operations for businesses.
- [Aiwyn Tax MCP](https://composio.dev/toolkits/aiwyn_tax_mcp) - Aiwyn Tax MCP is a tax estimation service powered by Aiwyn's federal and state tax engine. It helps teams estimate tax outcomes without building tax calculation logic from scratch.
- [Alpaca](https://composio.dev/toolkits/alpaca) - Alpaca is a stock and crypto trading platform for commission-free trading, real-time market data, and algorithmic strategies. Use it to build brokerage apps, trading bots, and portfolio workflows with market connectivity.
- [Alpha vantage](https://composio.dev/toolkits/alpha_vantage) - Alpha Vantage is a financial data platform offering real-time and historical stock market APIs. Get instant, reliable access to equities, forex, and technical analysis data for smarter trading decisions.
- [Altoviz](https://composio.dev/toolkits/altoviz) - Altoviz is a cloud-based billing and invoicing platform for businesses. It streamlines online payments, expense tracking, and customizable invoice management.
- [Anrok](https://composio.dev/toolkits/anrok) - Anrok is a sales tax platform for software businesses that automates calculations, compliance, filings, and exemption management. It helps finance teams stay accurate and reduce the manual work of tax operations.
- [Benzinga](https://composio.dev/toolkits/benzinga) - Benzinga provides real-time financial news and data APIs for market coverage. It helps you track breaking news and actionable market insights instantly.
- [bexio](https://composio.dev/toolkits/bexio) - bexio is a Swiss business management platform for accounting, invoicing, contacts, projects, banking, expenses, and payroll. It brings core business operations into one connected workspace.
- [Bigdata.com MCP](https://composio.dev/toolkits/bigdata_com_mcp) - Bigdata.com MCP provides grounded access to financial news, transcripts, filings, and entity intelligence. Ideal for building research workflows and generating timely market insights.
- [Billsby](https://composio.dev/toolkits/billsby) - Billsby is a subscription billing platform for managing customers, subscriptions, invoices, products, plans, usage counters, add-ons, and allowances. It helps SaaS and subscription teams automate billing operations without building complex billing logic from scratch.
- [Brex](https://composio.dev/toolkits/brex) - Brex provides corporate credit cards and spend management tailored for startups and tech businesses. It helps optimize company cash flow, streamline accounting, and accelerate business growth.
- [Carta](https://composio.dev/toolkits/carta) - Carta is an equity management platform for cap tables, compensation, portfolios, and fund administration. It helps companies and investors manage ownership data and financial operations in one place.
- [Cashfree](https://composio.dev/toolkits/cashfree_payments_mcp) - Cashfree is a merchant payments platform that handles collection, payouts, subscriptions, settlements, refunds, and identity verification. Simplifies merchant money lifecycle management with unified, API-driven workflows.
- [Chaser](https://composio.dev/toolkits/chaser) - Chaser is accounts receivable automation software that sends invoice reminders and helps businesses get paid faster. It streamlines the collections process to save time and improve cash flow.
- [Clarity AI MCP](https://composio.dev/toolkits/clarity_ai_mcp) - Clarity AI MCP is an MCP toolkit for simulating SFDR 2.0 fund classifications from a fund name, ISIN, or CUSIP. Use it to tap Clarity AI disclosure data and modeling without building custom sustainability-data workflows.
- [Clientary](https://composio.dev/toolkits/clientary) - Clientary is a platform for managing clients, invoices, projects, proposals, and more. It streamlines client work and saves you serious admin time.
- [Coinbase](https://composio.dev/toolkits/coinbase) - Coinbase is a platform for buying, selling, and storing cryptocurrency. It makes exchanging and managing crypto simple and secure for everyone.
- [Coinbase Agents MCP](https://composio.dev/toolkits/coinbase_agents_mcp) - Coinbase Agents MCP is Coinbase's managed toolkit exposing accounts, portfolios, orders, fills, and market data. Use it to let authorized agents inspect holdings, execute trades, perform transfers, and handle payments.

## Frequently Asked Questions

### Do I need my own developer credentials to use SEC API with Composio?

Yes, SEC API requires you to configure your own API key. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
