Sec Nport
SEC Form N-PORT — fund and ETF holdings, asked security-first.
Que pouvez-vous faire avec Sec Nport ?
nport_fund_owners(security, quarter?, limit?)— which funds and ETFs hold a stock or bond, ranked by position size. Takes a ticker, a company name, or a CUSIP.nport_fund_portfolio(fund, quarter?, limit?)— one fund's reported positions, largest first.nport_fund_profile(fund)— a fund's profile: ETF/index/money-market status, AUM, expense ratio, advisory fee, NAV/market price per share, and investment adviser(s). From SEC Form N-CEN, the annual fund census — see "Fund profile" below.nport_holdings_coverage()— which N-PORT and N-CEN releases are loaded, how current they are, and what the data does not cover.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
claude mcp add --transport http sec-nport 'https://gateway.pipeworx.io/sec-nport/mcp'
{
"mcpServers": {
"sec-nport": {
"type": "http",
"url": "https://gateway.pipeworx.io/sec-nport/mcp"
}
}
}
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
- @pipeworx/sec-nport
- Tools
- The inversion is the point of this pack
- Scope, stated because a partial load read as a complete one is a wrong answer
- Where the data lives, and why it is not in R2
- Fund profile, from a different filing (N-CEN, not N-PORT)
- Ticker resolution
- Source
- Quick Start
- No MCP client? Call it over HTTP
- Standalone (no gateway account)
- Using with ask_pipeworx
- More
- License
@pipeworx/sec-nport
Mutual fund and ETF portfolio holdings and fund profile, from SEC Form N-PORT and Form N-CEN. Keyless.
Part of Pipeworx — an MCP gateway connecting AI agents to 1831+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
Tools
nport_fund_owners(security, quarter?, limit?)— which funds and ETFs hold a stock or bond, ranked by position size. Takes a ticker, a company name, or a CUSIP.nport_fund_portfolio(fund, quarter?, limit?)— one fund's reported positions, largest first.nport_fund_profile(fund)— a fund's profile: ETF/index/money-market status, AUM, expense ratio, advisory fee, NAV/market price per share, and investment adviser(s). From SEC Form N-CEN, the annual fund census — see "Fund profile" below.nport_holdings_coverage()— which N-PORT and N-CEN releases are loaded, how current they are, and what the data does not cover.
The inversion is the point of this pack
"Which ETFs hold the largest positions in NVDA?" returned no_match before this shipped, and the
router explained the gap in its own words: it would have to check each ETF individually.
edgar_fund_holdings goes fund → holdings. Nothing went security → funds, because SEC publishes
N-PORT filing-first and so does every API over it. That is a shape problem, not a rate-limit problem.
This is not 13F warmed over. 13F is institutional managers over $100M, long US equity only. N-PORT is registered funds — mutual funds and ETFs — and carries their bond positions too. "Which funds hold this corporate bond" has no 13F answer at all.
Scope, stated because a partial load read as a complete one is a wrong answer
The quarterly archive is 441MB across 32 tables. Loaded: equity, preferred and debt positions —
about 3.6M of the 5.35M holdings rows per quarter, across 14,416 funds. Not loaded: derivatives,
loans, repos and structured products. A swap notional is not a holding of the underlying, and
reporting it as one would be a wrong answer wearing a right one's clothes. Every response carries
this in its scope field.
Two more caveats ride on every answer:
- N-PORT is filed monthly but released publicly on a quarterly lag, roughly 60 days after the
quarter ends. Responses carry
as_of_period. An answer that implies real-time is wrong. - N-PORT has no ETF flag. These are registered funds, which include ETFs and mutual funds alike; the series name is the only hint. An ETF-only answer cannot be given honestly from this filing, so the pack says that rather than inventing the classification.
Where the data lives, and why it is not in R2
All of it is in Postgres. Measured on the live database, one release loaded:
| table | rows | on disk |
|---|---|---|
sec_nport_holdings | 3,614,371 | 1,123 MB |
sec_nport_funds | 14,416 | 8.9 MB |
That is a real amount of Postgres for one pack, so the choice is worth stating rather than leaving for someone to rediscover at 3am.
The query is the reason. The inversion this pack exists for — which funds hold this
security — is a selective lookup on cusip and issuer_name returning tens of rows out of
3.6M. That is precisely what a B-tree index is for: it answers in milliseconds and touches
almost none of the 1.1GB. R2 has no indexes. Serving the same question from object storage
means either scanning the objects or building a side index to point into them, which is a
worse database than the one already here.
R2 earns its place when the access pattern is bulk: whole-file reads, archival quarters nobody queries interactively, or payloads too large to index usefully. A reasonable split later is hot quarters in Postgres, cold quarters in R2 — but that only pays once several quarters are loaded, and today exactly one is. Splitting now would add a storage tier to save nothing.
Where the line is, so the next person does not have to guess. Each quarter costs roughly
1.1GB. Around four to six loaded quarters this becomes the largest single consumer in the
database and the cold-quarter split should be built rather than discussed. sec_13f_holdings
sits at 3.8M rows for comparison — this pack is the same order of magnitude, not a new class
of problem.
Fund profile, from a different filing (N-CEN, not N-PORT)
nport_fund_profile answers a different question than the other three tools:
not "what does this fund hold" but "what is this fund". It reads SEC Form
N-CEN, the annual fund census, which carries fields N-PORT's holdings filing
does not:
- An explicit ETF/exchange-traded-managed-fund/index/money-market/target-date flag — N-PORT has none of these; the series name is the only hint there.
- Expense ratio (net annual operating expenses, percent of net assets) and
advisory fee — populated mainly for closed-end funds; most open-end
funds and ETFs leave these N-CEN items blank, and the tool reports that as
null, never0. - Investment adviser(s), by name, CRD number and LEI, including subadvisers.
- AUM (monthly average net assets, or daily average for money market funds) and NAV/market price per share.
What it cannot answer: inception date. N-CEN's structured data set carries
no such field — checked against SEC's own 53-table schema
(ncen_readme.pdf) before this was built, not assumed. Every response says so
explicitly rather than omitting the field.
Why this can be a year stale. N-CEN is filed annually, once per fund
per fiscal year. SEC still releases the structured data quarterly because
funds' fiscal year ends are spread across the calendar — one release quarter
alone covers only the funds whose year ended in that window (measured against
the live 2026q3 release: 2,330 of roughly 9-10k active funds). The ingest
script loads a trailing four-quarter window for near-complete single-year
coverage. report_ending_period on every response is the fund's own fiscal
year end, not today.
ETFs organized as unit investment trusts (SPY, QQQ, DIA) ARE covered, through
a separate N-CEN section. A UIT reports its fund-level data through N-CEN's
Part F / UIT.tsv table (EXISTING_SERIES_CNT, TOTAL_ASSET_FOR_ALL_SERIES,
keyed by accession only, no per-series row) rather than through Part C/D's
FUND_REPORTED_INFO.tsv. nport_fund_profile tries Part C/D first and falls
back to the UIT table when nothing matches there — verified live against
SPDR S&P 500 ETF Trust (SPY, CIK 884394): its 2026 filing (accession
0001410368-26-023904) carries zero FUND_REPORTED_INFO rows but a UIT.tsv
row reporting TOTAL_ASSET_FOR_ALL_SERIES of $712,072,540,255.17. A UIT
profile returns fund_type: "unit investment trust", total assets, and
administrators (a UIT has no investment adviser in the usual sense — it is
passively administered) — but no expense ratio, advisory fee, or NAV/market
price, because Part F does not report those items at all; uit_profile_note
says so on every UIT response. Its N-PORT holdings are separately and
fully covered by nport_fund_portfolio/nport_fund_owners (confirmed live:
SPY is in sec_nport_funds under registrant "State Street(R) SPDR(R) S&P
500(R) ETF Trust").
Name matching is graded, never a silent best-guess. A query is matched
against fund_name with ILIKE '%query%' over a wide candidate pool, then
ranked client-side — exact (after normalizing punctuation and generic
suffixes like "ETF"/"Trust"/"Fund") beats a prefix match, which beats a
plain substring match. The response always carries name_match and, for
anything short of exact, a name_match_note plus other_candidates (each
with its own grade) — so a contains-match is never presented as the fund
without saying so. Before this, ranking fell back to whichever ILIKE
candidate had the most recent report_ending_period, which could and did
pick an unrelated same-family fund over the one actually meant.
Ticker resolution
The holdings table keys on CUSIP, which is proprietary to CUSIP Global Services, so this pack does
not build or cache a bulk CUSIP↔ticker table. A ticker-shaped input resolves live through
OpenFIGI (Bloomberg FIGI, openly licensed) to a canonical company name, which is then matched
against issuer_name in our own already-ingested rows — preferring the candidate that is not an
ETF or option wrapper, because "NVDA" otherwise matches Direxion Daily NVDA Bull 2X right
alongside NVIDIA and ranks them together. Same discipline as the 13F pack, deliberately.
Source
SEC Form N-PORT structured data (holdings) and SEC Form N-CEN structured data (fund profile) — both published by the U.S. Securities and Exchange Commission.
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"sec-nport": {
"url": "https://gateway.pipeworx.io/sec-nport/mcp"
}
}
}
What this endpoint actually serves
tools/list at https://gateway.pipeworx.io/sec-nport/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Both URLs reach the same gateway and the same 1831+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
No MCP client? Call it over HTTP
curl -X POST https://gateway.pipeworx.io/v1/tools/nport_fund_owners \
-H 'Content-Type: application/json' \
-d '{"security":"NVDA","limit":10}'
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/nport_fund_owners. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
Standalone (no gateway account)
This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:
{
"mcpServers": {
"sec-nport": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-sec-nport"]
}
}
}
Or run it directly to confirm it starts:
npx -y @pipeworx/mcp-sec-nport
It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call
for only this pack's tools — none of the shared meta-tools the gateway
connection above adds. Same source, same tools, no ask_pipeworx routing.
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Sec Nport data" })
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
Questions fréquentes
Qu'est-ce que Sec Nport ?
SEC Form N-PORT — fund and ETF holdings, asked security-first.
Comment installer Sec Nport ?
Il fonctionne comme serveur distant. Dans Claude Code : claude mcp add --transport http sec-nport 'https://gateway.pipeworx.io/sec-nport/mcp'. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour Sec Nport ?
Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.
Sec Nport est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient Sec Nport ?
Il est publié par pipeworx-io. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.