1. Conduid
  2. Communication
  3. io.github.cyanheads/nhtsa-vehicle-safety-mcp-server
MCP server · Communication

io.github.cyanheads/nhtsa-vehicle-safety-mcp-server

Vehicle safety data from NHTSA — recalls, complaints, crash ratings, investigations, VIN decoding.

Unclaimed comms
37Low

Scored 5 months ago · breakdown

About io.github.cyanheads/nhtsa-vehicle-safety-mcp-server

io.github.cyanheads/nhtsa-vehicle-safety-mcp-server is an MCP server in the Communication category: vehicle safety data from NHTSA — recalls, complaints, crash ratings, investigations, VIN decoding. It has been installed 0 times through Conduid.

Install

Claude Code
claude mcp add io-github-cyanheads-nhtsa-vehicle-safety-mcp-server -- npx -y @cyanheads/nhtsa-vehicle-safety-mcp-server
npx
npx -y @cyanheads/nhtsa-vehicle-safety-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about io.github.cyanheads/nhtsa-vehicle-safety-mcp-server

Powered by Claude · Grounded in docs

I know everything about io.github.cyanheads/nhtsa-vehicle-safety-mcp-server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • ·Scoped permissionsNot checked yet.

README

npm Version Framework MCP SDK

License TypeScript Bun

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


Tools

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) with cached index.
nhtsa_lookup_vehicles Look up valid makes, models, vehicle types, and manufacturer details from VPIC.

nhtsa_get_vehicle_safety

Composite safety profile — the default tool when asked about vehicle safety, reliability, or purchase decisions.

  • Combines NCAP crash test ratings, recall history, and complaint summary in a single response
  • Frontal crash, side crash, and rollover ratings per vehicle variant
  • Complaint breakdown by component with crash, fire, injury, and death counts
  • Returns sectionStatus plus warnings so upstream outages are not mistaken for a clean record

nhtsa_search_recalls

Search recall campaigns by vehicle or campaign number.

  • Look up by make/model/year or by specific NHTSA campaign number
  • Optional date range filtering (ISO 8601)
  • Includes do-not-drive advisories, park-outside warnings, and OTA update availability

nhtsa_decode_vin

Decode Vehicle Identification Numbers for manufacturing and safety details.

  • Single VIN or batch decode up to 50 VINs
  • Partial VINs accepted — use * for unknown positions
  • Preserves sparse VPIC fields instead of filling missing data with empty placeholders

nhtsa_search_investigations

Search NHTSA defect investigations.

  • Investigation types: Preliminary Evaluations, Engineering Analyses, Defect Petitions, Recall Queries
  • Free-text search across subjects and descriptions
  • First query loads the full investigation index (~10s); subsequent queries use a cached index (1h TTL)

nhtsa_search_complaints

Search consumer safety complaints filed with NHTSA.

  • Component breakdown with crash, fire, injury, and death counts
  • Optional component filter (e.g., "ENGINE", "AIR BAGS")
  • Returns up to 50 most recent complaints sorted by filing date

nhtsa_get_safety_ratings

NCAP crash test ratings and ADAS feature data.

  • Frontal crash, side crash (barrier + pole), and rollover ratings
  • ADAS features: ESC, forward collision warning, lane departure warning
  • Accepts either make/model/year or a follow-up vehicleId from earlier NCAP results
  • Counts of complaints, recalls, and investigations on file

nhtsa_lookup_vehicles

Reference lookups against NHTSA's VPIC database.

  • Four operations: makes, models, vehicle_types, manufacturer
  • makes supports limit and offset pagination for the full VPIC catalog
  • Use to resolve ambiguous vehicle names or verify correct spelling
  • Models can be filtered by year; manufacturers support partial match

Features

Built on @cyanheads/mcp-ts-core:

  • Declarative tool definitions — single file per tool, framework handles registration and validation
  • Unified error handling across all tools
  • Pluggable auth (none, jwt, oauth)
  • Swappable storage backends: in-memory, filesystem, Supabase, Cloudflare KV/R2/D1
  • Structured logging with optional OpenTelemetry tracing
  • Runs locally (stdio/HTTP) from the same codebase

NHTSA-specific:

  • Type-safe client wrapping five NHTSA public APIs with retry logic and sparse-field normalization
  • Investigation index caching (1h TTL) for fast repeated queries
  • No API key required — all NHTSA APIs are public

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": {
      "type": "streamable-http",
      "url": "https://nhtsa.caseyjhand.com/mcp"
    }
  }
}

Self-Hosted / Local

Add to your MCP client config (e.g., claude_desktop_config.json):

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

Or with npx (no Bun required):

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

Or with Docker:

{
  "mcpServers": {
    "nhtsa-vehicle-safety": {
      "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

Configuration

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

Data sources

All data comes from NHTSA's public APIs:

  • Recalls APIapi.nhtsa.gov/recalls
  • Complaints APIapi.nhtsa.gov/complaints
  • Safety Ratings APIapi.nhtsa.gov/SafetyRatings
  • Investigations APIapi.nhtsa.gov/investigations
  • VPIC APIvpic.nhtsa.dot.gov/api/vehicles

Running the server

Local development

bun run dev:stdio     # Dev mode with hot reload (stdio)
bun run dev:http      # Dev mode with hot reload (HTTP)
  • Run checks and tests:
    bun run devcheck  # Lints, formats, type-checks, and more
    bun run test      # Runs the test suite
    

Production

bun run build
bun run start:stdio   # Production stdio
bun run start:http    # Production HTTP

Docker

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

Project structure

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.

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 logging
  • One tool per file, nhtsa_ prefix for all tool names

Contributing

Issues and pull requests are welcome. Run checks before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

README mirrored from the source repository 5 months ago. The original is authoritative.

Questions

About io.github.cyanheads/nhtsa-vehicle-safety-mcp-server

How do I install io.github.cyanheads/nhtsa-vehicle-safety-mcp-server?

Run claude mcp add io-github-cyanheads-nhtsa-vehicle-safety-mcp-server -- npx -y @cyanheads/nhtsa-vehicle-safety-mcp-server, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is io.github.cyanheads/nhtsa-vehicle-safety-mcp-server safe to use with an AI agent?

Its trust score is 37 out of 100 (low). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.cyanheads/nhtsa-vehicle-safety-mcp-server still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.