Corporate-disclosure research for AI agents and TypeScript — filings, insiders, owners, financials, and ownership chains from 26 official sources across 21 jurisdiction routes (20 national routes plus the EU aggregate).
disclosures is a free, open-source Model Context Protocol server and a TypeScript library. It answers questions like "who are NVIDIA's directors?", "who owns 5% of Samsung Electronics?", or "show me Vale's last three annual results" — with every answer linked back to the official source document.
- 10 stable tools, 21 jurisdiction routes — six core tools dispatch via
jurisdiction;OwnershipChainis global; three specialized tools cover filed documents, secured charges, and person-level lookups. Tool names stay stable as coverage grows. - Official sources only — SEC EDGAR, GLEIF, Companies House, FCA NSM, filings.xbrl.org, OpenDART, EDINET, cninfo, SZSE, BSE, TWSE, CVM, BaFin, info-financiere, recherche-entreprises, HKEXnews, ACRA, DBD, AFM, IDX, Bursa Malaysia, KAP, DFM, PSE EDGE, ASX, and ASIC.
- Honest by design — real source links only, explicit "unsupported here" answers instead of empty or fabricated results, and clear caveats ("absence of a filing is not proof").
- Bundled runtime — one JavaScript file for Node 18+. MCP SDK and Zod are declared package dependencies so TypeScript consumers receive the types used by the public API.
Quick start
Requires Node 18+. SEC-backed US calls require a descriptive User-Agent under EDGAR's fair-access policy; keyless non-US routes can run without it.
npx -y disclosures
Claude Code
claude mcp add --transport stdio disclosures \
--env DISCLOSURES_USER_AGENT="Your Organization your-email@example.com" \
-- npx -y disclosures
Claude Desktop
Add to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"disclosures": {
"command": "npx",
"args": ["-y", "disclosures"],
"env": {
"DISCLOSURES_USER_AGENT": "Your Organization your-email@example.com"
}
}
}
}
Cursor
Add the same mcpServers block as Claude Desktop to ~/.cursor/mcp.json (or per-project .cursor/mcp.json).
VS Code (Copilot / MCP)
Add to .vscode/mcp.json:
{
"servers": {
"disclosures": {
"type": "stdio",
"command": "npx",
"args": ["-y", "disclosures"],
"env": {
"DISCLOSURES_USER_AGENT": "Your Organization your-email@example.com"
}
}
}
}
Other clients — Windsurf, Codex CLI, Gemini CLI, and any stdio MCP client
Windsurf (~/.codeium/windsurf/mcp_config.json) uses the same mcpServers JSON as Claude Desktop.
Codex CLI (~/.codex/config.toml):
[mcp_servers.disclosures]
command = "npx"
args = ["-y", "disclosures"]
env = { DISCLOSURES_USER_AGENT = "Your Organization your-email@example.com" }
Gemini CLI (~/.gemini/settings.json) uses the same mcpServers JSON as Claude Desktop.
Any other client: run npx -y disclosures as a stdio command with the DISCLOSURES_USER_AGENT environment variable set. The server speaks newline-delimited JSON-RPC on stdout. It is also listed on the official MCP registry as io.github.carrotly-ai/disclosures.
HTTP mode
The same server also speaks the MCP streamable-HTTP transport, for hosted or networked deployments. Pass --http (stdio remains the default with no flag):
disclosures --http --port 8080 # or: node dist/server.mjs --http
- Binds
127.0.0.1by default. Port comes from--port, else thePORTenv var, else8080. Host and supplied Origin headers must match the server allowlists. Non-loopback binds require a bearer token and explicit allowed hosts. - MCP endpoint:
POST /mcp(the transport also answers the streamable-HTTPGET/DELETEhandshake). Runs stateless — no session id, a fresh server instance per request. - Health check:
GET /healthz→200 {"name","version","tools"}. - Diagnostics go to stderr only, as in stdio mode.
Connect any streamable-HTTP MCP client at http://127.0.0.1:8080/mcp.
For a hosted service, supply DISCLOSURES_HTTP_TOKEN through your deployment's secret configuration, then set:
DISCLOSURES_HTTP_ALLOWED_HOSTS="disclosures.example.com" \
DISCLOSURES_HTTP_ALLOWED_ORIGINS="https://disclosures.example.com" \
DISCLOSURES_DOWNLOAD_DIR="/var/lib/disclosures/downloads" \
disclosures --http --host 0.0.0.0 --port 8080
Terminate TLS at your reverse proxy, preserve the configured Host header, and have clients send Authorization: Bearer <token>. Allowed hosts are exact authorities, including a port when clients send one; comma-separated values are supported. Origins default to http:// origins for the allowed hosts; set HTTPS origins explicitly behind TLS termination. Requests without Origin are supported for non-browser clients. The health endpoint checks Host/Origin but does not require the token.
Library deployments use runHttpServer({ bearerToken, allowedHosts, allowedOrigins, downloadDirectory }) for the same policy. HTTP downloads always stay in a server-controlled directory (a private temporary directory by default); output_path accepts a filename only. Stdio/library downloads may use an explicit local path. All modes refuse to overwrite existing files or symlinks; omitted paths produce unique private temporary files.
Restart the client after changing its configuration, then try:
"Use disclosures to list Apple's board of directors and their latest Form 4 activity." "Who holds 5% or more of NVIDIA? Link the filings." "Resolve Samsung Electronics in Korea and show its latest annual financials." "What's the GLEIF ownership chain above Apple Operations India?"
The ten tools
| Tool | What it answers | Coverage |
|---|---|---|
CompanyResolve |
"Which company is this?" — canonical name plus global and local register identifiers. | All 21 routes |
CompanyFilings |
"What has it filed?" — dates, types, descriptions, identifiers, and official links. | US, GB, EU, KR, JP, CN, IN, TW, BR, FR, HK, ID, MY, AE, PH; AU latest-five partial |
CompanyInsiders |
"Who runs it or has reported dealings?" — route-specific officer, director, manager, or insider disclosures. | US, GB, KR, CN partial, TW, BR, DE, NL, MY, PH |
CompanyOwners |
"Who owns or controls it?" — major-holder, control-register, threshold-crossing, or custodian disclosures. | US, GB, KR, JP, CN partial, TW, BR, DE, FR partial, HK partial, NL, MY, PH |
CompanyFinancials |
"What are its numbers?" — as-filed headline facts from structured XBRL or bounded filing parsers. | US, GB, EU, KR, JP, CN partial, TW, BR, HK partial, ID, PH partial |
OwnershipChain |
"Who consolidates it?" — GLEIF direct/ultimate accounting-consolidation parents and children. | 🌐 Global (any LEI or legal name) |
PrivateRaises |
"Has it raised privately?" — Form D exempt offerings, amounts, investor counts, and named related persons. | US only |
CompanyDocument |
"What does the filing actually say?" — metadata, paged extracted text, or a bounded PDF saved to disk. | US, GB, JP, KR, FR, HK, CN, IN, TR, AE, PH, AU |
CompanyCharges |
"What's secured against it?" — registered charges/mortgages and their particulars. | GB |
PersonAppointments |
"Where else does this person sit?" — person search, cross-company roles, and disqualification/enforcement lookups. | US, GB, DE, FR, AU partial (disqualifications only) |
Six core tools dispatch across all jurisdiction routes via jurisdiction; OwnershipChain is global and jurisdiction-independent. CompanyDocument accepts US, GB (default), JP, KR, FR, HK, CN, IN, TR, AE, PH, and AU; PersonAppointments accepts US, GB (default), DE, FR, and AU; CompanyCharges is Companies House-specific and takes no jurisdiction.
Every company input accepts a name or a local identifier — ticker, CIK, LEI, or ISIN (US/global), Companies House number (GB — incl. SC/NI prefixes for Scotland and Northern Ireland), OpenDART corp/stock code (KR), EDINET/securities/corporate code (JP), A-share or HK code (CN), BSE scrip (IN), TWSE listing code (TW), CVM registration code (BR), BaFin-Id or ISIN (DE), SIREN/ISIN/LEI (FR), 4/5-digit HKEX stock code (HK), Singapore UEN (SG), 13-digit juristic-person registration number (TH), AFM-register issuer name or LEI (NL), 4-letter IDX ticker / kode emiten (ID), 4-digit Bursa stock code or issuer name (MY), BIST stock code (TR), DFM issuer symbol (AE), PSE ticker symbol or numeric PSE company id (PH). Pass jurisdiction: "US" | "GB" | "EU" | "KR" | "JP" | "CN" | "IN" | "TW" | "BR" | "DE" | "FR" | "HK" | "SG" | "TH" | "NL" | "ID" | "MY" | "TR" | "AE" | "PH" | "AU" (default US).
Coverage matrix
| Intent | US | GB | EU | KR | JP | CN | IN | TW | BR | DE | FR | HK | SG | TH | NL | ID | MY | TR | AE | PH | AU |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CompanyResolve |
✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
CompanyFilings |
✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | — | ✅ | ✅ | — | — | — | ✅ | ✅ | — | ✅ | ✅ | ⚠️ |
CompanyInsiders |
✅ | ✅ | — | ✅ | — | ⚠️ | — | ✅ | ✅ | ✅ | — | — | — | — | ✅ | — | ✅ | — | — | ✅ | — |
CompanyOwners |
✅ | ✅ | — | ✅ | ✅ | ⚠️ | — | ✅ | ✅ | ✅ | ⚠️ | ⚠️ | — | — | ✅ | — | ✅ | — | — | ✅ | — |
CompanyFinancials |
✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ | — | ✅ | ✅ | — | — | ⚠️ | — | — | — | ✅ | — | — | — | ⚠️ | — |
PrivateRaises |
✅ | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
OwnershipChain |
🌐 global via GLEIF — jurisdiction-independent |
✅ supported · ⚠️ partial (FR CompanyOwners: threshold-crossing notifications with a best-effort structured extraction — holder, direction, threshold(s) and resulting % parsed from the notification PDF's text layer for the newest few; scanned/non-standard PDFs and older notifications stay a link-only list · HK CompanyOwners: the keyless CCASS shareholding search returns participant/custodian-level holdings (custodian banks, brokers, HKSCC Nominees, CSDC) — not beneficial owners; the SFO Part XV Disclosure of Interests register is captcha-walled and linked for manual lookup · HK CompanyFinancials: headline figures extracted from the issuer's latest results-announcement PDF, latest announcement only — standard issuers extract cleanly, complex segment-split/multi-column statements parse partially, and a page shortfall or missing statement degrades to the PDF link · CN CompanyFinancials: headline figures extracted from the 主要会计数据 key-data table of the issuer's latest periodic-report PDF, normalized to whole RMB from the report's stated unit (元/千元/万元/百万元), latest report only — a mojibake (object-stream) report, an over-cap PDF, or a missing key-data table degrades to the PDF link · CN CompanyOwners: the 前十名股东 top-10 shareholders table parsed from the issuer's freshest periodic report — real major-shareholder data, but ragged and issuer-variable in column order, so a value-heuristic parser emits only confidently-matched rows; an as-published point-in-time snapshot, not a live register and not UBO tracing · CN CompanyInsiders: asymmetric by exchange — SZSE codes (0/3xxxxx) use SZSE's keyless structured 董监高 share-change feed, while SSE codes (6xxxxx) fall back to the as-published 董监高 board roster in the latest annual report, names and positions only) · ID is served over an anti-bot-protected host (www.idx.co.id): the adapter sends browser-class headers and works wherever those pass, and where the edge refuses it returns an explicit "the host blocked this request — inject a browser-backed fetchFn" note stating it is not an empty result for the issuer, never a silent miss · TR CompanyFilings is a deliberate dash: KAP serves the BIST directory and every disclosure page/PDF keylessly, but its Next.js rebuild moved the data layer to kapsitebackend.mkk.com.tr, which does not resolve publicly — anything addressable by disclosure id works, while enumeration does not (the per-company notifications page returns 200 but server-renders an empty shell and fetches its rows from that unreachable host), so the tool explains why and points at the issuer's KAP page rather than faking a list · PH CompanyFinancials is partial: PSE EDGE serves the headline statement its own 17-A form carries (balance sheet + income statement, in PHP), not the full audited statements, which stay in the report's PDF attachments · — returns an honest unsupported-jurisdiction explanation, never an empty or fabricated result
NL CompanyOwners/CompanyInsiders are fully supported but read whole-file AFM register exports (no server-side filtering exists; the substantial-holdings export is ~108 MB): the first call in a session takes ~20–30 s, after which a cached 24 h per-issuer digest serves the rest in milliseconds. Supply an AdapterOptions.cache (e.g. FileCache) in per-request deployments.
⚠️ ASX and PSE EDGE are restricted sources and are disabled before network access by default. Their terms limit use and redistribution in ways that may conflict with an automated disclosure service. Review AU.md and PH.md, then set
DISCLOSURES_ACKNOWLEDGE_ASX_TERMS=1and/orDISCLOSURES_ACKNOWLEDGE_PSE_TERMS=1only if you have the rights to use that source in your context. ASIC's CC-BY Australian company and disqualification registers remain available without ASX acknowledgement. Enabled responses retain the source-specific terms notice. Not legal advice.
Each jurisdiction has a full reference page — data source, credentials, accepted identifiers, per-intent behavior, and caveats — under docs/jurisdictions/.
Data sources and credentials
US and global lookups work with just the User-Agent. Non-US sources are keyless where the upstream allows it; the few that need keys are free. Provide only the keys for jurisdictions you query — everything else keeps working without them, and a missing credential produces a readable error naming the exact variable to set.
| Source | Jurisdiction | Key required | Notes |
|---|---|---|---|
| SEC EDGAR | US (default) |
None — set DISCLOSURES_USER_AGENT |
Filings, insiders, 13D/13G owners, XBRL financials, Form D. |
| GLEIF | 🌐 global | None | LEI/ISIN resolution, ownership chain. |
| Companies House | GB |
COMPANIES_HOUSE_API_KEY (free) |
Resolution, filings, officers, PSC — incl. ECCTA identity-verification status. |
| FCA NSM | GB |
None — inject-only | DTR5/TR-1 ~3%+ major holdings inside CompanyOwners; activates only when you inject a fetchFn (no public read API). |
| filings.xbrl.org | GB, EU |
None | ESEF/UKSEF normalized annual IFRS financials (FY2020+). |
| DART / OpenDART | KR |
OPENDART_API_KEY (free) |
Resolution, reports, executive ownership, 5% mass holdings, financials. |
| EDINET | JP |
EDINET_API_KEY (free, search only) |
Resolution is keyless; document search needs the key. |
| cninfo | CN |
None | SSE/SZSE (+ HKEX mirror) resolution, announcement PDFs, CompanyDocument, CompanyFinancials (主要会计数据 key-data table), CompanyOwners (前十名股东 top-10), and the SSE CompanyInsiders 董监高 roster — all PDF-derived modes bounded/best-effort. |
| SZSE disclosure API | CN |
None | Keyless structured 董监高及相关人员股份变动 feed backing CompanyInsiders for Shenzhen-listed issuers (0/3xxxxx). |
| BSE India | IN |
None | Resolution, paginated corporate announcements, and CompanyDocument PDF metadata/text/download. NEWSID and attachment transaction ids remain distinct; documents prefer AttachHis and are processed up to 30 MiB. Anti-bot API host — inject a fetchFn if throttled. |
| TWSE OpenAPI | TW |
None | Resolution, material information, directors/supervisors, >10% shareholders. |
| CVM open data | BR |
None | Resolution, IPE disclosure index, DFP annual financials in BRL, FRE shareholder positions (item 15) and administrator register (item 12). |
| BaFin AnteileInfo + DealingsInfo | DE |
None | Resolution, §§33 ff. WpHG major holdings, Art. 19 MAR directors' dealings. |
| info-financiere.gouv.fr (OAM) | FR |
None | Regulated-filing index with direct PDFs, threshold-crossing notifications, filed documents. |
| recherche-entreprises | FR |
None | Resolution (SIREN), officers (dirigeants), person→companies. |
| HKEXnews | HK |
None | Resolution, title-search filings with keyless PDFs, CompanyDocument by FILE_LINK path, CompanyFinancials (headline figures from the latest results-announcement PDF — bounded). |
| ACRA (data.gov.sg) | SG |
None | Resolution only — UEN, status, incorporation date, former names, auditors (Singapore Open Data Licence). |
| DBD (Thailand) | TH |
None by juristic number; DBD_API_KEY (free) for name search |
Resolution only — national register of listed and private companies: Thai + English legal name, juristic type, status, registered/paid-up capital, TSIC code, register date. |
| ASX company announcements | AU |
DISCLOSURES_ACKNOWLEDGE_ASX_TERMS=1 |
Restricted source, disabled before network access by default. When acknowledged: listed-company resolution, the 5 most recent announcements only (not a filing history), and announcement PDFs by documentKey. ASX's terms restrict use, redistribution, and automated access; the operator is responsible for having the necessary rights. Exact ACN/ABN resolution remains ASIC-only. See AU.md. |
| ASIC on data.gov.au | AU |
None | CC BY 3.0 AU — freely redistributable with attribution. The Company Dataset (4.4M listed and unlisted Australian companies by ACN/ABN/name) backs CompanyResolve; the Banned and Disqualified Persons register backs PersonAppointments disqualifications. Served over CKAN datastore_search as a real per-company query API, so the 399 MB bulk CSV is never downloaded. |
| IDX (Indonesia) | ID |
None (host is anti-bot; inject a browser-backed fetchFn if blocked) |
Resolution (all ~965 listed emiten — ticker, sector/subsector, board, listing date), disclosure announcements with attachment PDFs, and financials parsed from real XBRL instances (instance.zip, IDX 2020 idx-cor taxonomy) in IDR. Insiders/owners live in report PDFs and the KSEI depository channel — honest unsupported. Exchange ©: link-first, on-demand, no bulk redistribution. |
| AFM disclosure registers | NL |
None | Resolution, Wft ch. 5.3 substantial holdings, Art. 19 MAR managers' transact |



