cdl-waypoint-mcp
An MCP server that gives AI assistants the data behind CDL Waypoint: 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. 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:
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):
{
"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):
{
"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:
{
"servers": {
"cdl-waypoint": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/cdl-waypoint-mcp/bin/cdl-waypoint-mcp.js"]
}
}
}
HTTP
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
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
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 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.