# SEC EDGAR

```json
{
  "name": "SEC EDGAR",
  "slug": "sec",
  "url": "https://composio.dev/toolkits/sec",
  "markdown_url": "https://composio.dev/toolkits/sec.md",
  "logo_url": "https://logos.composio.dev/api/sec",
  "categories": [
    "finance & accounting"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-09-24T15:46:17.429Z"
}
```

![SEC EDGAR logo](https://logos.composio.dev/api/sec)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with SEC EDGAR MCP or direct API to search company filings, retrieve XBRL facts, download filing archives, and list recent submissions through natural language.

## Summary

SEC EDGAR is the U.S. Securities and Exchange Commission's public filings service for company submissions, XBRL facts, and filing archives.
Access authoritative filing documents and structured financial facts for research, compliance, and analysis.

## Categories

- finance & accounting

## Toolkit Details

- Tools: 9

## Images

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

## Authentication

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

## Suggested Prompts

- Get all 10‑Q filings for AAPL
- Retrieve XBRL facts for ticker MSFT
- Download filing archive for company Tesla

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `SEC_GET_COMPANY_CONCEPT` | Get SEC Company Concept | Resolve a ticker or CIK and return a bounded page of one company's disclosures for a specific standardized XBRL taxonomy concept. |
| `SEC_GET_COMPANY_PROFILE` | Get SEC Company Profile | Resolve a ticker or CIK and return the SEC filer's identity, classification, addresses, tickers, exchanges, and filing-history coverage without returning its filing arrays. |
| `SEC_GET_FILING_DOCUMENT` | Get SEC Filing Document | Resolve a filing path and offload one archive file, filing detail page, complete submission, or SGML header while enforcing a caller-selected size cap. |
| `SEC_GET_XBRL_FRAME` | Get SEC XBRL Frame | Compare one standardized XBRL concept across reporting entities for a calendar period and return a bounded page of matching facts. |
| `SEC_LIST_COMPANY_FILINGS` | List SEC Company Filings | Resolve a ticker or CIK and return one bounded, normalized page of recent or historical SEC company filings. |
| `SEC_LIST_FILING_DOCUMENTS` | List SEC Filing Documents | Resolve a ticker or CIK and list a bounded page of documents and generated artifacts in one SEC filing archive, including filenames and sizes needed for safe retrieval. |
| `SEC_SEARCH_COMPANY_CONCEPTS` | Search SEC Company Concepts | Resolve a ticker or CIK and search the company's available standardized XBRL concepts. Returns a bounded page of concept metadata and units without returning individual disclosure arrays or values. |
| `SEC_SEARCH_ENTITIES` | Search SEC Entities | Search SEC companies by ticker, name, or CIK, or mutual funds by ticker, CIK, series ID, or class ID. Returns normalized identifiers for other SEC tools. |
| `SEC_SEARCH_FILING_INDEX` | Search SEC Filing Index | Discover and search one daily or quarterly EDGAR master index, returning a bounded page filtered by company, CIK, or form. Quarterly source files over 30 MB are not supported; use a daily index instead. |

## 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 EDGAR
```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"])
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"] });
const tools = await session.tools();
```

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

Send a request, execute the SEC EDGAR 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": "List all 10-Q and 10-K filings for AAPL since 2022"}],
)

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: "List all 10-Q and 10-K filings for AAPL since 2022" }],
});

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 EDGAR and read its MCP URL and headers
```python
from composio import Composio

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

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

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["sec"],
  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 EDGAR 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 EDGAR tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("List all 10-Q and 10-K filings for AAPL since 2022")
        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: "List all 10-Q and 10-K filings for AAPL since 2022",
  stopWhen: stepCountIs(10),
});

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

## Why Use Composio?

### 1. AI Native SEC EDGAR Integration

- Supports both SEC EDGAR MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution specific to SEC EDGAR filings and XBRL data
- Rich coverage for reading, querying, and downloading SEC EDGAR filing archives and indexes

### 2. Managed Auth

- Built-in API key handling with secure storage and scoped access for SEC EDGAR
- Central place to manage, scope, and revoke SEC EDGAR API key access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates with SEC EDGAR endpoints to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access SEC EDGAR
- Scoped, least privilege access to SEC EDGAR resources
- Full audit trail of agent actions to support review and compliance

## Use SEC EDGAR with any AI Agent Framework

Choose a framework you want to connect SEC EDGAR with:

- [ChatGPT](https://composio.dev/toolkits/sec/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/sec/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/sec/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/sec/framework/atomic-agent)

## 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.
- [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.
- [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.
- [Cashfree Payments MCP](https://composio.dev/toolkits/cashfree_payments_mcp) - Cashfree Payments MCP 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.
- [Coinbase Wallet MCP](https://composio.dev/toolkits/coinbase_wallet_mcp) - Coinbase Wallet MCP is Coinbase's wallet service for interacting with onchain accounts. Use it to give agents secure, structured access to inspect wallets and request onchain actions.
- [Coinranking](https://composio.dev/toolkits/coinranking) - Coinranking is a comprehensive cryptocurrency market data platform offering access to real-time coin prices, market caps, and historical data. Get accurate, up-to-date stats for thousands of digital assets in one place.
- [Coupa](https://composio.dev/toolkits/coupa) - Coupa is a business spend management platform for procurement, invoicing, and expenses. It helps organizations streamline purchasing, control costs, and gain complete visibility over financial operations.

## Frequently Asked Questions

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

Yes, SEC EDGAR requires you to configure your own API key credentials. 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)
