Skip to content
MCP server
RegistryRemote

nhtsa-vehicle-safety-mcp-server MCP Server

Decode VINs, search recalls, complaints, crash ratings, and investigations.

nhtsa-vehicle-safety-mcp-server scores 33 (Limited), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 8 tools. Filed under Search. GitHub shows 3 stars. Package registries report about 418 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by cyanheadsApache-2.0TypeScript3 stars
Trust score
33Limited
Trust score 33 of 100, Limited

Limited trust

33 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 33 comes from

0 + 6 + 6 + 10 + 4 + 7 = 33. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity6 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 6 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cyanheads-nhtsa-vehicle-safety-mcp-server": {      "command": "npx",      "args": [        "-y",        "@cyanheads/nhtsa-vehicle-safety-mcp-server@0.12.0"      ],      "env": {        "NHTSA_CLAMP_LIMITS": "true",        "MCP_LOG_LEVEL": "info"      }    }  }}

Environment variables

NameRequiredNotes
NHTSA_CLAMP_LIMITSOptionalClamp an over-cap page size (limit) or VIN batch to its cap and disclose it with a notice. Set false to reject it instead.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_TRANSPORT_TYPEOptionalSelects the HTTP transport.
MCP_HTTP_HOSTOptionalThe hostname for the HTTP server.
MCP_HTTP_PORTOptionalThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHOptionalThe endpoint path for the MCP server.
MCP_AUTH_MODEOptionalAuthentication mode to use: 'none', 'jwt', or 'oauth'.
MCP_SESSION_MODEOptionalHTTP session posture: 'auto', 'stateful', or 'stateless'. Overrides the stateless mode the server declares in code.
NHTSA_CLAMP_LIMITSOptionalClamp an over-cap page size (limit) or VIN batch to its cap and disclose it with a notice. Set false to reject it instead.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Tools8Tool docs quality grade F

All capabilities

About

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework

Public Hosted Server: https://nhtsa.caseyjhand.com/mcp


Overview

Vehicle safety data from NHTSA: recalls, consumer complaints, NCAP crash ratings, defect investigations, and VIN decoding. Get a full safety picture for any make, model, and year in one call, or decode a VIN.

Tools

ToolDescription
nhtsa_get_vehicle_safetyComprehensive safety profile combining crash test ratings, recalls, complaint summary, and defect investigations with per-section availability status.
nhtsa_search_recallsSearch recall campaigns by campaign number, by vehicle, or across all campaigns by make, model, model year, and received date.
nhtsa_search_complaintsConsumer safety complaints with component breakdown and severity stats.
nhtsa_get_safety_ratingsNCAP crash test ratings and ADAS feature availability.
nhtsa_decode_vinDecode VINs for make, model, year, engine, safety equipment, and driver-assistance features (50 decoded per call).
nhtsa_search_investigationsSearch NHTSA defect investigations (PE, EA, DP, RQ, AQ, and more), newest opened first.
nhtsa_lookup_vehiclesLook up makes, models, vehicle types, and manufacturer details from VPIC, and the model names NHTSA's datasets file a vehicle under.

Capability reference

nhtsa_get_vehicle_safety tool

  • Combines NCAP crash test ratings, recall history, complaint summary, and the defect investigations covering the vehicle in a single response
  • Frontal crash, side crash, and rollover ratings per vehicle variant
  • Recall consequence text plus the do-not-drive, park-outside, and over-the-air-update advisories; summary, consequence, remedy, and notes are omitted when the record leaves them blank
  • Complaint breakdown by component with crash, fire, injury, and death counts
  • Investigations list every match newest-opened first, each with matchedModels (the model names that matched) and no summary; read one with nhtsa_search_investigations by nhtsaId
  • Returns sectionStatus (available/partial/unavailable per section; investigations are available/unavailable) plus warnings so a partial NHTSA outage or a still-loading investigation file is not mistaken for a clean record
  • When recalls or complaints come back empty, a notice points at nhtsa_lookup_vehicles with operation="dataset_models" and the tags to search each dataset under (recalls, products, ncap), because NHTSA can file one vehicle under different model names in each dataset

nhtsa_search_recalls tool

  • Three modes: campaignNumber; make + model + modelYear together; or a broad search with any other combination of make, model, modelYear, and dateRange. campaignNumber is mutually exclusive with the vehicle fields
  • Campaign lookups return every make/model the campaign covers, plus the ODI investigation that preceded it; a 6-character number (e.g., 00V419) returns every campaign it covers
  • Broad search returns campaigns newest received date first with an exact totalCount, up to 50 per page (default 20) with limit and offset, and a larger limit is lowered to 50 with a notice; both are rejected with the other two modes. A campaign matches when one of its vehicle records carries every vehicle filter, compared against whole make and model names, ignoring case
  • Broad rows leave out summary, consequence, remedy, and notes unless includeSummary: true (pair with a small limit); campaign and vehicle lookups always return them and accept includeSummary without effect. A broad page whose rows lost text carries a notice naming a campaignNumber lookup and includeSummary
  • NHTSA may file a vehicle's recalls under several model names: list them with nhtsa_lookup_vehicles operation="dataset_models" and search under the names tagged recalls. A broad search's received date can fall one day before the date the other modes report for the same campaign
  • Optional inclusive dateRange bounds (after/before, calendar-valid YYYY-MM-DD) apply in every mode; blank bounds are unset
  • Includes do-not-drive advisories, park-outside warnings, and OTA update availability (never set by a broad search), and NHTSA's notes on the campaign

nhtsa_search_complaints tool

  • Component breakdown covers every matching complaint regardless of pagination; up to 50 complaint narratives per page (default 20), offset pagination, sorted by filing date descending. A larger limit is lowered to 50 with a notice naming the next offset (see NHTSA_CLAMP_LIMITS)
  • Optional component filter matches case-insensitively within each component name a complaint lists (e.g., "ENGINE", "AIR BAGS"); component names can themselves contain ", " (e.g., "SERVICE BRAKES, HYDRAULIC")
  • Every component line includes crash, fire, injury, and death totals, including zeros; individual complaints preserve fields NHTSA actually reported
  • An incident date NHTSA reported that the complaint's own filing date or model year rules out is disclosed as unreliableIncidentDate rather than served as the incident date

nhtsa_get_safety_ratings tool

  • Accepts either make + model + modelYear, or a follow-up vehicleId from an earlier result; combining the modes is rejected
  • Frontal crash, side crash (barrier + pole), and rollover ratings, plus ESC/forward-collision/lane-departure ADAS availability
  • Per-record complaint, recall, and investigation counts are variant-scoped — not vehicle-level totals
  • NCAP coverage starts at 1990, most complete for 2011+ model years

nhtsa_decode_vin tool

  • One VIN, or several in an array or in one string separated by spaces, semicolons, or commas; partial VINs accepted using * for unknown positions, each as its own entry
  • A call decodes up to 50 VINs and accepts up to 500; the rest come back in deferredVins to pass back as vin. VIN,YYYY gives one VIN its own model year; optional modelYear covers the others
  • A blank entry, a character other than a letter, digit, or *, or a VIN over 17 characters is rejected before decoding (empty_vin_list, invalid_vin)
  • Safety equipment includes VPIC's driver-assistance features (automatic emergency braking, lane keeping, blind spot warning, backup camera, adaptive cruise control, and others); Optional means the configuration offers the feature, not that this vehicle has it
  • Preserves sparse VPIC fields instead of filling missing data with placeholders; every result carries VPIC's own errorCode/errorText decode-quality signal, including the clean "0" case

nhtsa_search_investigations tool

  • Investigation types: Preliminary Evaluations (PE), Engineering Analyses (EA), Defect Petitions (DP), Recall Queries (RQ), Audit Queries (AQ), and additional ODI codes (SQ, EQ, RP, and others). investigationType accepts a code or a type name matched whole, ignoring case (Preliminary Evaluation); an unrecognized value returns no rows with a notice listing the accepted codes and names
  • Free-text search across investigation IDs, subjects, and summaries, plus structured make, model, modelYear, and component filters — all ANDed. make, model, and modelYear must all match the same vehicle association; an investigation with no model year never matches a modelYear
  • Results are ordered newest-opened first. Rows list every linked manufacturers and recallCampaigns entry
  • Search rows omit summary; set includeSummary: true to include it, or fetch one record with nhtsaId, which always returns it
  • Inclusive openDateRange and closeDateRange bounds (after/before, calendar-valid YYYY-MM-DD) filter before counting and pagination; active bounds exclude records without the corresponding usable date
  • nhtsaId fetches one investigation by its exact ID, mutually exclusive with the other filters — the reverse of the recall link, closing the campaign-to-investigation round trip
  • Sourced from NHTSA's ODI bulk file (FLAT_INV.zip), loaded on first use and cached for 24 hours
  • Up to 50 investigations per page (default 20), offset pagination; a larger limit is lowered to 50 with a notice

nhtsa_lookup_vehicles tool

  • Five operations: makes, models, vehicle_types, manufacturer, dataset_models — makes (through make), models, vehicle_types, and manufacturer match partial names
  • dataset_models (requires make and modelYear) lists the model names NHTSA's complaint, NCAP, VPIC, and recall lists carry, each tagged listedBy products, ncap, vpic, or recalls. It takes the full make name (e.g., "Chevrolet"). Use it when a recall, complaint, or rating search comes back empty, then search under each name: recalls under the names tagged recalls, complaints under products, ratings under ncap
  • dataset_models loads the recall list from the recall bulk files within a 30 s wait; while they are still loading or if they failed, unavailableLists is ["recalls"] with a notice, and the other lists answer
  • models can be filtered by year; models and vehicle_types both require make
  • Each operation rejects inactive filters: makes and vehicle_types accept make, models and dataset_models accept make/modelYear, and manufacturer accepts manufacturer. Optional blank strings are unset; operation-required make/manufacturer names must be nonblank
  • Up to 200 results per page (default 100), offset pagination; a larger limit is lowered to 200 with a notice
  • manufacturer lookups stop at a 500-record ceiling and disclose truncated when more may exist — VPIC publishes no match total

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

NHTSA-specific:

  • Type-safe client wrapping four NHTSA JSON APIs with retry logic and sparse-field normalization, plus a streaming parser for NHTSA's investigation and recall bulk files
  • Investigation and recall indexes cached for 24 hours; the bulk files load one at a time, and each load (waiting its turn, downloading, and parsing; both recall files count as one load) must finish within 120 s
  • Published nhtsa-vehicle-safety-guide skill (skill://nhtsa-vehicle-safety-guide/SKILL.md) with the identifier chains and gates for merging results across model names, make versus manufacturer, model year versus received date, and what an empty or Not Rated result proves
  • No API key required — all NHTSA APIs are public

Agent-friendly output:

  • Provenance: every tool echoes effectiveQuery in its enrichment block, so callers can verify exactly what was searched
  • Graceful partial failure: nhtsa_get_vehicle_safety returns sectionStatus per section plus warnings, so a partial NHTSA outage isn't mistaken for a clean safety record
  • Discriminated outputs: unreliableIncidentDate (complaints), VIN decode errorCode/errorText, and manufacturer-lookup truncated disclose data-quality limits rather than silently omitting or fabricating values

Getting started

Public Hosted Instance

A public instance is available at https://nhtsa.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:

{
  "mcpServers": {
    "nhtsa-vehicle-safety-mcp-server": {
      "type": "streamable-http",
      "url": "https://nhtsa.caseyjhand.com/mcp"
    }
  }
}

Self-Hosted / Local

Add the following to your MCP client configuration file:

{
  "mcpServers": {
    "nhtsa-vehicle-safety-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/nhtsa-vehicle-safety-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with npx (no Bun required):

{
  "mcpServers": {
    "nhtsa-vehicle-safety-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cyanheads/nhtsa-vehicle-safety-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with Docker:

{
  "mcpServers": {
    "nhtsa-vehicle-safety-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/nhtsa-vehicle-safety-mcp-server:latest"]
    }
  }
}

For Streamable HTTP, set the transport and start the server:

MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/nhtsa-vehicle-safety-mcp-server.git
  1. Navigate into the directory:
cd nhtsa-vehicle-safety-mcp-server
  1. Install dependencies:
bun install
  1. Configure environment (optional):
cp .env.example .env
# edit .env to override transport, auth, or storage defaults — no API key required

Configuration

No API keys required — all NHTSA APIs are public.

VariableDescriptionDefault
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_HOSTHTTP server host.127.0.0.1
MCP_HTTP_PORTHTTP server port.3010
MCP_HTTP_ENDPOINT_PATHHTTP endpoint path./mcp
MCP_AUTH_MODEAuth mode: none, jwt, or oauth.none
MCP_SESSION_MODEHTTP session posture: auto, stateful, or stateless. The server declares stateless in code — it keeps no per-session state — and this variable overrides that.stateless
NHTSA_CLAMP_LIMITSLower an over-maximum limit to its maximum, and decode the first 50 VINs of a larger nhtsa_decode_vin batch with the rest returned in deferredVins, disclosing either in a notice. false rejects the request instead (limit_too_large, batch_too_large). An invalid value fails startup.true
MCP_LOG_LEVELLog level (RFC 5424).info
LOG_TOOL_FAILURE_PAYLOADSLog each failed tool call's arguments and result, redacted by key name and capped at LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES (default 16384). A secret inside a free-form value is not redacted.false
OTEL_ENABLEDEnable OpenTelemetry instrumentation (spans, metrics, completion logs).false

See .env.example for the full list of optional overrides.

Running the server

Local development

  • Build and run:

    # One-time build
    bun run rebuild
    
    # Run the built server
    bun run start:stdio
    # or
    bun run start:http
    
  • Run checks and tests:

    bun run devcheck   # Lint, format, typecheck, security
    bun run test       # Vitest test suite
    bun run lint:mcp   # Validate MCP definitions against spec
    

Docker

docker build -t nhtsa-vehicle-safety-mcp-server .
docker run --rm -p 3010:3010 nhtsa-vehicle-safety-mcp-server

The Dockerfile defaults to HTTP transport and logs to /var/log/nhtsa-vehicle-safety-mcp-server; it restates the stateless session mode the server already declares. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

DirectoryPurpose
src/index.tscreateApp() entry point — registers tools and inits the NHTSA service.
src/config/Server configuration parsed from the environment (NHTSA_CLAMP_LIMITS).
src/mcp-server/tools/definitions/Tool definitions (*.tool.ts).
src/mcp-server/tools/request-cap.tsPage-size and VIN-batch caps shared by the tools.
src/services/nhtsa/NHTSA API client, bulk-file loader, investigation and recall indexes, and field normalization.
skills/Published nhtsa-vehicle-safety-guide skill, served over MCP and shipped in the npm package and Docker image.
tests/Unit and integration tests mirroring src/.

Development guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging
  • One tool per file, nhtsa_ prefix for every tool name, registered in createApp()
  • Validate raw NHTSA responses → normalize to domain types → return the output schema; never fabricate a field NHTSA didn't provide

Data sources

All data comes from NHTSA's public APIs and bulk files:

  • Recalls API — api.nhtsa.gov/recalls
  • Complaints API — api.nhtsa.gov/complaints; dataset_models also reads its model-name list at api.nhtsa.gov/products/vehicle/models
  • Safety Ratings API — api.nhtsa.gov/SafetyRatings
  • Investigations bulk file — static.nhtsa.gov/odi/ffdd/inv/FLAT_INV.zip, used by nhtsa_search_investigations and nhtsa_get_vehicle_safety
  • Recall bulk files — static.nhtsa.gov/odi/ffdd/rcl/FLAT_RCL_POST_2010.zip and FLAT_RCL_PRE_2010.zip, used by broad nhtsa_search_recalls searches and the recalls list of dataset_models
  • VPIC API — vpic.nhtsa.dot.gov/api/vehicles

Contributing

Issues are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

Frequently asked questions

What is nhtsa-vehicle-safety-mcp-server MCP Server?

Decode VINs, search recalls, complaints, crash ratings, and investigations.

How do I install nhtsa-vehicle-safety-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. nhtsa-vehicle-safety-mcp-server MCP Server runs locally from the npm package @cyanheads/nhtsa-vehicle-safety-mcp-server with the command npx -y @cyanheads/nhtsa-vehicle-safety-mcp-server@0.12.0.

Is nhtsa-vehicle-safety-mcp-server MCP Server free and open source?

Yes. nhtsa-vehicle-safety-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does nhtsa-vehicle-safety-mcp-server MCP Server support remote (HTTP) connections?

Yes. nhtsa-vehicle-safety-mcp-server MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

What tools does nhtsa-vehicle-safety-mcp-server MCP Server provide?

nhtsa-vehicle-safety-mcp-server MCP Server provides 8 tools, including ctx.log, nhtsa_decode_vin, nhtsa_get_safety_ratings, and nhtsa_get_vehicle_safety. See the full tool list for descriptions and parameters.

How is nhtsa-vehicle-safety-mcp-server MCP Server's trust score calculated?

nhtsa-vehicle-safety-mcp-server MCP Server scores 33 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server