@pipeworx/mcp-naics
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@pipeworx/naics
NAICS industry code reference: code to title and description with the full parent/child hierarchy, keyword search, 2017 to 2022 edition crosswalks, SIC to NAICS crosswalks, and company to NAICS (SAM.gov registrations plus the SEC's SIC).
Part of Pipeworx — an MCP gateway connecting AI agents to 2034+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
NAICS is a filter or field inside about a dozen Pipeworx packs (samgov, usaspending, sba-loans, bls, osha, epa-echo and others), so a caller can filter contracts by 541511. This pack answers what 541511 means and finds the code for an industry phrase.
Tools
naics_lookup(code, edition?, include_description?)— official title, description, level (sector to national industry), the parent chain and child codes for a 2 to 6 digit code. Editions 2022 (default) and 2017. An unknown code is an error that names the nearest codes and, when the code exists in the other edition, says so.naics_search(query, edition?, level?, limit?)— plain words to codes ("software publishers" returns 513210 in 2022, 511210 in 2017; "dental offices" returns 621210). Every word must appear in a title or description; the title match ranks first.naics_crosswalk(code, from_edition?, to_edition?)— 2017 to 2022 and 2022 to 2017. Says whether the industry was unchanged, split, merged or renumbered; codes of five digits or fewer map through their six-digit descendants.naics_sic_crosswalk(sic? | naics?)— 4-digit SIC (still the code on SEC filings) to candidate NAICS 2022 codes, or a NAICS 2022 code back to its SIC candidates. Candidate lists, not one-to-one.naics_company(name? | uei? | ticker? | cik?)— the NAICS codes a company declared in its SAM.gov registration (primary and others, with titles) and the SEC's SIC for it with derived NAICS candidates.
For market size by NAICS and geography see census-business (establishments, employment, payroll) and qcew (BLS county employment and wages by industry): different publishers and datasets, both keyed on the codes this pack resolves.
Related MCP server: B2B Compliance & Entity Verification MCP Server
Auth
Keyless.
Data sources
U.S. Census Bureau, North American Industry Classification System (NAICS): the 2022 and 2017 editions, the edition concordances, and the SIC concordance. U.S. federal data, public domain.
SAM.gov, Entity Registration (U.S. General Services Administration), for
naics_company. Published monthly, so a registration can be up to about a month old; the response carries the snapshot date.U.S. Securities and Exchange Commission, public company records, for
naics_company(SIC code and description).
The NAICS tables are baked (about 2,100 codes per edition) and served from KV; they change once per five-year edition. baked_at in each response is the bake time.
Things worth knowing
NAICS sector codes 31-33, 44-45 and 48-49 are ranges.
naics_lookupaccepts31,32or33and resolves them to31-33.The SIC to NAICS result is derived by chaining the Census concordances (1987 SIC to 2002 NAICS directly, then 2002 > 2007 > 2012 > 2017 > 2022).
direct_2002_naicsshows the first, official hop. Treat the 2022 list as candidates.The SEC assigns SIC, not NAICS. The NAICS shown beside an SEC company is a candidate list; the SAM.gov codes are the company's own declaration.
Refresh: re-bake once per NAICS edition (next: 2027):
python3 scripts/bake-index.py > src/naics-index-data.ts(needs openpyxl and xlrd). Owner is named inscripts/baked-index-freshness.json.
Budget: baked tables are one ~2 MB KV object written at deploy; reads are one KV get per isolate cold start. Under $1 one-time, about $0 per month.
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"naics": {
"url": "https://gateway.pipeworx.io/naics/mcp"
}
}
}What this endpoint actually serves
tools/list at https://gateway.pipeworx.io/naics/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 2034+ 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/naics_lookup \
-H 'Content-Type: application/json' \
-d '{"code":"541511"}'No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/naics_lookup. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
Run it from npm
@pipeworx/mcp-naics is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with npx, and it forwards every call to the same
https://gateway.pipeworx.io/naics/mcp endpoint shown above. It needs network access;
there is no offline mode.
{
"mcpServers": {
"naics": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-naics"]
}
}
}Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
"env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to
also list ask_pipeworx and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by
default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check
your Node version's documentation.
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 Naics data" })The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Classification service to seamlessly retrieve SOC codes for job titles and descriptions.
Deterministic company, entity and location lookups for agents - per call, x402 or API key.
Classify, validate & verify HS codes and access tariff compliance data for cross-border trade
Classifies products into HS/HTS customs codes for import/export workflows. $0.10/call via x402.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables agents to look up Indiana state statutes by citation, run full-text topic searches, and retrieve historical per-year annual editions of the code, with amendment-history notes split out from section text. Covers all 37 Indiana Code titles from the official state legislature source without requiring an API key.97 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents and compliance pipelines to run deterministic checks against FMCSA carrier authority, CMS NPI records, federal sanctions and exclusion lists, phone TCPA/DNC risk, SEC EDGAR, EU VAT, NHTSA VIN, and B2B email deliverability.MIT
- AlicenseNot gradedqualityBmaintenanceProvides AI clients with deterministic lookup and cross-walk tools for 1,460+ public-sector contracting references, covering FAR/DFARS, SBA set-asides, NAICS/PSC/NIGP codes, procurement portals, glossary terms, and capture playbooks.240 npmMIT
- AlicenseAqualityBmaintenanceEnables agents to search public drug, supplement, and cosmetic databases by product name, brand, ingredient, barcode, NDC, or chemical identifier without choosing a source first. Resolves identities across sources and retrieves full cited records plus literature and classification references such as PubMed, MeSH, and RxClass.7Apache 2.0