sec-formd-mcp
README.md
# SEC Form D & Crypto-ETF Intelligence API + Remote MCP Server
Real-time **SEC EDGAR Form D / D/A operating-startup funding intelligence** and **Spot/Futures Crypto-ETF & Digital-Asset Treasury SEC filings** served over REST and **Remote Streamable HTTP MCP** on Cloudflare Workers.
- **Live Base URL:** `https://sec-formd-intel.nguyenthanhnam-pye.workers.dev`
- **Live Remote MCP Endpoint:** `https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/mcp`
- **OpenAPI 3.1 Spec:** [`/openapi.json`](https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/openapi.json)
- **MCP Server Card:** [`/.well-known/mcp/server-card.json`](https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/.well-known/mcp/server-card.json)
- **x402 Discovery Manifest:** [`/.well-known/x402.json`](https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/.well-known/x402.json)
## What It Does
Most raw SEC EDGAR Form D feeds are ~76% noise from Pooled Investment Funds, hedge funds, private equity vehicles, and SPVs. This service parses SEC `primary_doc.xml` filings directly and delivers clean, structured deal intelligence:
1. **Operating-Startup Isolation:** Automatically strips Pooled Investment Funds, LPs, and SPVs (`excludeFunds=true` by default) to surface verified operating-company private raises.
2. **Chronological Raise Deltas by CIK:** Tracks initial `D` and amendment `D/A` chains per company CIK and computes incremental capital raised across amendments.
3. **Crypto-ETF & Digital-Asset Treasury Feed:** Filters and deduplicates live SEC `S-1`, `19b-4`, `8-K`, `424B3`, and `N-1A` filings across BTC, ETH, SOL, XRP, multi-crypto trusts, and digital-asset treasury issuers.
4. **Zero-Signup Access:** Free daily preview endpoints + permissionless settlement via **x402 v2**, direct **Solana Mainnet** tx-proof, or instant prepaid **Solana Pay API Key Packs**.
---
## Instant Zero-Signup Usage
### 1. Try the Free REST Previews (`curl`)
No account, API key, or credit card required (20 requests/day/IP):
```bash
# Latest 3 verified operating-company Form D raises (funds & SPVs stripped)
curl -s "https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/v1/preview?limit=3" | jq .
# Latest 3 Spot/Futures Crypto-ETF & Digital-Asset Treasury SEC filings
curl -s "https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/v1/crypto-etf/preview?limit=3" | jq .
```
### 2. Connect the Live Remote MCP Server
Connect directly over **Streamable HTTP** (`https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/mcp`). The `preview_operating_startups` tool works immediately with zero auth.
#### Claude Code
```bash
claude mcp add --transport http sec-formd-mcp https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/mcp
```
#### Cursor (`.cursor/mcp.json`)
```json
{
"mcpServers": {
"sec-formd-mcp": {
"url": "https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/mcp"
}
}
}
```
#### Codex (`~/.codex/config.toml`)
```toml
[mcp_servers.sec_formd_mcp]
url = "https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/mcp"
```
#### VS Code (`.vscode/mcp.json`)
```json
{
"servers": {
"sec-formd-mcp": {
"type": "http",
"url": "https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/mcp"
}
}
}
```
> **Using an API key with MCP:** Pass `"headers": { "X-API-Key": "YOUR_API_KEY" }` in your MCP client config (or send x402 v2 `_meta["x402/payment"]` / `PAYMENT-SIGNATURE` / `X-Solana-Tx` per call).
---
## MCP Tools & REST Endpoints
### MCP Tools (`/mcp`, JSON-RPC 2.0 Streamable HTTP)
| Tool | Price | Description |
|---|---|---|
| `preview_operating_startups` | **Free** (20/day/IP) | Up to 5 recent cleaned operating-company Form D filings (`state`, `limit`) |
| `search_formd_filings` | **$0.05** | Filterable Form D / D/A search (`startDate`, `endDate`, `state`, `minAmountSold`, `maxAmountSold`, `industry`, `q`, `excludeFunds`, `includeSpvs`, `formType`, `limit`) |
| `get_formd_filing` | **$0.05** | Parse a single Form D / D/A filing by SEC accession number |
| `get_company_formd_history` | **$0.05** | Normalized Form D / D/A history + chronological raise deltas for a CIK |
| `get_crypto_etf_filings` | **$0.15** | Recent Spot/Futures Crypto-ETF & Digital-Asset Treasury SEC filings (`asset`, `forms`, `startDate`, `endDate`, `q`, `limit`) |
### REST Endpoints
| Endpoint | Method | Tier / Price | Description |
|---|---|---|---|
| `/v1/preview` | `GET` | **Free** (20/day/IP) | Up to 5 cleaned operating-company Form D filings |
| `/v1/crypto-etf/preview` | `GET` | **Free** (20/day/IP) | Up to 5 recent Crypto-ETF & treasury SEC filings |
| `/v1/filings` & `/v1/startups` | `GET` | **$0.05** | Filterable Form D / D/A search (JSON, JSONL, CSV) |
| `/v1/filings/:accession` | `GET` | **$0.05** | Single parsed Form D / D/A filing by accession number |
| `/v1/company/:cik` | `GET` | **$0.05** | Normalized Form D history + chronological raise deltas |
| `/v1/crypto-etf` | `GET` | **$0.15** | Crypto-ETF & Digital-Asset Treasury SEC filings |
| `/v1/packs/operating-startups-90d` | `GET` | **$0.15** | 90-day cleaned Operating-Startup Snapshot Pack (JSON, JSONL, CSV) |
| `/v1/keys/redeem` | `POST` | $2 – $25 packs | Redeem a confirmed Solana tx signature for an instant `X-API-Key` |
---
## Transparent Pricing & Self-Serve Solana Settlement
No KYC, no subscription lock-in. Choose the settlement rail that fits your workflow:
1. **Free Preview Tier:** 20 calls/day/IP on `/v1/preview`, `/v1/crypto-etf/preview`, and MCP `preview_operating_startups`.
2. **Pay-Per-Call x402 v2 (`$0.05` / `$0.15`):**
- Paid endpoints return HTTP `402 Payment Required` with a base64 `PAYMENT-REQUIRED` header (Solana Mainnet via PayAI facilitator `https://facilitator.payai.network` with Dexter fallback).
- Send payment via `PAYMENT-SIGNATURE` (v2), `X-PAYMENT` (v1), or MCP `_meta["x402/payment"]`.
- Alternatively, pay directly on Solana Mainnet and pass `X-Solana-Tx: <tx_signature>`.
3. **Instant Prepaid API Key Packs (Solana Pay / Direct Transfer):**
Send **SOL**, **USDC**, or **USDT** on **Solana Mainnet** to the public settlement wallet:
```text
CU3jGXaBX3TLR24iY9SPcoFWbg5vKpyFKQMjuk9DFckt
```
| Tier ID | Pack | Price | Entitlements |
|---|---|---|---|
| `starter` | Starter Pack | **$2.00** | 50 paid API / MCP calls |
| `builder` | Builder Pack | **$10.00** | 500 paid API / MCP calls + JSONL/CSV exports |
| `snapshot_90d` | 90-Day Snapshot Pack | **$15.00** | 100 paid calls + exports + 90-day Operating-Startup Snapshot Pack |
| `pro_30d` | 30-Day Pro Pass | **$25.00** | 5,000 paid calls over 30 days + exports + 90-day Snapshot Pack |
#### Solana Pay Checkout & Instant Key Redemption
Open the live landing page at `https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/` for one-click Solana Pay checkout links (Phantom, Solflare, Backpack) for USDC, USDT, and SOL, or send directly using a Solana Pay URI:
- **Starter Pack ($2 USDC):** `solana:CU3jGXaBX3TLR24iY9SPcoFWbg5vKpyFKQMjuk9DFckt?amount=2.00&spl-token=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&label=Octopus%20SEC%20FormD%20Intel&message=starter`
- **Builder Pack ($10 USDT):** `solana:CU3jGXaBX3TLR24iY9SPcoFWbg5vKpyFKQMjuk9DFckt?amount=10.00&spl-token=Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB&label=Octopus%20SEC%20FormD%20Intel&message=builder`
Once confirmed on Solana Mainnet, redeem your transaction signature immediately for a durable KV-backed `X-API-Key`:
```bash
curl -sS -X POST "https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/v1/keys/redeem" \
-H "Content-Type: application/json" \
-d '{"signature":"<YOUR_SOLANA_TX_SIGNATURE>","tier":"starter"}' | jq .
```
Use the returned key via `X-API-Key: <key>` or `Authorization: Bearer <key>` on any REST endpoint or `/mcp`.
---
## Discovery & Machine-Readable Metadata
- **OpenAPI 3.1 Specification:** `https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/openapi.json`
- **MCP Server Card:** `https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/.well-known/mcp/server-card.json`
- **x402 v2 Manifest:** `https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/.well-known/x402.json`
- **Service Health:** `https://sec-formd-intel.nguyenthanhnam-pye.workers.dev/health`
---
## Self-Hosting & Development
Zero runtime npm dependencies (pure Cloudflare Workers + Web Standards + Node 20+ test runner).
```bash
# Run unit & integration test suite
npm test
# Configure your own Cloudflare Worker + KV namespaces
cp wrangler.example.toml wrangler.toml
# Replace REPLACE_WITH_YOUR_KV_ID and wallet slots in wrangler.toml
# Dry-run bundle check or deploy
npm run dry-run
npx wrangler deploy
```
## License
MIT — see [LICENSE](./LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues