sec-daily-mcp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +180 -0
  2. package/README.md +115 -0
  3. package/dist/index.js +146 -0
  4. package/package.json +55 -0
package/LICENSE ADDED
@@ -0,0 +1,180 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of discussing and
55
+ improving the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and incorporated
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by the combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or any
81
+ Contribution embodied within the Work constitutes direct or
82
+ contributory patent infringement, then any patent licenses granted to
83
+ You under this License for that Work shall terminate as of the date
84
+ such litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative
92
+ Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text
107
+ file distributed as part of the Derivative Works; within
108
+ the Source form or documentation, if provided along with the
109
+ Derivative Works; or, within a display generated by the
110
+ Derivative Works, if and wherever such third-party notices
111
+ normally appear. The contents of the NOTICE file are for
112
+ informational purposes only and do not modify the License.
113
+ You may add Your own attribution notices within Derivative
114
+ Works that You distribute, alongside or as an addendum to
115
+ the NOTICE text from the Work, provided that such additional
116
+ attribution notices cannot be construed as modifying the License.
117
+
118
+ You may add Your own license statement for Your modifications and
119
+ may provide additional grant of rights to use, copy, modify, merge,
120
+ publish, distribute, sublicense, and/or sell copies of the
121
+ Derivative Works, and to permit persons to whom the Derivative
122
+ Works is furnished to do so, subject to the following conditions:
123
+
124
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
125
+ any Contribution intentionally submitted for inclusion in the Work
126
+ by You to the Licensor shall be under the terms and conditions of
127
+ this License, without any additional terms or conditions.
128
+ Notwithstanding the above, nothing herein shall supersede or modify
129
+ the terms of any separate license agreement you may have executed
130
+ with Licensor regarding such Contributions.
131
+
132
+ 6. Trademarks. This License does not grant permission to use the trade
133
+ names, trademarks, service marks, or product names of the Licensor,
134
+ except as required for reasonable and customary use in describing the
135
+ origin of the Work and reproducing the content of the NOTICE file.
136
+
137
+ 7. Disclaimer of Warranty. Unless required by applicable law or
138
+ agreed to in writing, Licensor provides the Work (and each
139
+ Contributor provides its Contributions) on an "AS IS" BASIS,
140
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
141
+ implied, including, without limitation, any warranties or conditions
142
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
143
+ PARTICULAR PURPOSE. You are solely responsible for determining the
144
+ appropriateness of using or reproducing the Work and assume any
145
+ risks associated with Your exercise of permissions under this License.
146
+
147
+ 8. Limitation of Liability. In no event and under no legal theory,
148
+ whether in tort (including negligence), contract, or otherwise,
149
+ unless required by applicable law (such as deliberate and grossly
150
+ negligent acts) or agreed to in writing, shall any Contributor be
151
+ liable to You for damages, including any direct, indirect, special,
152
+ incidental, or exemplary damages of any character arising as a
153
+ result of this License or out of the use or inability to use the
154
+ Work (including but not limited to damages for loss of goodwill,
155
+ work stoppage, computer failure or malfunction, or all other
156
+ commercial damages or losses), even if such Contributor has been
157
+ advised of the possibility of such damages.
158
+
159
+ 9. Accepting Warranty or Additional Liability. While redistributing
160
+ the Work or Derivative Works thereof, You may choose to offer,
161
+ and charge a fee for, acceptance of support, warranty, indemnity,
162
+ or other liability obligations and/or rights consistent with this
163
+ License. However, in accepting such obligations, You may offer only
164
+ conditions consistent with this License.
165
+
166
+ END OF TERMS AND CONDITIONS
167
+
168
+ Copyright 2026 GoodTech LLC
169
+
170
+ Licensed under the Apache License, Version 2.0 (the "License");
171
+ you may not use this file except in compliance with the License.
172
+ You may obtain a copy of the License at
173
+
174
+ http://www.apache.org/licenses/LICENSE-2.0
175
+
176
+ Unless required by applicable law or agreed to in writing, software
177
+ distributed under the License is distributed on an "AS IS" BASIS,
178
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
+ See the License for the specific language governing permissions and
180
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,115 @@
1
+ # SEC Daily MCP Server
2
+
3
+ Official [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server for the [SEC Daily API](https://www.secdailyapi.com) — gives AI assistants real-time access to SEC EDGAR filings, company data, and news.
4
+
5
+ Works with any MCP-compatible AI tool: **Claude Desktop**, **Cursor**, **Windsurf**, **VS Code Copilot**, **ChatGPT Desktop**, **Cline**, **Continue**, and more.
6
+
7
+ ## Prerequisites
8
+
9
+ - Node.js 20 or later
10
+ - A SEC Daily API key — get one free at [secdailyapi.com](https://www.secdailyapi.com)
11
+
12
+ ## Setup
13
+
14
+ ### Claude Desktop
15
+
16
+ Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
17
+
18
+ ```json
19
+ {
20
+ "mcpServers": {
21
+ "sec-daily": {
22
+ "command": "npx",
23
+ "args": ["-y", "sec-daily-mcp"],
24
+ "env": {
25
+ "SEC_DAILY_API_KEY": "your-api-key-here"
26
+ }
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ Restart Claude Desktop. The SEC Daily tools will be available automatically.
33
+
34
+ ### Cursor / Windsurf / Other MCP Clients
35
+
36
+ Add the same block under your tool's MCP server configuration. The format is identical across all MCP-compatible clients.
37
+
38
+ ---
39
+
40
+ ## What the AI can do
41
+
42
+ Once configured, your AI assistant can answer questions like:
43
+
44
+ - *"Show me Apple's latest 10-K filing"*
45
+ - *"What 8-K filings did Tesla submit this week?"*
46
+ - *"Find all S-1 filings from the last 30 days"*
47
+ - *"Look up NVIDIA's company profile and CIK"*
48
+ - *"Get the latest SEC press releases"*
49
+ - *"Show me Microsoft's 10-Q from last quarter"*
50
+ - *"Find all Form 4 insider filings for Amazon this month"*
51
+
52
+ ---
53
+
54
+ ## Tool reference
55
+
56
+ ### `search_filings`
57
+
58
+ Search and filter SEC EDGAR filings across all form types.
59
+
60
+ | Parameter | Type | Description |
61
+ |---|---|---|
62
+ | `ticker` | string | Company ticker, e.g. `"AAPL"` |
63
+ | `cik` | string | Company CIK (numeric) |
64
+ | `accessionNumber` | string | Exact SEC accession number |
65
+ | `formTypes` | string \| string[] | e.g. `"10-K"`, `["10-K","10-Q"]`, `"8-K"`, `"4"`, `"13F-HR"` |
66
+ | `filingDate` | string | Exact date `YYYY-MM-DD` |
67
+ | `filingDateStart` | string | Date range start `YYYY-MM-DD` |
68
+ | `filingDateEnd` | string | Date range end `YYYY-MM-DD` |
69
+ | `fieldset` | `"minimal"` \| `"standard"` \| `"full"` | Response size control |
70
+ | `limit` | number | Results per page, default 200, max 1000 |
71
+ | `cursor` | string | Pagination cursor from a previous response |
72
+
73
+ ### `get_entity`
74
+
75
+ Look up a company's SEC profile. Requires either `ticker` or `cik`.
76
+
77
+ | Parameter | Type | Description |
78
+ |---|---|---|
79
+ | `ticker` | string | e.g. `"AAPL"` |
80
+ | `cik` | string | Numeric CIK string |
81
+
82
+ Returns: name, CIK, ticker, exchange, SIC code, industry, state of incorporation, fiscal year end, address, website, former names.
83
+
84
+ ### `get_filing`
85
+
86
+ Fetch a single filing by ID or accession number. Requires either `id` or `accessionNumber`.
87
+
88
+ | Parameter | Type | Description |
89
+ |---|---|---|
90
+ | `id` | string | Internal filing ID |
91
+ | `accessionNumber` | string | SEC accession number |
92
+
93
+ ### `get_news`
94
+
95
+ Retrieve SEC press releases and market news.
96
+
97
+ | Parameter | Type | Description |
98
+ |---|---|---|
99
+ | `newsType` | string | News category (default: `"PressReleases"`) |
100
+ | `startDate` | string | Date range start `YYYY-MM-DD` |
101
+ | `endDate` | string | Date range end `YYYY-MM-DD` |
102
+ | `limit` | number | Results (default 40, max 100) |
103
+
104
+ ---
105
+
106
+ ## Resources
107
+
108
+ - API docs: [secdailyapi.com/docs](https://www.secdailyapi.com/docs)
109
+ - Pricing: [secdailyapi.com/pricing](https://www.secdailyapi.com/pricing)
110
+ - Dashboard: [secdailyapi.com/dashboard](https://www.secdailyapi.com/dashboard)
111
+ - Node.js SDK: [sec-daily-api on npm](https://www.npmjs.com/package/sec-daily-api)
112
+
113
+ ---
114
+
115
+ Licensed under the [Apache 2.0 License](./LICENSE). Copyright 2026 GoodTech LLC.
package/dist/index.js ADDED
@@ -0,0 +1,146 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/index.ts
4
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
5
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
6
+ import {
7
+ CallToolRequestSchema,
8
+ ListToolsRequestSchema
9
+ } from "@modelcontextprotocol/sdk/types.js";
10
+ import { SecDailyAPI } from "sec-daily-api";
11
+ import { z } from "zod";
12
+ import { zodToJsonSchema } from "zod-to-json-schema";
13
+ var SearchFilingsSchema = z.object({
14
+ ticker: z.string().optional().describe(
15
+ 'Filter by company ticker symbol, e.g. "AAPL", "MSFT", "TSLA".'
16
+ ),
17
+ cik: z.string().optional().describe(
18
+ "Filter by company CIK (numeric string). Use instead of ticker when you have the CIK."
19
+ ),
20
+ accessionNumber: z.string().optional().describe(
21
+ 'Fetch a single filing by its SEC accession number, e.g. "0001193125-24-012345".'
22
+ ),
23
+ formTypes: z.union([z.string(), z.array(z.string())]).optional().describe(
24
+ 'Filter by SEC form type(s), e.g. "10-K", "10-Q", "8-K", "4", "S-1", "13F-HR". Separate multiple with commas or pass as array.'
25
+ ),
26
+ filingDate: z.string().optional().describe(
27
+ "Fetch filings for an exact date (YYYY-MM-DD)."
28
+ ),
29
+ filingDateStart: z.string().optional().describe(
30
+ "Filing date range start (YYYY-MM-DD)."
31
+ ),
32
+ filingDateEnd: z.string().optional().describe(
33
+ "Filing date range end (YYYY-MM-DD)."
34
+ ),
35
+ fieldset: z.enum(["minimal", "standard", "full"]).optional().describe(
36
+ '"minimal": ID, CIK, form type, dates, links. "standard": all of minimal + entity info, document links, AI summary. "full": all of standard + markdown content of the filing. Default: all stored fields.'
37
+ ),
38
+ limit: z.number().int().min(1).max(1e3).optional().describe(
39
+ "Results per page (default 200, max 1000)."
40
+ ),
41
+ cursor: z.string().optional().describe(
42
+ "Opaque pagination cursor. Pass the nextCursor from a previous response to fetch the next page."
43
+ )
44
+ });
45
+ var GetEntitySchema = z.object({
46
+ ticker: z.string().optional().describe(
47
+ 'Look up a company by ticker symbol, e.g. "AAPL". Use this when you have a ticker.'
48
+ ),
49
+ cik: z.string().optional().describe(
50
+ "Look up a company by CIK (numeric string). Use this when you have the CIK."
51
+ )
52
+ });
53
+ var GetFilingSchema = z.object({
54
+ id: z.string().optional().describe(
55
+ "Fetch a filing by its internal ID (SHA-256 of the accession number)."
56
+ ),
57
+ accessionNumber: z.string().optional().describe(
58
+ 'Fetch a filing by its SEC accession number, e.g. "0001193125-24-012345".'
59
+ )
60
+ });
61
+ var GetNewsSchema = z.object({
62
+ newsType: z.string().optional().describe(
63
+ 'Type of news to retrieve. Default: "PressReleases".'
64
+ ),
65
+ startDate: z.string().optional().describe(
66
+ "News start date (YYYY-MM-DD)."
67
+ ),
68
+ endDate: z.string().optional().describe(
69
+ "News end date (YYYY-MM-DD)."
70
+ ),
71
+ limit: z.number().int().min(1).max(100).optional().describe(
72
+ "Number of results (default 40, max 100)."
73
+ )
74
+ });
75
+ var server = new Server(
76
+ { name: "sec-daily-mcp", version: "0.1.0" },
77
+ { capabilities: { tools: {} } }
78
+ );
79
+ var client = null;
80
+ function getClient() {
81
+ if (!client) {
82
+ client = new SecDailyAPI();
83
+ }
84
+ return client;
85
+ }
86
+ var ZOD_OPTIONS = { $refStrategy: "none" };
87
+ server.setRequestHandler(ListToolsRequestSchema, async () => ({
88
+ tools: [
89
+ {
90
+ name: "search_filings",
91
+ description: "Search and filter SEC EDGAR filings. Use this to find 10-K, 10-Q, 8-K, S-1, Form 4, 13F, and any other SEC form type for a specific company (by ticker or CIK) or across all companies by date range. Each result includes company info, filing dates, form type, links to the original SEC documents, and an AI-generated summary. When pagination.hasMore is true, call again with the nextCursor to get the next page.",
92
+ inputSchema: zodToJsonSchema(SearchFilingsSchema, ZOD_OPTIONS)
93
+ },
94
+ {
95
+ name: "get_entity",
96
+ description: "Look up a company's SEC profile by ticker symbol or CIK. Returns company name, CIK, ticker, exchange, SIC code and industry description, state of incorporation, fiscal year end, business address, website, and former names. Use this to resolve a ticker to a CIK or to get company background information.",
97
+ inputSchema: zodToJsonSchema(GetEntitySchema, ZOD_OPTIONS)
98
+ },
99
+ {
100
+ name: "get_filing",
101
+ description: "Fetch a single SEC filing by its internal ID or SEC accession number. Returns the full filing record including all document links and AI summary. Use this when you already have a specific filing ID or accession number from a previous search.",
102
+ inputSchema: zodToJsonSchema(GetFilingSchema, ZOD_OPTIONS)
103
+ },
104
+ {
105
+ name: "get_news",
106
+ description: "Retrieve SEC press releases and market news. Use this to find recent official announcements and regulatory news from the SEC. Supports date range filtering and news type selection.",
107
+ inputSchema: zodToJsonSchema(GetNewsSchema, ZOD_OPTIONS)
108
+ }
109
+ ]
110
+ }));
111
+ server.setRequestHandler(CallToolRequestSchema, async (request) => {
112
+ const { name, arguments: args } = request.params;
113
+ const c = getClient();
114
+ switch (name) {
115
+ case "search_filings": {
116
+ const params = SearchFilingsSchema.parse(args ?? {});
117
+ const result = await c.getFilings(params);
118
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
119
+ }
120
+ case "get_entity": {
121
+ const params = GetEntitySchema.parse(args ?? {});
122
+ if (!params.ticker && !params.cik) {
123
+ throw new Error("get_entity requires either 'ticker' or 'cik'");
124
+ }
125
+ const result = await c.getEntity(params);
126
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
127
+ }
128
+ case "get_filing": {
129
+ const params = GetFilingSchema.parse(args ?? {});
130
+ if (!params.id && !params.accessionNumber) {
131
+ throw new Error("get_filing requires either 'id' or 'accessionNumber'");
132
+ }
133
+ const result = params.id ? await c.getFiling(params.id) : await c.getFilingByAccession(params.accessionNumber);
134
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
135
+ }
136
+ case "get_news": {
137
+ const params = GetNewsSchema.parse(args ?? {});
138
+ const result = await c.getNews(params);
139
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
140
+ }
141
+ default:
142
+ throw new Error(`Unknown tool: ${name}`);
143
+ }
144
+ });
145
+ var transport = new StdioServerTransport();
146
+ await server.connect(transport);
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "sec-daily-mcp",
3
+ "version": "0.1.0",
4
+ "description": "MCP server for the SEC Daily API — gives AI assistants real-time access to SEC EDGAR filings, news, and company data.",
5
+ "type": "module",
6
+ "bin": {
7
+ "sec-daily-mcp": "./dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "LICENSE"
12
+ ],
13
+ "scripts": {
14
+ "build": "tsup",
15
+ "dev": "tsup --watch",
16
+ "prepublishOnly": "npm run build"
17
+ },
18
+ "dependencies": {
19
+ "@modelcontextprotocol/sdk": "^1.0.0",
20
+ "sec-daily-api": "^0.4.0",
21
+ "zod": "^3.23.0",
22
+ "zod-to-json-schema": "^3.23.0"
23
+ },
24
+ "devDependencies": {
25
+ "@types/node": "^25.6.0",
26
+ "tsup": "^8.0.0",
27
+ "typescript": "^5.4.0"
28
+ },
29
+ "engines": {
30
+ "node": ">=20"
31
+ },
32
+ "keywords": [
33
+ "mcp",
34
+ "model-context-protocol",
35
+ "sec",
36
+ "edgar",
37
+ "filings",
38
+ "10-k",
39
+ "10-q",
40
+ "8-k",
41
+ "insider-trading",
42
+ "fintech",
43
+ "ai",
44
+ "claude",
45
+ "openai",
46
+ "cursor",
47
+ "financial-data"
48
+ ],
49
+ "homepage": "https://www.secdailyapi.com",
50
+ "license": "Apache-2.0",
51
+ "author": "GoodTech LLC",
52
+ "publishConfig": {
53
+ "access": "public"
54
+ }
55
+ }