
Hazmat Cfr Mcp
io.github.andretakiPublished by GitHub account andretakiv0.3.0Updated Oct 24, 2026
Complete 49 CFR 172.101 hazmat table lookup with special-provision decoding, cited to eCFR.
Overview
A local MCP server that gives an assistant the full 49 CFR 172.101 hazardous materials table for DOT hazmat lookup, classification and validation, cited to eCFR
- What you can do
- Look up hazmat entries by UN/NA number or proper shipping name, with decoded symbols and special provisions, and get full shipping requirements in one call (labels, packaging, stowage, placards, citations). Parse and validate shipping descriptions, and check label requirements, placards, segregation and limited-quantity eligibility. Decode Column 7 special provisions and Column 8 packaging references into their regulatory text. Explain which public CFR source backs a field or rule.
- When to use it
- Useful when an assistant needs to answer shipping questions about hazardous materials — proper shipping names, hazard classes, packing groups, labels, aircraft limits, vessel stowage — and should cite the regulation rather than guess. Aimed at logistics, shipping and compliance drafting work, not at replacing a trained hazmat employee.
- Requirements
- Runs as a local stdio process on the user's machine, started via npx with the hazmat-cfr-mcp package (Node.js required). No API keys, accounts or environment variables are declared; the dataset ships with the package and is pinned to a dated eCFR snapshot.
Installation
In SourceWeft
- Open Hazmat Cfr Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
hazmat-cfr-mcp
The complete 49 CFR 172.101 Hazardous Materials Table, as an MCP tool for AI agents — every field cited to a pinned eCFR revision.
[CI] [npm] [MCP] [License: MIT]
Give Claude, Cursor, Codex, and other MCP clients a DOT hazmat lookup, classification, and validation tool backed by the entire Hazardous Materials Table — not a sample.
Ask an agent:
Can I ship 60 L of acetone on a cargo-only aircraft? What are its label, packing, and special-provision requirements?
It returns the proper shipping name, hazard class, packing group, label codes, packaging references, aircraft limits, vessel stowage, decoded special provisions, and CFR citations — in structured JSON.
Use it two ways:
hazmat-cfr-mcp— MCP stdio server for agentshazmat-cfr— local CLI for humans, tests, and scripts
No API keys. No customer data. No carrier contracts. No NMFC. Public CFR only.
What's in the box
- ~2,700 Hazardous Materials Table entries (49 CFR 172.101) — every UN/NA entry plus Forbidden materials, ingested directly from the official eCFR.
- Special-provision decoding — all ~420 Column 7 codes (49 CFR 172.102: numeric, A, B, IB, IP, N, R, T, TP, W) expanded into their regulatory text.
- Legend decoding — Column 1 symbols (
+ A D G I W), Column 10A vessel stowage categories, and Columns 8A–8C packaging references resolved to part-173 sections. - Pinned to a dated eCFR snapshot so every answer is reproducible and citable to an exact revision.
- A curated synonym/CAS layer so "IPA", "muriatic acid", or "bleach" resolve — kept clearly separate from regulatory data.
10-second try
Why this exists
Foundation models are weak at regulated shipping details. They may know what acetone is, but they should not guess whether a shipping description is complete, what IB2 means, or which CFR field backs a label requirement.
This server gives agents an explicit, cited, complete hazmat tool surface so they answer with the regulation instead of a hallucination.
Accuracy & verification
This is a compliance-adjacent tool, so correctness is enforced by the build, not by hope:
- The dataset is generated from the eCFR versioner API and committed to the repo (see docs/data-pipeline.md). It is never hand-edited.
- The ingest fails if any special-provision code referenced by the table does not resolve in 172.102 (documented source errata, e.g.
IP16, are resolved to an explicit "referenced but not defined" note — never fabricated). test/data-integrity.test.tsre-checks entry counts, structural validity, referential integrity, and ~22 hand-verified spot-checks on every run.- The parsers are unit-tested against fixtures in
test/fixtures/.
⚠️ Disclaimer. This is an informational aid that surfaces public CFR text. It is not legal advice, not a compliance certification, and not a substitute for a trained hazmat employee. Always verify any shipping decision against the current eCFR.
Install and run
From a clone:
CLI:
MCP client config
For a local checkout, point command at node and args at dist/server.js.
Tools
Example call:
Library use
Refreshing the data
See docs/data-pipeline.md for the full pipeline.
Non-goals
Not legal advice; not a replacement for trained hazmat employees; not a full compliance certification engine; not NMFC classification; not carrier contract/tariff analysis. No private customer data, contract rates, or internal business records belong in this repo.
Safety
Maintainer
Andre Taki — Alliance Chemical — [email protected]
License
MIT — the underlying 49 CFR text is a public-domain work of the U.S. government.
Source: README.md at commit c733ac6
Tools
0Version history
1- v0.3.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts