Connects Claude to the NHTSA public APIs for vehicle safety research and consumer protection work. You get VIN decoding with partial wildcard support, recall campaign lookups with do-not-drive flags, crash test ratings from NCAP, consumer complaint search with component breakdowns, and defect investigation queries across ODI case types. The composite safety profile tool combines ratings, recalls, and complaint summaries in one shot, useful when evaluating used cars or answering customer questions. Investigation search caches the full ODI index on first query so follow-up searches run fast. Runs locally over stdio or points to the public hosted instance at nhtsa.caseyjhand.com. No API keys needed since NHTSA endpoints are open.
Public tool metadata for what this MCP can expose to an agent.
nhtsa_get_vehicle_safetyGet a comprehensive safety profile for a vehicle. Combines NCAP crash test ratings, recalls, and complaint summary into a single response. Use as the default when asked about vehicle safety, reliability, or purchase decisions.3 paramsGet a comprehensive safety profile for a vehicle. Combines NCAP crash test ratings, recalls, and complaint summary into a single response. Use as the default when asked about vehicle safety, reliability, or purchase decisions.
makestringmodelstringmodelYearnumbernhtsa_search_recallsSearch recall campaigns by vehicle or campaign number. Use for specific recall lookups, recall history for a vehicle, or looking up a known campaign number.5 paramsSearch recall campaigns by vehicle or campaign number. Use for specific recall lookups, recall history for a vehicle, or looking up a known campaign number.
makestringmodelstringdateRangeobjectmodelYearnumbercampaignNumberstringnhtsa_search_complaintsSearch consumer safety complaints filed with NHTSA for a specific vehicle. Returns a component breakdown over all matching complaints plus a paginated slice of the most recent complaints. Use for common problems, failure patterns, or owner-reported issues.6 paramsSearch consumer safety complaints filed with NHTSA for a specific vehicle. Returns a component breakdown over all matching complaints plus a paginated slice of the most recent complaints. Use for common problems, failure patterns, or owner-reported issues.
makestringlimitintegermodelstringoffsetintegercomponentstringmodelYearnumbernhtsa_get_safety_ratingsGet NCAP crash test ratings and ADAS feature availability for a vehicle. Use when the user specifically wants crash test stars, rollover risk, or wants to compare safety features across vehicles. NCAP data available from 1990+, best coverage for 2011+.4 paramsGet NCAP crash test ratings and ADAS feature availability for a vehicle. Use when the user specifically wants crash test stars, rollover risk, or wants to compare safety features across vehicles. NCAP data available from 1990+, best coverage for 2011+.
makestringmodelstringmodelYearnumbervehicleIdnumbernhtsa_decode_vinDecode a Vehicle Identification Number to extract make, model, year, body type, engine, safety equipment, and manufacturing details. Supports single VINs or batch decode (up to 50). Partial VINs accepted — use * for unknown positions.2 paramsDecode a Vehicle Identification Number to extract make, model, year, body type, engine, safety equipment, and manufacturing details. Supports single VINs or batch decode (up to 50). Partial VINs accepted — use * for unknown positions.
vinvaluemodelYearnumbernhtsa_search_investigationsSearch NHTSA defect investigations (Preliminary Evaluations, Engineering Analyses, Defect Petitions, Recall Queries). All filters are ANDed — each additional filter narrows results. The make, model, and query filters all search investigation subject/description text (there are...7 paramsSearch NHTSA defect investigations (Preliminary Evaluations, Engineering Analyses, Defect Petitions, Recall Queries). All filters are ANDed — each additional filter narrows results. The make, model, and query filters all search investigation subject/description text (there are...
makestringlimitnumbermodelstringquerystringoffsetnumberstatusstringinvestigationTypestringnhtsa_lookup_vehiclesLook up valid makes, models, and vehicle types in NHTSA's database. Use to resolve ambiguous vehicle names, find correct make/model spelling, or discover what models a manufacturer produces.6 paramsLook up valid makes, models, and vehicle types in NHTSA's database. Use to resolve ambiguous vehicle names, find correct make/model spelling, or discover what models a manufacturer produces.
makestringlimitintegeroffsetintegermodelYearnumberoperationstringmakes · models · vehicle_types · manufacturermanufacturerstringDecode VINs, search recalls, complaints, crash ratings, and investigations via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://nhtsa.caseyjhand.com/mcp
Seven tools for querying NHTSA vehicle safety data:
| Tool Name | Description |
|---|---|
nhtsa_get_vehicle_safety | Comprehensive safety profile combining crash test ratings, recalls, and complaint summary with per-section availability status. |
nhtsa_search_recalls | Search recall campaigns by vehicle or campaign number with optional date filtering. |
nhtsa_search_complaints | Consumer safety complaints with component breakdown and severity stats. |
nhtsa_get_safety_ratings | NCAP crash test ratings and ADAS feature availability. |
nhtsa_decode_vin | Decode VINs for make, model, year, engine, safety equipment (single or batch up to 50). |
nhtsa_search_investigations | Search NHTSA defect investigations (PE, EA, DP, RQ, AQ, and more) with cached index. |
nhtsa_lookup_vehicles | Look up valid makes, models, vehicle types, and manufacturer details from VPIC. |
nhtsa_get_vehicle_safetyComposite safety profile — the default tool when asked about vehicle safety, reliability, or purchase decisions.
sectionStatus plus warnings so upstream outages are not mistaken for a clean recordnhtsa_search_recallsSearch recall campaigns by vehicle or campaign number.
nhtsa_decode_vinDecode Vehicle Identification Numbers for manufacturing and safety details.
* for unknown positionsnhtsa_search_investigationsSearch NHTSA defect investigations.
nhtsa_search_complaintsSearch consumer safety complaints filed with NHTSA.
nhtsa_get_safety_ratingsNCAP crash test ratings and ADAS feature data.
vehicleId from earlier NCAP resultsnhtsa_lookup_vehiclesReference lookups against NHTSA's VPIC database.
makes, models, vehicle_types, manufacturermakes supports limit and offset pagination for the full VPIC catalogBuilt on @cyanheads/mcp-ts-core:
none, jwt, oauth)in-memory, filesystem, Supabase, Cloudflare KV/R2/D1NHTSA-specific:
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"
}
}
}
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
git clone https://github.com/cyanheads/nhtsa-vehicle-safety-mcp-server.git
cd nhtsa-vehicle-safety-mcp-server
bun install
No API keys required — all NHTSA APIs are public.
| Variable | Description | Default |
|---|---|---|
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_HOST | HTTP server host. | 127.0.0.1 |
MCP_HTTP_PORT | HTTP server port. | 3010 |
MCP_HTTP_ENDPOINT_PATH | HTTP endpoint path. | /mcp |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
All data comes from NHTSA's public APIs:
api.nhtsa.gov/recallsapi.nhtsa.gov/complaintsapi.nhtsa.gov/SafetyRatingsapi.nhtsa.gov/investigationsvpic.nhtsa.dot.gov/api/vehiclesbun run devcheck # Lints, formats, type-checks, and more
bun run test # Runs the test suite
bun run build
bun run start:stdio # Production stdio
bun run start:http # Production HTTP
docker build -t nhtsa-vehicle-safety-mcp-server .
docker run -p 3010:3010 nhtsa-vehicle-safety-mcp-server
| Directory | Purpose |
|---|---|
src/index.ts | Server entry point — createApp() registration. |
src/mcp-server/tools/definitions/ | Tool definitions (*.tool.ts). |
src/services/nhtsa/ | NHTSA API client with retry logic and field normalization. |
See CLAUDE.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for loggingnhtsa_ prefix for all tool namesIssues and pull requests are welcome. Run checks before submitting:
bun run devcheck
bun run test
Apache-2.0 — see LICENSE for details.
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_HTTP_HOSTdefault: 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault: 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault: /mcpThe endpoint path for the MCP server.
MCP_AUTH_MODEdefault: noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.
com.mcparmory/google-search
io.github.pipeworx-io/brave-search
marcopesani/mcp-server-serper
brave/brave-search-mcp-server
com.mcparmory/google-search-console
acamolese/google-search-console-mcp