# FMCSA & USDOT Carrier Safety, Authority & Leads (MCP-Ready) (`ferraz_michel/fmcsa-carrier-safety-mcp`) Actor

Vet US motor carriers and generate trucking leads via official USDOT/FMCSA datasets: safety ratings, active MC authority, BIPD insurance coverage, fleet size, contacts, and compact MCP risk summaries for AI agents.

- **URL**: https://apify.com/ferraz_michel/fmcsa-carrier-safety-mcp.md
- **Developed by:** [Michel Ferraz](https://apify.com/ferraz_michel) (community)
- **Categories:** Lead generation, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 carrier records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## FMCSA & USDOT Carrier Safety, Authority & Leads (MCP-Ready)

> Vet US motor carriers and extract active trucking leads using official USDOT / FMCSA open datasets—combining Company Census profiles, MC/MX operating authority, BIPD insurance coverage, and a structured MCP risk verdict (`PASS`, `CAUTION`, `HIGH_RISK`, `DO_NOT_USE`).

***

### Use Cases

1. **Automated Carrier Vetting (Freight Brokers, Shippers & AI Agents):**
   - Look up any carrier by `dotNumber`, `mcNumber`, or `carrierName`.
   - Instantly verify active USDOT status, operating authority (`Common`, `Contract`, `Broker`), pending revocations, BIPD insurance on file, safety rating (`Satisfactory` / `Conditional` / `Unsatisfactory`), and new-authority risk (< 90 days old).
2. **New Carrier & Fleet Lead Generation (Insurance Agents, Factoring & B2B Sales):**
   - Query active carriers by `state`, `city`, `addedAfterDate`, `minPowerUnits`, and `hazmatOnly`.
   - Extract company officers, phone numbers, email addresses, fleet sizes (`power_units`, `total_drivers`), and carried cargo types (`General Freight`, `Refrigerated Food`, `HazMat`, etc.).
3. **Zero External API Key Required:**
   - Queries official U.S. Department of Transportation Socrata APIs (`data.transportation.gov`) directly without any user setup.

***

### Input Parameters

| Field | Type | Description | Example |
| :--- | :--- | :--- | :--- |
| `dotNumber` | String | Official USDOT number | `"22105"` |
| `mcNumber` | String | Motor Carrier docket number | `"202830"` or `"MC-202830"` |
| `carrierName` | String | Legal or DBA company name | `"J B Hunt"` |
| `state` | String | Two-letter US physical state code | `"TX"`, `"CA"`, `"IL"` |
| `city` | String | Physical city name | `"HOUSTON"` |
| `statusCode` | String | USDOT status (`"A"`, `"I"`, `"ALL"`) | `"A"` |
| `addedAfterDate` | String | Filter newly added carriers (`YYYY-MM-DD`) | `"2026-11-01"` |
| `minPowerUnits` | Integer | Minimum truck/power unit fleet size | `5` |
| `hazmatOnly` | Boolean | Hazardous materials carriers only | `false` |
| `includeAuthorityAndInsurance` | Boolean | Join FMCSA L\&I authority & policy data | `true` |
| `maxRecords` | Integer | Maximum carriers returned (1–200) | `20` |
| `outputMode` | String | `"detailed"` or `"mcp_summary"` | `"detailed"` |

***

### MCP Executive Vetting Summary Example (`OUTPUT`)

```json
{
  "title": "FMCSA / USDOT Carrier Safety & Vetting Executive Summary",
  "overall_vetting_status": "CAUTION_FLAGGED",
  "criteria": {
    "state": "TX",
    "status_code": "A"
  },
  "metrics": {
    "total_carriers_analyzed": 10,
    "verdict_breakdown": {
      "PASS": 7,
      "CAUTION": 3,
      "HIGH_RISK": 0,
      "DO_NOT_USE": 0
    },
    "total_power_units": 84,
    "total_drivers": 92,
    "carriers_with_bipd_on_file": 6,
    "hazmat_authorized_carriers": 1
  },
  "flagged_carriers": []
}
```

# Actor input Schema

## `dotNumber` (type: `string`):

Official USDOT carrier number (digits only or with prefix, e.g. '22105').

## `mcNumber` (type: `string`):

Interstate Motor Carrier docket number (e.g. '202830' or 'MC-202830').

## `carrierName` (type: `string`):

Search by trucking company legal or DBA name (e.g. 'J B Hunt', 'Knight Transportation').

## `state` (type: `string`):

Two-letter US state abbreviation for the carrier's physical address (e.g. 'TX', 'CA', 'IL').

## `city` (type: `string`):

City of the carrier's physical address (uppercased automatically for USDOT matching).

## `statusCode` (type: `string`):

Filter by active carriers ('A'), inactive ('I'), or all ('ALL').

## `addedAfterDate` (type: `string`):

Find newly registered motor carriers added on or after this date (ideal for New Carrier Leads).

## `minPowerUnits` (type: `integer`):

Minimum number of power units (trucks/tractors) operated by the carrier.

## `hazmatOnly` (type: `boolean`):

Filter strictly for carriers authorized to transport hazardous materials.

## `includeAuthorityAndInsurance` (type: `boolean`):

Cross-reference FMCSA Licensing & Insurance datasets for active operating authority, BIPD limits, and insurer policies.

## `maxRecords` (type: `integer`):

Maximum number of carrier profiles to return (1–200).

## `outputMode` (type: `string`):

Choose between detailed carrier dataset records or a compact MCP vetting summary.

## Actor input object example

```json
{
  "state": "TX",
  "statusCode": "A",
  "minPowerUnits": 0,
  "hazmatOnly": false,
  "includeAuthorityAndInsurance": true,
  "maxRecords": 10,
  "outputMode": "detailed"
}
```

# Actor output Schema

## `carriers` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "state": "TX",
    "maxRecords": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("ferraz_michel/fmcsa-carrier-safety-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "state": "TX",
    "maxRecords": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("ferraz_michel/fmcsa-carrier-safety-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "state": "TX",
  "maxRecords": 10
}' |
apify call ferraz_michel/fmcsa-carrier-safety-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ferraz_michel/fmcsa-carrier-safety-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dXTzf5zWuI3i1aNvd/builds/roZunCym13D4LEVZE/openapi.json
