X3 Compliance MCP Server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@X3 Compliance MCP Server Can you check this driver's log for hours-of-service violations?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
X3 Compliance MCP Server
Give your AI assistant real safety and compliance tools. A free Model Context Protocol server that lets Claude, ChatGPT, Cursor, VS Code and other MCP clients check a driver's hours of service and qualification file, explain CSA scores, run DOT random selections, decide whether an injury is OSHA recordable, read safety data sheets, work out when an 811 ticket allows digging, compute pipeline MAOP, check mariner rest hours, quote any federal regulation from the official eCFR, and pull a vessel's Coast Guard record. Every answer comes from the rule text or official government data and cites it.
Built and maintained by X3: X3 Fleet Safety · X3 Workplace Safety · X3 Pipeline · X3 Maritime.
Tools
Tool | What it does | Source |
| Every hours-of-service violation in a driver log, and time left to drive | 49 CFR 395 (x3-hos-engine) |
| 300 Log or not, column, privacy case, 8/24-hour OSHA report | 29 CFR 1904 (x3-osha-recordkeeping) |
| Must the employer keep records and file with OSHA's ITA; due dates | 29 CFR 1904.1, .2, .41 |
| TRIR, DART and days-away rates | BLS formula |
| Standard Threshold Shift and 25 dB test, optional age correction | 29 CFR 1904.10, 1910.95 App. F |
| Earliest legal dig time, utility deadline, ticket expiry (MI, OH, TX) | State one-call law (x3-811-tickets) |
| Fields, members and coordinates from a ticket email | |
| Text of any CFR citation, paragraph by paragraph | eCFR (x3-ecfr-toolkit) |
| Full-text search of the CFR | eCFR |
| Amendments to a part since a date; paragraph diff of a section | eCFR |
| Find a vessel in Coast Guard records | USCG PSIX (x3-uscg-psix) |
| Certificates with days left, inspections, deficiencies, flags | USCG PSIX |
| Driver qualification file: missing, late, expiring, qualified to drive today | 49 CFR 391.51, 391.23, 391.25, 382.701 (x3-dq-file) |
| Random test counts for the year and period, and an unbiased auditable draw | 49 CFR 382.305 (x3-dot-random) |
| CSA BASIC measures from inspections: what drives them, when they drop off | FMCSA SMS methodology (x3-csa-explainer) |
| Federal OSHA or a State Plan (MIOSHA, Cal/OSHA...) for this employer | 29 CFR 1952 (x3-osha-state-plans) |
| Read and check a safety data sheet; workplace label | 29 CFR 1910.1200 App. D (x3-sds-reader) |
| Class location, design pressure, MAOP, % SMYS, impact radius | 49 CFR 192 (x3-pipeline-calcs) |
| STCW hours of rest and the 12-hour towing limit | 46 CFR 15.1111, 46 U.S.C. 8104(h) (x3-rest-hours) |
| Observed federal holidays for a year | 5 U.S.C. 6103 |
All tools are read-only. Nothing about your questions is sent anywhere except the public government APIs the CFR and Coast Guard tools call (ecfr.gov and cgmix.uscg.mil).
Related MCP server: C4C: Mortgage Industry Regulations
Install
Remote server (no install): add https://mcp.x3api.com/mcp as a custom connector in Claude (Settings → Connectors) or any client that supports remote MCP servers.
Claude Desktop, one click: download x3-compliance.mcpb and open it (or drag it into Settings → Extensions). Also listed in the MCP Registry as io.github.x3allamerican/x3-compliance-mcp.
Or run it with npx (Node.js 22.6 or later):
Claude Desktop (Settings → Developer → Edit Config), Cursor (~/.cursor/mcp.json) and most clients:
{
"mcpServers": {
"x3-compliance": {
"command": "npx",
"args": ["-y", "x3-compliance-mcp"]
}
}
}Claude Code:
claude mcp add x3-compliance -- npx -y x3-compliance-mcpVS Code (.vscode/mcp.json):
{ "servers": { "x3-compliance": { "type": "stdio", "command": "npx", "args": ["-y", "x3-compliance-mcp"] } } }Then ask things like:
"Here's my driver's log for Monday and Tuesday. Any hours-of-service violations?"
"An employee cut his hand, got 4 stitches and was back the next day. Is it OSHA recordable?"
"We called in an 811 ticket in Ohio at 3 p.m. Monday. When can we dig?"
"Quote 49 CFR 192.605(b) and tell me what changed in Part 192 since 2024."
"Is the Certificate of Inspection current for the towboat ...?"
Use as a library
import { createServer } from 'x3-compliance-mcp';
const server = createServer();
await server.handle({ jsonrpc: '2.0', id: 1, method: 'tools/list' });The server is dependency-free: JSON-RPC 2.0 over stdio, protocol versions 2025-06-18, 2025-03-26 and 2024-11-05. The engines are vendored in vendor/ from the X3 repos (node scripts/vendor.mjs .. refreshes them).
Privacy
No accounts and no stored data. See the privacy policy.
Limits
Decision support, not legal advice. Federal rules plus the three built-in 811 states. Ask your assistant to show the citation, and check it.
Develop
npm install
npm test # in-process protocol and tool tests
MCP_E2E=1 npm test # also runs the built binary over stdio
npm run buildLicense
MIT. Free for any use, including commercial.
Available Tools
20 toolscfr_changesWhat changed in a federal regulation?ARead-onlyIdempotentInspect
List the substantive amendments to a CFR part (or section) since a date, newest first, from the official eCFR. Optionally compare one section between two dates paragraph by paragraph.
Inputs: since (required), title (required), part, section, +1 more.
cfr_lookupRead a federal regulation (eCFR)ARead-onlyIdempotentInspect
Get the current (or dated) text of a Code of Federal Regulations citation such as "49 CFR 395.3(a)(2)" or "29 CFR 1910.147(c)(4)" from the official eCFR, paragraph by paragraph with a citation and link for each.
Inputs: citation (required), date.
cfr_searchSearch federal regulations (eCFR)ARead-onlyIdempotentInspect
Full-text search of the Code of Federal Regulations. Narrow by title (29 OSHA, 49 DOT/FMCSA/PHMSA, 46 and 33 Coast Guard, 40 EPA) and part.
Inputs: query (required), part, limit, title.
csa_explainExplain CSA BASIC measures from roadside inspectionsARead-onlyIdempotentInspect
Compute FMCSA SMS measures for HOS Compliance, Vehicle Maintenance, Driver Fitness and HM Compliance from inspections (date, level, violations with basic, severity 1-10 and outOfService), show which inspections drive each measure and when they step down and drop off. Percentiles are not computed.
Inputs: inspections (required), asOf, carrierType.
dig_clock_811811 call-before-you-dig clockARead-onlyIdempotentInspect
When may an excavator legally start digging after an 811 locate request, when must utilities mark, what is the latest start, and when does the ticket expire, under state one-call law with the statute cited. States: MI, OH, TX. Holidays default to U.S. federal holidays; pass the one-call center's posted list when you have it.
Inputs: state (required), noticeAt (required), holidays, timeZone, +2 more.
dot_random_testingDOT random drug and alcohol testing: how many, and a fair drawARead-onlyIdempotentInspect
FMCSA random testing under 49 CFR 382.305: the year's minimum tests from the average pool (50% drug, 10% alcohol for 2026), how many to select this period to stay on pace, and optionally an unbiased random selection from a list of driver IDs (use employee numbers, never names or SSNs), with a pool fingerprint.
Inputs: poolSizes (required), periodsPerYear (required), seed, poolIds, +2 more.
dq_file_checkCheck a driver qualification file (49 CFR 391.51)ARead-onlyIdempotentInspect
Check a driver qualification file: application, pre-employment MVR and safety performance history within 30 days of hire, road test or equivalent, annual MVR and review, medical certificate, CDLIS medical status or National Registry note, Clearinghouse queries. Says what is missing, late, expiring or overdue, whether the driver is qualified to drive today, and retention dates. Dates are YYYY-MM-DD.
Inputs: file (required), asOf.
hos_checkCheck a driver log against FMCSA hours of serviceARead-onlyIdempotentInspect
Find every hours-of-service violation in a commercial driver's duty-status log under 49 CFR Part 395 (11/10-hour driving, 14/15-hour window, 30-minute break, 60/70-hour cycle with 34-hour restart, split sleeper berth, adverse conditions, short-haul, 16-hour exception) and how much time the driver has left. Give status changes in time order with ISO 8601 times that include an offset.
Inputs: events (required), asOf, cycle, carrier, +3 more.
mariner_rest_checkCheck mariner hours of rest (STCW, 46 CFR 15.1111)ARead-onlyIdempotentInspect
Check work periods against STCW hours of rest (10 in any 24 hours, 77 in any 7 days, no more than two rest periods with one of 6 hours, no more than 14 hours between rests) and optionally the 12-hour towing work limit in 46 U.S.C. 8104(h). Every sliding window is checked.
Inputs: work (required), to, from, towing.
osha_coverageMust an employer keep OSHA records and file them electronically?ARead-onlyIdempotentInspect
Check 29 CFR 1904.1, 1904.2 and 1904.41: whether a company must keep OSHA 300/300A/301 records (size and partially exempt NAICS industries) and whether an establishment must submit Form 300A, and Forms 300 and 301, to OSHA's Injury Tracking Application, with the due date and posting calendar.
Inputs: year (required), naics (required), peakCompanyEmployees (required), peakEstablishmentEmployees (required).
osha_hearing_shiftIs a hearing loss OSHA recordable (Standard Threshold Shift)?ARead-onlyIdempotentInspect
Compare a baseline and current audiogram at 2000, 3000 and 4000 Hz under 29 CFR 1904.10: Standard Threshold Shift of 10 dB average plus a 25 dB hearing level in the same ear. Optional age correction from 29 CFR 1910.95 Appendix F.
Inputs: current (required), baseline (required), ageCorrectSex.
osha_is_recordableIs this injury or illness OSHA recordable?ARead-onlyIdempotentInspect
Decide under 29 CFR 1904.4-1904.11, 1904.29 and 1904.39 whether a case goes on the OSHA 300 Log, its column (death, days away, restricted, other) and type, whether it is a privacy case, and whether OSHA must be called within 8 or 24 hours. First-aid ids: otcMedicationAtOtcStrength, tetanusImmunization, cleaningWounds, woundCoverings, hotColdTherapy, nonRigidSupport, temporaryImmobilizationForTransport, nailDrillingBlisterDraining, eyePatch, eyeForeignBodyIrrigationOrSwab, splinterRemovalSimple, fingerGuards, massage, drinkingFluidsHeatStress. Medical-treatment ids (any other text also counts as medical treatment): prescriptionMedication, sutures, rigidSplintOrCast, physicalTherapy, otherImmunization, eyeForeignBodyOtherMeans, woundClosingDevice, respiratoryTherapy, surgery. Work-relatedness exceptions: generalPublic, symptomsOnly, voluntaryWellness, eatingDrinking, personalTasks, personalGrooming, commuteParkingLot, coldOrFlu, mentalIllnessNoOpinion.
Inputs: type, death, daysAway, diagnosis, +19 more.
osha_ratesTRIR and DART ratesARead-onlyIdempotentInspect
Compute the total recordable case rate (TRIR), DART rate and days-away case rate per 200,000 hours, the way BLS does.
Inputs: otherCases (required), hoursWorked (required), daysAwayCases (required), restrictedCases (required), +1 more.
osha_state_jurisdictionWho enforces workplace safety in a state (OSHA State Plans)ARead-onlyIdempotentInspect
For a state and employer type (private, state-local, federal), say whether federal OSHA or a State Plan (like MIOSHA or Cal/OSHA) has jurisdiction, with the plan's agency, website and 29 CFR 1952 citation.
Inputs: state (required), employer (required).
parse_811_ticketRead an 811 ticket emailBRead-onlyIdempotentInspect
Pull the ticket number, type, dates, excavator, address, work area, coordinates and member utilities out of the plain text of a one-call ticket.
Inputs: text (required).
pipeline_design_and_maopGas pipeline design pressure, MAOP and impact radius (49 CFR 192)BRead-onlyIdempotentInspect
Steel gas pipeline arithmetic with citations: class location from building count (192.5), design pressure P = (2St/D) x F x E x T (192.105-192.115), test-pressure factor and MAOP as the lowest limit (192.619(a)), hoop stress as % SMYS, and potential impact radius (192.903).
Inputs: od (required), smys (required), wall (required), gasTempF, +5 more.
sds_checkRead and check a safety data sheet (OSHA HazCom)ARead-onlyIdempotentInspect
Parse the text of a GHS safety data sheet into signal word, hazard and precautionary statements, pictograms, ingredients (CAS numbers with check digits verified), exposure limits, flash point, PPE and revision date; check it against 29 CFR 1910.1200 Appendix D; and build a workplace label.
Inputs: text (required).
uscg_vessel_profileCoast Guard compliance snapshot for a vesselARead-onlyIdempotentInspect
For a PSIX vessel ID: particulars, current certificates (Certificate of Inspection, documentation, load line, class) with days left, recent inspections and incident investigations, deficiencies found and whether they are open, and flags for anything expiring or overdue.
Inputs: vesselId (required), since.
uscg_vessel_searchFind a vessel in Coast Guard records (PSIX)ARead-onlyIdempotentInspect
Search the U.S. Coast Guard Port State Information Exchange by vessel name (partial match), call sign, official number, flag or service. Returns each vessel's PSIX ID, name, service, flag and status.
Inputs: flag, name, service, callSign, +1 more.
us_federal_holidaysU.S. federal holidaysARead-onlyIdempotentInspect
The 11 U.S. federal holidays for a year, as observed (weekend holidays moved to Friday or Monday).
Inputs: year (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a distinct regulatory task or resource, such as HOS checks, OSHA recordability, CFR lookup, 811 timing, USCG vessel lookup, and pipeline MAOP calculations. The few similarly named tools, like osha_coverage versus osha_state_jurisdiction or cfr_lookup versus cfr_search, are clearly separated by their descriptions.
All tool names use snake_case and generally follow a domain-prefix plus action or subject pattern. There are minor deviations in ordering, such as dig_clock_811, parse_811_ticket, and csa_explain, but the set remains readable and mostly predictable.
The 20 tools cover a broad multi-regulatory compliance surface, so the count is justified by several distinct domains rather than redundancy. It is slightly heavy for the typical 3-15 range, but each tool appears to earn its place.
The server covers major U.S. safety and transportation compliance areas including OSHA, FMCSA, USCG, STCW, 811, pipeline, and CFR research. Some adjacent compliance domains and lifecycle outputs are absent, but the core regulatory checks are well represented and agents can use cfr_lookup or cfr_search to fill minor gaps.
Maintenance
Related MCP Connectors
US government data as clean JSON for AI agents: SAM.gov contract opportunities, USAspending awards, Grants.gov grants, House STOCK Act trades, and SEC EDGAR filings (Form 4 insider trades, 8-K events, 13F holdings, 13D/G stakes, XBRL fundamentals, 10-K/10-Q sections). 19 read-only tools. Data is as fresh as each source publishes; congressional trades lag up to 45 days and report dollar ranges (House only). Free tier, no card.
Compliance frameworks (SOC 2, ISO 27001, CMMC, NIST, more) delivered to AI agents as MCP tools.
Pay-per-call agent tools (x402, MPP): licenses, entities, NPI, OIG/OFAC screens, FMCSA, OSHA, drive
Deterministic European sovereign engine with 90 tools across 20 vertical suites for AI agents: EU Tax/KYB, FatturaPA/Peppol, AI Act, GDPR, DORA, NIS2, Italian Tenders (D.Lgs 36/2023), CBAM, EUDR, and Labour Law. Zero-Data-Retention with verifiable SHA-256 PDF/A audit certificates.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables agent clients to perform read-only regulatory retrieval through tools for searching the corpus, retrieving source text, tracing citations, listing authorities, and inspecting recent filings. It is designed to keep regulated actions and workspace changes behind human review gates.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to retrieve verbatim U.S. mortgage regulations with citations and effective dates, verify quotes, and run guided compliance playbooks without sending user documents to the server.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI tools to search, retrieve, and verify verbatim federal mortgage and consumer-finance regulatory text and citations, check currency and version status, and run guided compliance review playbooks within a self-hosted environment.Elastic 2.0
- 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