Skip to main content
Glama
X3 Compliance MCP Server

X3 Compliance MCP Server

Official

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.

Setup page →

Tools

Tool

What it does

Source

hos_check

Every hours-of-service violation in a driver log, and time left to drive

49 CFR 395 (x3-hos-engine)

osha_is_recordable

300 Log or not, column, privacy case, 8/24-hour OSHA report

29 CFR 1904 (x3-osha-recordkeeping)

osha_coverage

Must the employer keep records and file with OSHA's ITA; due dates

29 CFR 1904.1, .2, .41

osha_rates

TRIR, DART and days-away rates

BLS formula

osha_hearing_shift

Standard Threshold Shift and 25 dB test, optional age correction

29 CFR 1904.10, 1910.95 App. F

dig_clock_811

Earliest legal dig time, utility deadline, ticket expiry (MI, OH, TX)

State one-call law (x3-811-tickets)

parse_811_ticket

Fields, members and coordinates from a ticket email

cfr_lookup

Text of any CFR citation, paragraph by paragraph

eCFR (x3-ecfr-toolkit)

cfr_search

Full-text search of the CFR

eCFR

cfr_changes

Amendments to a part since a date; paragraph diff of a section

eCFR

uscg_vessel_search

Find a vessel in Coast Guard records

USCG PSIX (x3-uscg-psix)

uscg_vessel_profile

Certificates with days left, inspections, deficiencies, flags

USCG PSIX

dq_file_check

Driver qualification file: missing, late, expiring, qualified to drive today

49 CFR 391.51, 391.23, 391.25, 382.701 (x3-dq-file)

dot_random_testing

Random test counts for the year and period, and an unbiased auditable draw

49 CFR 382.305 (x3-dot-random)

csa_explain

CSA BASIC measures from inspections: what drives them, when they drop off

FMCSA SMS methodology (x3-csa-explainer)

osha_state_jurisdiction

Federal OSHA or a State Plan (MIOSHA, Cal/OSHA...) for this employer

29 CFR 1952 (x3-osha-state-plans)

sds_check

Read and check a safety data sheet; workplace label

29 CFR 1910.1200 App. D (x3-sds-reader)

pipeline_design_and_maop

Class location, design pressure, MAOP, % SMYS, impact radius

49 CFR 192 (x3-pipeline-calcs)

mariner_rest_check

STCW hours of rest and the 12-hour towing limit

46 CFR 15.1111, 46 U.S.C. 8104(h) (x3-rest-hours)

us_federal_holidays

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-mcp

VS 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 build

License

MIT. Free for any use, including commercial.

Available Tools

20 tools
cfr_changesWhat changed in a federal regulation?A
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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.

csa_explainExplain CSA BASIC measures from roadside inspectionsA
Read-onlyIdempotent
Inspect

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 clockA
Read-onlyIdempotent
Inspect

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 drawA
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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 serviceA
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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?A
Read-onlyIdempotent
Inspect

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)?A
Read-onlyIdempotent
Inspect

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?A
Read-onlyIdempotent
Inspect

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 ratesA
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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 emailB
Read-onlyIdempotent
Inspect

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)B
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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 vesselA
Read-onlyIdempotent
Inspect

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.

us_federal_holidaysU.S. federal holidaysA
Read-onlyIdempotent
Inspect

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

    A3.8/5.0

    Scored across 20 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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