Skip to content
Back to search

mcp-naics

NAICS reference pack -- fleet #4740.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/pipeworx-io--mcp-naics/badge.svg)](/listings/pipeworx-io--mcp-naics)

HTML

<a href="/listings/pipeworx-io--mcp-naics"><img src="/api/listings/pipeworx-io--mcp-naics/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

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.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 147 lines
  1. # @pipeworx/naics
  2. 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).
  3. Part of [Pipeworx](https://pipeworx.io) — 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.
  4. 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.
  5. ## Tools
  6. - `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.
  7. - `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.
  8. - `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.
  9. - `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.
  10. - `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.
  11. 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.
  12. ## Auth
  13. Keyless.
  14. ## Data sources
  15. - 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.
  16. - 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.
  17. - U.S. Securities and Exchange Commission, public company records, for `naics_company` (SIC code and description).
  18. 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.
  19. ## Things worth knowing
  20. - NAICS sector codes 31-33, 44-45 and 48-49 are ranges. `naics_lookup` accepts `31`, `32` or `33` and resolves them to `31-33`.
  21. - 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_naics` shows the first, official hop. Treat the 2022 list as candidates.
  22. - 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.
  23. - 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 in `scripts/baked-index-freshness.json`.
  24. 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.
  25. ## Quick Start
  26. Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
  27. ```json
  28. {
  29. "mcpServers": {
  30. "naics": {
  31. "url": "https://gateway.pipeworx.io/naics/mcp"
  32. }
  33. }
  34. }
  35. ```
  36. ### What this endpoint actually serves
  37. `tools/list` at `https://gateway.pipeworx.io/naics/mcp` returns the tools in the table
  38. above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
  39. `discover_tools`, `search_within`, `remember`/`recall` and the rest of the
  40. gateway-wide set. So the tool count you see is larger than this table: a
  41. single-pack endpoint currently lists roughly 30 shared tools alongside the
  42. pack's own. The connection's `initialize` response states its exact scope, and
  43. is the authoritative answer for a given day.
  44. This is deliberate, not multiplexing by accident. The meta-tools are what let a
  45. scoped connection answer a question this pack does not cover — via
  46. `ask_pipeworx`, which routes across the whole catalog — without you adding a
  47. second MCP server. There is currently no way to mount a pack endpoint without
  48. them; if the extra schemas cost you more context than the routing is worth,
  49. connect to the full gateway once rather than to several pack endpoints.
  50. Or connect to the full Pipeworx gateway to get every pack's tools listed
  51. directly, instead of just this one's:
  52. ```json
  53. {
  54. "mcpServers": {
  55. "pipeworx": {
  56. "url": "https://gateway.pipeworx.io/mcp"
  57. }
  58. }
  59. }
  60. ```
  61. Both URLs reach the same gateway and the same 2034+ data sources. The
  62. only difference is which pack's tools are listed **directly**; `ask_pipeworx`
  63. reaches all of them from either one.
  64. ## No MCP client? Call it over HTTP
  65. ```bash
  66. curl -X POST https://gateway.pipeworx.io/v1/tools/naics_lookup \
  67. -H 'Content-Type: application/json' \
  68. -d '{"code":"541511"}'
  69. ```
  70. 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":"..."}`.
  71. ## Run it from npm
  72. `@pipeworx/mcp-naics` is a local stdio bridge to the Pipeworx gateway: your MCP client
  73. starts it with `npx`, and it forwards every call to the same
  74. `https://gateway.pipeworx.io/naics/mcp` endpoint shown above. It needs network access;
  75. there is no offline mode.
  76. ```json
  77. {
  78. "mcpServers": {
  79. "naics": {
  80. "command": "npx",
  81. "args": ["-y", "@pipeworx/mcp-naics"]
  82. }
  83. }
  84. }
  85. ```
  86. Without a key it calls anonymously, capped at 50 calls a day. A free account
  87. raises that to 200 a day: get a key at https://pipeworx.io/signup and add
  88. `"env": { "PIPEWORX_API_KEY": "<your key>" }` to the server entry.
  89. The key is sent as a Bearer token, the same way a hosted connection sends it,
  90. so calls are metered and billed exactly as they are there.
  91. It lists **only** this pack's tools by default. Set `PIPEWORX_META_TOOLS=1` to
  92. also list `ask_pipeworx` and the other gateway-wide tools.
  93. Behind an HTTPS proxy: Node's built-in `fetch` does not read `HTTPS_PROXY` by
  94. default. Newer Node releases honour it when `NODE_USE_ENV_PROXY=1` is set; check
  95. your Node version's documentation.
  96. ## Using with ask_pipeworx
  97. Instead of calling tools directly, you can ask questions in plain English —
  98. this works on the pack endpoint above as well as on the full gateway:
  99. ```
  100. ask_pipeworx({ question: "your question about Naics data" })
  101. ```
  102. The gateway picks the right tool and fills the arguments automatically.
  103. ## More
  104. - [Docs and guides](https://pipeworx.io/docs)
  105. - [pipeworx.io](https://pipeworx.io)
  106. ## License
  107. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.