vin-decode-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vin-decode-mcp Decode VIN 1HGCM82633A004352"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vin-decode-mcp
Decode VINs and query vehicle data from a curated NHTSA vPIC database — powered by the Model Context Protocol.
A standalone, offline-capable MCP server for LLMs to decode Vehicle Identification Numbers (VINs) and look up makes, models, and vehicle specifications using data from NHTSA's vPIC.
pip install vin-decode-mcp
vin-decode-mcp # Start the MCP serverWhy?
Offline: Works without internet access. The curated SQLite database (~4.5 MB) is self-contained.
No rate limits: Unlike calling the vPIC API directly, local queries are unlimited.
Fast: Pattern matching against the SQLite database takes microseconds.
LLM-native: Tools with rich docstrings, schema resources, and structured JSON output.
Open data: NHTSA vPIC is US government open data — free, no API key required.
Related MCP server: Vincario MCP Server
Data Coverage
US-market vehicles, model year 1981 and forward
536 makes, 9,284 models, 88,267 VIN patterns (2026-08 vintage)
Passenger Cars, Trucks, MPVs, Motorcycles, Off-Road Vehicles
Excludes: Buses, Trailers, Low-Speed Vehicles, Incomplete Vehicles
Specifications only — this database does not include title, accident, odometer, or theft history (those require NMVTIS/commercial data sources).
Quick Start
Installation
pip install vin-decode-mcpOr from source:
git clone https://github.com/<org>/vin-decode-mcp.git
cd vin-decode-mcp
pip install -e .Running
# Default: stdio transport (for Claude Desktop, Cursor, etc.)
vin-decode-mcp
# HTTP transport
vin-decode-mcp --transport http --port 8765Using with Claude Desktop
Create a dedicated venv so the binary lands where you can reference it:
python3 -m venv ~/.local/venvs/vin-decode
source ~/.local/venvs/vin-decode/bin/activate
pip install vin-decode-mcp
deactivateAdd to ~/.config/claude-desktop/config.json (or ~/Library/Application Support/claude-desktop/config.json on macOS):
{
"mcpServers": {
"vin-decode": {
"command": "~/.local/venvs/vin-decode/bin/vin-decode-mcp"
}
}
}Replace the path with wherever you put the venv. Restart Claude Desktop. The model can now use VIN decoding tools in conversations.
Note: Claude Desktop spawns processes with a minimal
$PATHthat doesn't include conda environments or virtualenvs, so always use the absolute path to the binary — just putting"vin-decode-mcp"won't work.
Available Tools
Tool | Description |
| Decode a VIN → make, model, year, vehicle type |
| Match a partial VIN with |
| List all vehicle makes |
| List models for a make |
| Get production year range |
| Decode a WMI → manufacturer info |
| List available vehicle types |
| List vehicle types for a make |
Examples
>>> decode_vin("1HGCM82633A004352")
{
"vin": "1HGCM82633A004352",
"make": "Honda",
"model": "Accord",
"year": 2003,
"vehicle_type": "Passenger Car",
"wmi": "1HG",
"confidence": "full"
}
>>> get_model_years("Porsche", "911")
{"year_from": 1981, "year_to": null}
>>> decode_partial_vin("5UXWX7C5*BA")
[{"make": "BMW", "model": "X3", "year": 2011,
"vehicle_type": "Passenger Car", "confidence": "partial_match"}]Database
Download
The compiled database is hosted on Hugging Face:
Dataset: https://huggingface.co/datasets/joakes90/vpic-database Direct download: https://huggingface.co/datasets/joakes90/vpic-database/resolve/main/curated_vpic.db
Custom Database Path
# Set via environment variable
export VIN_MCP_DB_PATH=/path/to/curated_vpic.db
vin-decode-mcp
# Or via CLI flag
vin-decode-mcp --db-path /path/to/curated_vpic.dbRebuilding
The database is rebuilt from NHTSA's standalone PostgreSQL databases approximately every 6-12 months:
# Requires PostgreSQL installed (pg_restore, psql)
bash tools/rebuild.sh
# Or step by step:
# 1. Download NHTSA data: https://vpic.nhtsa.dot.gov/Downloads/
# 2. Convert to SQLite
python3 tools/convert_to_sqlite.py --input dump.sql --output tools/out/vpic_lite.db
# 3. Build curated database
python3 tools/build_db.py --source tools/out/vpic_lite.db --output tools/out/curated_vpic.dbSee docs/hf-setup.md for Hugging Face setup instructions.
Data Source & Attribution
Vehicle data sourced from NHTSA's vPIC — the National Highway Traffic Safety Administration's Vehicle Product Information Catalog and Vehicle Listing. NHTSA is a United States government agency.
Data license: US Government work (public domain)
API: No key or registration required
Refresh frequency: ~6-12 months
Report errors: Contact the NHTSA Manufacturer Helpdesk at manufacturerinfo@dot.gov or 1-888-399-3277
Architecture
User / LLM Agent
│
▼ MCP (stdio / HTTP)
┌──────────────────┐
│ vin-decode-mcp │ pip install vin-decode-mcp
│ (FastMCP server)│ env: VIN_MCP_DB_PATH=/path/to/curated_vpic.db
└────────┬─────────┘
│ sqlite3 (mode=ro)
▼
┌──────────────────────┐
│ curated_vpic.db │ ~4.5 MB, curated
│ (Hugging Face) │ makes + models + WMI + VIN patterns
└──────────────────────┘
▲
│ rebuilds from
┌──────────────────┐
│ NHTSA vPIC PG DB │ 69 MB, official
│ (NHTSA website) │ refreshed 2x/year
└──────────────────┘Project Structure
vin-decode-mcp/
├── src/vin_decode_mcp/
│ ├── __init__.py # Package init
│ ├── server.py # FastMCP server with all tools
│ ├── database.py # SQLite layer + VIN decoder
│ └── cli.py # CLI entry point
├── tools/
│ ├── build_db.py # Pipeline orchestrator
│ ├── convert_to_sqlite.py # PG → SQLite converter (COPY text format)
│ ├── vpic_pare_down.py # Curated pare-down + VIN decode tables
│ ├── rebuild.sh # Full rebuild script
│ ├── curation.json # Make/model curation rules
│ ├── overlay.json # Grey-import classic additions
│ └── README.md # Rebuild instructions
├── tests/
│ ├── conftest.py # Test fixtures
│ ├── test_decode.py # VIN decode canary + regression tests
│ ├── test_server.py # Bulk lookup tests
│ ├── test_convert.py # PostgreSQL COPY decoding tests
│ ├── test_real_db.py # Smoke tests against the curated DB
│ └── fixtures/
│ ├── build_test_db.py # Test database builder
│ └── test_vpic.db # Minimal test database
├── .github/workflows/
│ ├── ci.yml # CI: test + lint
│ └── rebuild-db.yml # Scheduled DB rebuild
├── docs/
│ └── hf-setup.md # Hugging Face setup guide
├── pyproject.toml
├── LICENSE
└── README.mdDevelopment
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
python -m pytest tests/ -v
# Lint
python -m ruff check src/ tests/
# Format
python -m ruff format src/ tests/Comparison with Other Solutions
vin-decode-mcp | NHTSA vPIC API | vin-mcp (NLMA) | |
Transport | Local SQLite | HTTP REST | HTTP REST |
Offline | ✅ | ❌ | ❌ |
Rate limited | No | Yes | Yes |
Data size | ~4.5 MB | N/A | N/A |
VIN fields | Make + Model + Year | ~130 fields | ~130 fields |
Makes/Models | ✅ 536/9,284 | ✅ Full catalog | ✅ Full catalog |
Install |
| None |
|
License
MIT License — Code is MIT. Data is US Government public domain.
See LICENSE for details.
Contributing
Contributions welcome! Please:
Fork and create a feature branch
Add tests for new functionality
Ensure CI passes
Submit a pull request
For major changes, open an issue first to discuss the approach.
Available Tools
8 toolsdecode_partial_vinDecode Partial VinA
Decode a partial VIN pattern with wildcards.
Supports * as a wildcard for exactly one character (matching the vPIC pattern format). Useful for matching a VIN you don't have the full 17 characters of, or for pattern-based lookups.
Inputs: pattern (required), limit. Returns: result
decode_vinDecode VinA
Decode a VIN to make, model, year, and vehicle type.
Returns the decoded make, model, model year, and vehicle type for a 17-character VIN. Uses the NHTSA vPIC pattern database for make/model resolution. Model year is computed from VIN position 10 unless you provide model_year explicitly.
Partial VINs (shorter than 17 characters) may still decode if the WMI (positions 1-3) matches a known manufacturer.
Inputs: vin (required), model_year. Returns: object
get_all_makesGet All MakesA
List all vehicle makes registered in vPIC.
Returns every make currently in the curated database. This includes makes from all vehicle types (cars, trucks, motorcycles, etc.) that passed the curation filter.
Returns: List of dicts with keys: id, name. Sorted alphabetically by name.
Inputs: no named parameters. Returns: result
get_make_vehicle_typesGet Make Vehicle TypesA
List the vehicle types a given make produces.
Useful for understanding what categories a manufacturer covers (e.g. BMW produces "Motorcycle", "Passenger Car", "Truck").
Inputs: make (required). Returns: result
get_models_for_makeGet Models For MakeA
List all models for a given make.
Optionally filter by vehicle type to narrow results (e.g. get only car models or only motorcycle models for a make that produces both).
Inputs: make (required), vehicle_type. Returns: result
get_model_yearsGet Model YearsA
Get the model year range for a make/model pair.
Inputs: make (required), model (required). Returns: result
get_vehicle_typesGet Vehicle TypesA
List all available vehicle types.
Returns the vehicle types in the curated dataset (e.g. Passenger Car, Motorcycle, Truck, MPV, Off-Road Vehicle).
Returns: List of dicts with keys: id, name.
Inputs: no named parameters. Returns: result
get_wmi_infoGet Wmi InfoA
Decode a World Manufacturer Identifier (WMI).
Returns manufacturer information for a 3- or 6-character WMI code (VIN positions 1-3, optionally + positions 12-14 for low-volume manufacturers).
Inputs: wmi (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools are clearly separated by resource and action: decode_* covers VIN/WMI decoding, get_* covers lookup tables. The only potential confusion is between decode_vin and decode_partial_vin, since decode_vin already accepts short VINs, though the wildcard/pattern use case is explicitly distinguished.
All tool names follow a consistent verb_noun pattern starting with decode_ or get_, and resource nouns are used predictably. The naming makes the set easy to scan and understand.
Eight tools is well-scoped for a VIN decoding and vehicle reference server. Each lookup tool has a clear purpose and the count is neither too sparse nor bloated.
The server covers the core VIN decode workflow (full and wildcard partial VINs, WMI info) and the supporting reference queries needed to explore makes, models, model years, and vehicle types. There are no obvious dead ends for the stated domain.
Maintenance
Related MCP Connectors
Automotive data for AI agents: VIN decode, listings, specs, build data, recalls, payments, taxes.
Vehicle data for AI: VIN decoder, automotive specs, stolen checks, valuation and way more.
Decodes US VINs and looks up open NHTSA safety recall campaigns for a vehicle.
Look up vehicle identity, safety, fuel economy, and recorded market history by VIN.
Related MCP Servers
- AlicenseAqualityCmaintenanceConnects Claude to NHTSA vehicle safety data, enabling VIN decoding, recall checks, crash-test ratings, and consumer complaints via natural language.5MIT

Vincario MCP Serverofficial
FlicenseNot gradedqualityDmaintenanceEnables AI assistants to decode VINs, check stolen vehicle databases, and retrieve market valuations through natural language.3-- AlicenseNot gradedqualityCmaintenanceEnables natural-language queries over U.S. vehicle records, including recalls, service bulletins, diagnostic trouble codes, VIN decoding, fuel economy, and crash ratings.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read public vehicle data such as NHTSA recalls, complaints, and crash ratings, EPA engines and fuel economy, Transport Canada dimensions, and published bilingual automotive guides through search and retrieval tools.96 npmMIT