A trucking submission lands with a USDOT number and a loss run. Before anyone prices it, someone opens SAFER, reads the fleet size, checks the authority, counts the out of service orders and the crashes, and types it all into a spreadsheet. Freight brokers do the same thing before they tender a load. This guide does that step in Python, on open FMCSA data, in about 40 lines.
We published an open sample of 5,000 active US motor carriers for it, under CC BY 4.0:
- Zenodo (DOI): https://doi.org/10.5281/zenodo.24825745
- Hugging Face: https://huggingface.co/datasets/SpecStreamAI/us-fmcsa-commercial-carriers-2026
- Kaggle: https://www.kaggle.com/datasets/specstream/us-fmcsa-commercial-carriers-2026
- GitHub (MIT code): https://github.com/specstream/us-fmcsa-carriers-underwriting-python
What is in the sample
The rows come from the FMCSA register of December 2, 2026: the Company Census File (active carriers only) joined to the licensing, inspection and crash files.
- 100 carriers in each of the 50 states, 5,000 distinct USDOT numbers
- 2,519 small fleets (5 to 20 power units), 1,752 mid market fleets (21 to 100), 729 enterprise fleets (over 100)
- 471,798 power units and 425,413 drivers in total
- 2,710 for hire carriers, 3,874 interstate, 2,421 with an MC docket on file
- 235,082 roadside inspections in 24 months, 25,297 vehicle out of service orders, 12,461 crashes
- 1,008 carriers with zero crashes and zero out of service orders
No street, ZIP, phone or email is in the files, and carriers registered under a person's own name are left out. A validator rereads both files and fails on any email or phone number.
The schema
| Column | Meaning |
|---|---|
| usdot_number | FMCSA identifier |
| legal_name, dba_name | Names on the register |
| mc_docket, has_mc_docket | Operating authority docket, empty when none |
| city, state | Physical city and state |
| power_units, drivers | From the MCS 150 |
| fleet_size_tier | small_5_to_20, mid_21_to_100, enterprise_over_100 |
| operation, for_hire, interstate | Interstate or intrastate, for hire or private |
| cargo_carried | Cargo classes |
| inspections_24m | Roadside inspections, 24 months |
| vehicle_oos_orders_24m, driver_oos_orders_24m | Out of service orders |
| crashes_24m | Reportable crashes, 24 months |
| fmcsa_source_url | The SAFER company snapshot |
Load it
import pandas as pd URL = ("https://huggingface.co/datasets/SpecStreamAI/us-fmcsa-commercial-carriers-2026" "/resolve/main/data/us_fmcsa_commercial_carriers_2026.parquet") df = pd.read_parquet(URL) print(df.shape) # (5000, 21) print(df.fleet_size_tier.value_counts()) Score every carrier
The score below is a screening score, not FMCSA's SMS percentile. It is built from three rates an underwriter already reads, each scaled to twice the sample median so one outlier cannot dominate, plus a flag for carriers with too few inspections to judge.
def rate(num, den): return (num / den.where(den > 0)).fillna(0.0) def score(df): out = df.copy() out["vehicle_oos_rate"] = rate(out.vehicle_oos_orders_24m, out.inspections_24m) out["driver_oos_rate"] = rate(out.driver_oos_orders_24m, out.inspections_24m) out["crashes_per_100_units"] = rate(out.crashes_24m * 100, out.power_units) out["inspections_per_unit"] = rate(out.inspections_24m, out.power_units) def scaled(col): ref = out[col][out[col] > 0].median() return (out[col] / (2 * ref)).clip(upper=1.0) out["risk_score"] = ( 35 * scaled("vehicle_oos_rate") + 20 * scaled("driver_oos_rate") + 35 * scaled("crashes_per_100_units") + 10 * (out.inspections_per_unit < 0.25) ).round(1) return out scored = score(df) print(scored.risk_score.median()) # 28.0 print((scored.risk_score <= 20).sum()) # 1917 Turn an appetite into a filter
Say the appetite is for hire carriers with an MC docket, 21 to 100 power units, in Texas. The riskiest go to the top for referral:
shortlist = scored[ (scored.state == "TX") & (scored.fleet_size_tier == "mid_21_to_100") & scored.for_hire & scored.has_mc_docket ].sort_values("risk_score", ascending=False) print(len(shortlist)) # 16 print(shortlist[["usdot_number", "legal_name", "power_units", "vehicle_oos_rate", "crashes_per_100_units", "risk_score"]].head(3)) usdot_number legal_name power_units vehicle_oos_rate crashes_per_100_units risk_score 2587488 F Vuelvas Trucking Inc 25 0.50 12.00 85.30 3177833 Aza Logistics LLC 21 0.57 9.52 81.70 3507077 Star of Life Enterprises LLC 26 0.36 7.69 66.00 The repo wraps this in a command line tool, with reason codes on every row so a referral note can quote them:
git clone https://github.com/specstream/us-fmcsa-carriers-underwriting-python cd us-fmcsa-carriers-underwriting-python && pip install -r requirements.txt python scripts/vet.py --state OH --state PA --for-hire --mc --max-risk 20 --out approved.csv From 5,000 carriers to all of them
The sample is enough to build and test a rule. A book of business needs every carrier. SpecStream keeps all 2,226,654 active US motor carriers, with 5,708,235 roadside inspections and 273,303 crashes of the last 24 months, read from FMCSA on December 2, 2026, split by state, city, cargo and fleet size, and the carriers FMCSA added in the last 30 days:
- Carrier lists by state, city, cargo and fleet size: https://specstream.ai/data/carriers
- Underwriting data for P&C teams and MGAs (FMCSA, OSHA, liquor licenses, permits): https://specstream.ai/commercial-insurance-underwriting-data
- Commercial building permits for contractor and property risks: https://specstream.ai/data/building-permits
- Data packs: https://specstream.ai/deals#packs
- Search API for a live check on any carrier, broker or insured: https://specstream.ai/docs/search-api
Every row carries the official record it came from, so a referral can link straight to SAFER.