[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [NHTSA VIN decoder](https://spiral.ai/integrations/vscode/nhtsa-vin-decoder)

# How to Use NHTSA VIN decoder in VS Code

Returns decoded vehicle identity, including year, make, and model, using manufacturer-submitted VIN information. Use it to identify a vehicle before researching its model's safety records.

|  |  |
| --- | --- |
| Model | NHTSA VIN decoder |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with NHTSA VIN decoder in VS Code

- Use NHTSA VIN decoder with the published documentation example 1HGCM82633A004352 and add the decoded year, make, and model as a development fixture.
- Use NHTSA VIN decoder to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NHTSA VIN decoder and tell me what changed since last week.
- Check NHTSA VIN decoder and summarize what you find in three bullet points.
- Pull the newest data from NHTSA VIN decoder and give me the result as a table.

## How to set up NHTSA VIN decoder in VS Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run NHTSA VIN decoder**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "nhtsa-gov/recalls/decode_vin",
    "input": {
      "vin": "<vin>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds NHTSA VIN decoder on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/vscode

## NHTSA VIN decoder tools and prices

- [NHTSA · Decode vin](https://spiral.ai/tools/alexandria/nhtsa-gov/recalls/decode_vin) (Alexandria): $0.00873 per call.

## What can you do with NHTSA VIN decoder in VS Code?

Build a vehicle safety reference with NHTSA records and an inspection-station directory. Give vehicle configurations, recall campaigns, complaint reports, crash ratings, and inspection organizations their own views.

### Prepare a used-vehicle safety brief

Identify a publicly listed vehicle, resolve its NHTSA configuration, and assemble recalls, campaign documents, crash ratings, and complaint examples. Turn the findings into specific questions about recall repairs and reported problems for the seller.

### Review commercial fleet safety records

Match fleet vehicles to NHTSA records, organize recall campaigns and supporting notices, and review complaint examples alongside crash ratings. Give maintenance managers a model-level review list for checking against their repair records.

### Research a vehicle safety article

Resolve the exact models and configurations under discussion, examine individual complaints, and check campaign documents and crash ratings. Keep consumer allegations, manufacturer recall actions, and controlled crash-test results clearly attributed.

### Build a vehicle safety reference

Create searchable vehicle pages with source-matched model names, VIN identification, configuration choices, recall summaries, campaign documents, complaint excerpts, and crash ratings. Link summaries to the underlying campaign or complaint record.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## NHTSA VIN decoder in other agents

- [Amp](https://spiral.ai/integrations/amp/nhtsa-vin-decoder)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/nhtsa-vin-decoder)
- [Claude](https://spiral.ai/integrations/claude-desktop/nhtsa-vin-decoder)
- [Claude Code](https://spiral.ai/integrations/claude-code/nhtsa-vin-decoder)
- [Cline](https://spiral.ai/integrations/cline/nhtsa-vin-decoder)
- [Codex](https://spiral.ai/integrations/codex/nhtsa-vin-decoder)
- [Cursor](https://spiral.ai/integrations/cursor/nhtsa-vin-decoder)
- [Devin](https://spiral.ai/integrations/devin/nhtsa-vin-decoder)
- [dots](https://spiral.ai/integrations/dots/nhtsa-vin-decoder)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/nhtsa-vin-decoder)
- [Gemini](https://spiral.ai/integrations/gemini/nhtsa-vin-decoder)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/nhtsa-vin-decoder)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/nhtsa-vin-decoder)
- [goose](https://spiral.ai/integrations/goose/nhtsa-vin-decoder)
- [Grok](https://spiral.ai/integrations/grok/nhtsa-vin-decoder)
- [Grok Build](https://spiral.ai/integrations/grok-build/nhtsa-vin-decoder)
- [Hermes](https://spiral.ai/integrations/hermes/nhtsa-vin-decoder)
- [Instinct](https://spiral.ai/integrations/instinct/nhtsa-vin-decoder)
- [Manus](https://spiral.ai/integrations/manus/nhtsa-vin-decoder)
- [Muse](https://spiral.ai/integrations/muse/nhtsa-vin-decoder)
- [Muse Code](https://spiral.ai/integrations/muse-code/nhtsa-vin-decoder)
- [n8n](https://spiral.ai/integrations/n8n/nhtsa-vin-decoder)
- [Notion](https://spiral.ai/integrations/notion/nhtsa-vin-decoder)
- [OpenClaw](https://spiral.ai/integrations/openclaw/nhtsa-vin-decoder)
- [opencode](https://spiral.ai/integrations/opencode/nhtsa-vin-decoder)
- [Perplexity](https://spiral.ai/integrations/perplexity/nhtsa-vin-decoder)
- [Raycast](https://spiral.ai/integrations/raycast/nhtsa-vin-decoder)
- [Windsurf](https://spiral.ai/integrations/windsurf/nhtsa-vin-decoder)
- [Zapier](https://spiral.ai/integrations/zapier/nhtsa-vin-decoder)

## More VS Code guides

- [NASA fireball events](https://spiral.ai/integrations/vscode/nasa-fireball-events)
- [NHTSA WMI decoder](https://spiral.ai/integrations/vscode/nhtsa-wmi-decoder)
- [NASA Sentry asteroid risk list](https://spiral.ai/integrations/vscode/nasa-sentry-asteroid-risk-list)
- [NHTSA batch VIN decoder](https://spiral.ai/integrations/vscode/nhtsa-batch-vin-decoder)
- [NASA Sentry asteroid impact details](https://spiral.ai/integrations/vscode/nasa-sentry-asteroid-impact-details)
- [NHTSA car seat inspection stations](https://spiral.ai/integrations/vscode/nhtsa-car-seat-inspection-stations)

## Questions about NHTSA VIN decoder in VS Code

**Can VS Code use NHTSA VIN decoder?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run NHTSA VIN decoder like any built-in tool.

**How much does NHTSA VIN decoder cost in VS Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

**Do I need an Alexandria account to use NHTSA VIN decoder in VS Code?**

No. Spiral runs NHTSA VIN decoder on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NHTSA VIN decoder in VS Code?**

About two minutes: add the hosted server, then sign in.

**Does VS Code wait while NHTSA VIN decoder runs?**

NHTSA VIN decoder runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**Does NHTSA's model-level recall data show whether a particular car was repaired?**

No. NHTSA separates general year, make, and model results from its VIN search, which identifies whether a specific vehicle needs a recall repair.

**How often does NHTSA publish new recall and complaint data?**

NHTSA lists daily publication for recalls and publishes newly received complaints in daily files. That schedule describes the source datasets, rather than a guaranteed delay for an individual record.

**Are public complaints confirmed defects?**

Complaints contain consumers' allegations about safety defects. NHTSA reviews those reports to decide whether further investigation or other action is warranted.

**Does a car seat inspection ZIP search include nearby ZIP codes?**

No. NHTSA documents an exact-ZIP search that excludes neighboring ZIP codes; its state search covers stations within the selected state.

**Can crash ratings be compared across all vehicles?**

Frontal and overall scores can only be compared within the same vehicle class and within 250 pounds. NHTSA permits comparisons of side-crash and rollover ratings across classes.

