Skip to main content
Glama
README.md
# cdl-waypoint-mcp

An MCP server that gives AI assistants the data behind [CDL Waypoint](https://cdldotguide.com): state rules for the DOT medical card, state CDL fees, clinics for the DOT physical, public CDL training locations, and two calculators built on the federal rules.

It reads the site's public JSON API at `https://cdldotguide.com/api/v1/` and nothing else. There is no key and no account. Files are cached in memory for six hours, so a normal session makes only a handful of requests.

CDL Waypoint is not affiliated with FMCSA, USDOT or any state agency.

## Tools

| Tool | What it answers |
|---|---|
| `list_states` | Every state and DC with its clinic and CDL school counts. |
| `get_state_medical_card_rules(state)` | How the state handles the medical examiner's certificate: how results reach the state, deadlines, self-certification, expiry, contacts. Each fact links its official page. |
| `get_state_cdl_costs(state, school_price_usd?, hazmat?)` | Published permit, license, test, endorsement and renewal fees with their official pages, published Class A school prices, and an estimate of a first Class A CDL. |
| `find_dot_physical_clinics(state, city?, clinic_type?, limit?)` | Occupational medicine and urgent care clinics, and clinic-network locations whose network says it offers DOT physicals. |
| `find_cdl_schools(state, city?, training_class?, priced_only?, include_traveling?, limit?)` | Public training locations from the FMCSA Training Provider Registry, with the classes each is registered for and published prices. |
| `medical_card_expiration(exam_date, certificate_months?, today?)` | Estimated expiry date of the medical card, days left and when to book the next exam. |
| `hours_of_service_check(on_duty_start, current_time, ...)` | Driving time left today under the 11-hour, 14-hour, 30-minute break and 60/70-hour rules, and when the 14-hour window closes. |

`state` takes a two-letter code (`TX`, `dc`) or a name (`Texas`, `New York`). `city` matches the city names the site uses; when a city is not found, the answer lists the closest names.

Every answer ends with a line like this:

```
Source: CDL Waypoint (cdldotguide.com), data as of 2026-11-25; official source: https://dmv.vermont.gov/...
```

Answers about rules also carry a short not-legal-advice note.

The two calculators use the same arithmetic as the calculators on [cdldotguide.com/tools](https://cdldotguide.com/tools/). The medical card expiry adds the period to the exam date and clamps the day to the end of the month (an August 31 exam with a 6-month card gives February 28). The date printed on the certificate is always the one that counts.

## Resources

| URI | Content |
|---|---|
| `cdl-waypoint://openapi.json` | The OpenAPI 3.1 description of the data API. |
| `cdl-waypoint://data-dates.json` | When the data was last rebuilt, the date of each upstream source, and record counts. |
| `cdl-waypoint://terms.json` | Attribution, licence and usage notes as the API states them. |

## Install

Node.js 20 or newer.

For now, from a local copy:

```sh
git clone <repository-url> cdl-waypoint-mcp
cd cdl-waypoint-mcp
npm ci
npm test
```

Run it straight from GitHub with `npx -y github:open-us-data/cdl-waypoint-mcp`.

### Claude Desktop

Edit `claude_desktop_config.json` (Settings, Developer, Edit Config):

```json
{
  "mcpServers": {
    "cdl-waypoint": {
      "command": "node",
      "args": ["/absolute/path/to/cdl-waypoint-mcp/bin/cdl-waypoint-mcp.js"]
    }
  }
}
```

After publishing, replace `command` and `args` with `"command": "npx", "args": ["-y", "cdl-waypoint-mcp"]`.

### Cursor

`~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):

```json
{
  "mcpServers": {
    "cdl-waypoint": {
      "command": "node",
      "args": ["/absolute/path/to/cdl-waypoint-mcp/bin/cdl-waypoint-mcp.js"]
    }
  }
}
```

### VS Code

`.vscode/mcp.json` in the workspace:

```json
{
  "servers": {
    "cdl-waypoint": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/cdl-waypoint-mcp/bin/cdl-waypoint-mcp.js"]
    }
  }
}
```

### HTTP

```sh
node bin/cdl-waypoint-mcp.js --http --port 3000
```

This serves Streamable HTTP at `http://127.0.0.1:3000/mcp` (stateless, POST only) and a health check at `/healthz`. It binds to localhost unless you pass `--host`.

### Docker

```sh
docker build -t cdl-waypoint-mcp .
docker run -i --rm cdl-waypoint-mcp
```

### Settings

| Variable | Default | Meaning |
|---|---|---|
| `CDL_WAYPOINT_CACHE_TTL_SECONDS` | `21600` | How long a downloaded file is reused. |
| `CDL_WAYPOINT_API_BASE` | `https://cdldotguide.com/api/v1/` | Base URL of the data API (for testing against a copy). |

Requests are sent with the User-Agent `cdl-waypoint-mcp/<version> (+https://cdldotguide.com/developers/)`.

## Tests

```sh
npm test            # offline, against recorded API files in test/fixtures
npm run test:live   # one smoke test against the live API (about 5 requests)
```

`npm run record-fixtures` downloads fresh copies of the recorded files. The tests take expected counts from those files, so they keep passing when the data changes.

## Data, licence and attribution

The code in this repository is MIT licensed (see `LICENSE`).

The data is not part of that licence. It comes from the CDL Waypoint API, which says:

- The government source data is not subject to copyright (see each source). No licence has been chosen yet for the compiled data set as a whole; reading and quoting with attribution is welcome.
- Attribution: name CDL Waypoint and the original source of each record (the `sources` list in `https://cdldotguide.com/api/v1/index.json`, also in the `cdl-waypoint://data-dates.json` resource).
- Listings come from public government data and can be out of date. Check any provider with the official registry before you pay or travel.
- A clinic listing does not confirm DOT certification. Only an examiner on the [FMCSA National Registry](https://nationalregistry.fmcsa.dot.gov/search-medical-examiners) can do a DOT physical.
- Do not use the data to send unsolicited bulk messages to listed providers.

Main upstream sources: the FMCSA Training Provider Registry, the CMS NPPES provider file, state motor vehicle agency pages, and the published prices of schools and clinics. Terms: <https://cdldotguide.com/terms/>. Sources: <https://cdldotguide.com/sources/>.

Nothing here is legal or medical advice. The federal regulations, your state licensing agency and your medical examiner have the final word.

TDQS

A3.9/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a distinct resource or operation: state listings, state-level medical rules, state-level costs, school search, clinic search, and two stand-alone calculators. The only close pair is get_state_medical_card_rules versus medical_card_expiration, but one is state policy lookup and the other is an individual date calculation, clearly separated by their descriptions.

Naming Consistency4/5

The lookup tools follow a clear verb_noun pattern (list_states, get_state_*, find_*), which is predictable. The two calculator tools deviate with noun-phrase names (medical_card_expiration, hours_of_service_check), but they remain readable and their purpose is clear.

Tool Count5/5

Seven tools is well-scoped for a CDL information and planning assistant. Each tool covers a distinct need — state overview, rules, costs, schools, clinics, medical card expiry, and hours-of-service — with no obvious filler.

Completeness4/5

The core workflows are covered: browsing states, checking medical-card rules and costs, finding schools and clinics, and calculating medical-card expiry and driving time. A notable gap is the lack of a tool to search the FMCSA National Registry for certified medical examiners, despite the clinic tool explicitly warning that a clinic listing does not prove certification.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues