# SEC EDGAR Corporate Filings & 8-K Items (MCP) (`the_magic_dragon/sec-edgar-filings-mcp`) Actor

Resolve US stock tickers or CIKs via SEC EDGAR, fetch recent 10-K, 10-Q, 8-K, and Form 4/13F/S-1 filings with 8-K Item descriptions, direct Archive index/document URLs, compliant User-Agent enforcement, and strict rate limiting. MCP-ready.

- **URL**: https://apify.com/the_magic_dragon/sec-edgar-filings-mcp.md
- **Developed by:** [Cade Hockley](https://apify.com/the_magic_dragon) (community)
- **Categories:** AI, Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 sec edgar filing items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SEC EDGAR Corporate Filings & 8-K Items (MCP)

Query official **US SEC EDGAR** corporate submissions (`data.sec.gov/submissions`) by stock ticker symbol or 10-digit CIK. Retrieve recent `10-K`, `10-Q`, `8-K`, and other SEC filings with human-readable **8-K Item descriptions**, direct **EDGAR Filing Index** and **Primary Document URLs**, automatic ticker-to-CIK resolution, compliant SEC `User-Agent` enforcement, and built-in rate limiting.

Built for **Apify Pay-per-Event** and designed for **MCP / AI Agents** (`apify-mcp-server`), equity research pipelines, compliance monitoring, and B2B intelligence workflows.

### Key Features

- **Ticker & CIK Resolution:** Automatically resolves stock tickers (e.g. `AAPL`, `MSFT`, `BRK.B`) via `https://www.sec.gov/files/company_tickers.json` with single-fetch per-run caching, and accepts direct numeric or zero-padded CIKs (e.g. `0000320193`).
- **8-K Item Code Enrichment:** Maps raw SEC `items` codes (e.g. `2.02` -> *Results of Operations and Financial Condition*, `5.02` -> *Departure/Election of Directors or Officers*, `8.01` -> *Other Events*, `9.01` -> *Financial Statements and Exhibits*) into structured descriptions.
- **Direct Archive Links:** Generates ready-to-fetch `filingIndexUrl` and `primaryDocumentUrl` values for downstream document parsing.
- **SEC Policy Compliance:** Enforces a compliant SEC EDGAR `User-Agent` (never allowing `curl` or `python-urllib`) and spaces SEC HTTP calls by `>= 0.15s` (`<= 6 req/s`).
- **Token-Safe `maxItems` Cap:** Caps total filing records emitted per run (`1–100`, default `10`) to keep AI/MCP contexts compact.

### Pay-per-Event Pricing

- **Event:** `sec-filing-item`
- **Price:** `$0.005` USD per filing item emitted (`US$5.00` per 1,000 filing items)
- **Zero-Charge Guard:** Malformed inputs (`invalid_input`) and unknown tickers/CIKs (`not_found`) emit structured diagnostic records with **zero** charges.

### Input Schema Summary

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `tickersOrCiks` | `string[]` | Required | Stock tickers (e.g. `AAPL`) or SEC CIKs (e.g. `0000320193`). |
| `forms` | `string[]` | `["10-K", "10-Q", "8-K"]` | Form type filter (`[]` returns all forms). |
| `sinceDate` | `string` | `""` | Optional minimum `filingDate` filter (`YYYY-MM-DD`). |
| `maxItems` | `integer` | `10` | Maximum total filings returned and charged (`1–100`). |
| `userAgent` | `string` | `""` | Optional compliant SEC `User-Agent` (`App/1.0 (email@domain)`). |

### Example Input

```json
{
  "tickersOrCiks": ["AAPL", "0000320193"],
  "forms": ["10-K", "10-Q", "8-K"],
  "sinceDate": "2024-01-01",
  "maxItems": 5
}
```

### Example Output Item

```json
{
  "query": "AAPL",
  "status": "ok",
  "ok": true,
  "cik": "0000320193",
  "companyName": "Apple Inc.",
  "tickers": ["AAPL"],
  "form": "8-K",
  "accessionNumber": "0000320193-25-000010",
  "filingDate": "2025-01-30",
  "items": ["2.02", "9.01"],
  "itemDescriptions": [
    { "code": "2.02", "description": "Results of Operations and Financial Condition" },
    { "code": "9.01", "description": "Financial Statements and Exhibits" }
  ],
  "filingIndexUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000010/0000320193-25-000010-index.htm",
  "primaryDocumentUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000010/a8k-2025.htm"
}
```

### MCP Integration (`apify-mcp-server`)

Connect this Actor in Claude Desktop, Cursor, or any MCP client via `mcp.apify.com`:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?actors=the_magic_dragon/sec-edgar-filings-mcp",
        "--header",
        "Authorization: Bearer ${APIFY_TOKEN}"
      ]
    }
  }
}
```

# Actor input Schema

## `tickersOrCiks` (type: `array`):

List of US equity ticker symbols (e.g. 'AAPL', 'MSFT', 'BRK.B') or SEC CIK numbers (e.g. '0000320193').

## `forms` (type: `array`):

Optional SEC form types to include (e.g. \['10-K', '10-Q', '8-K']). Pass an empty array \[] to return all form types.

## `sinceDate` (type: `string`):

Optional minimum filing date (inclusive) in YYYY-MM-DD format (e.g. '2025-01-01').

## `maxItems` (type: `integer`):

Maximum total SEC filing records to emit and charge across the run (1-100).

## `userAgent` (type: `string`):

Optional compliant SEC EDGAR User-Agent header ('AppName/Version (contact@domain.com)'). Defaults to a compliant research User-Agent if omitted or invalid.

## Actor input object example

```json
{
  "tickersOrCiks": [
    "AAPL",
    "0000320193"
  ],
  "forms": [
    "10-K",
    "10-Q",
    "8-K"
  ],
  "sinceDate": "",
  "maxItems": 10,
  "userAgent": ""
}
```

# Actor output Schema

## `results` (type: `string`):

Normalized SEC filing records with company metadata, form, 8-K item descriptions, and direct EDGAR Archive URLs.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickersOrCiks": [
        "AAPL",
        "0000320193"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("the_magic_dragon/sec-edgar-filings-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tickersOrCiks": [
        "AAPL",
        "0000320193",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("the_magic_dragon/sec-edgar-filings-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickersOrCiks": [
    "AAPL",
    "0000320193"
  ]
}' |
apify call the_magic_dragon/sec-edgar-filings-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,the_magic_dragon/sec-edgar-filings-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Qx68qnCWXWJ3Uag9M/builds/b7o8ipZBh1gJSl91t/openapi.json
