The Model Context Protocol (MCP) lets AI assistants and autonomous coding agents call structured external tools over JSON-RPC without custom glue code. Automotive Dataset ships a native MCP server (@automotivedataset/mcp-server) plus a direct HTTP JSON-RPC endpoint (https://api.automotivedataset.com/api/mcp) so your agents can decode VINs, check recalls, look up OEM parts, and retrieve market valuations using your existing API key.
1. Installation & Transport Modes
The Automotive Dataset MCP server supports two verified transport modes defined in server/mcp/index.js:
- Stdio JSON-RPC (Local IDE & Desktop Clients): Run directly via
npx -y @automotivedataset/mcp-server (or locally via node server/mcp/index.js) for Anthropic Claude Desktop, Cursor IDE, Windsurf, Google Antigravity, and LangChain MCP adapters.
- Direct HTTP JSON-RPC (Cloud & Web Agents): Send JSON-RPC 2.0
POST requests directly to https://api.automotivedataset.com/api/mcp with your x-api-key header.
2. API Key Setup & Environment Variables
Create a free developer account on Automotive Dataset Signup to receive an instant sandbox API key preloaded with 25 free test credits. The MCP server reads the following verified environment variables:
AUTOMOTIVE_DATASET_API_KEY (required): Your sandbox or production API key, sent as the X-API-Key request header.
AUTOMOTIVE_DATASET_BASE_URL (optional): Defaults to https://api.automotivedataset.com.
3. Claude Desktop, Cursor & IDE Configuration
Add the following entry to your claude_desktop_config.json (Claude Desktop) or MCP server configuration in Cursor IDE, Windsurf, or Google Antigravity:
{
"mcpServers": {
"automotive-dataset": {
"command": "npx",
"args": ["-y", "@automotivedataset/mcp-server"],
"env": {
"AUTOMOTIVE_DATASET_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
4. Direct HTTP MCP JSON-RPC Request
For server-side agents or cloud workflows that cannot spawn a local Stdio process, call the hosted HTTP JSON-RPC endpoint directly:
curl -X POST "https://api.automotivedataset.com/api/mcp" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"decode_vin","arguments":{"vin":"1HGCR2F83HA000000","mode":"premium"}}}'
5. Supported MCP Tools (Verified from Server Registry)
All 11 tools below are exposed directly by automotive-dataset-mcp:
| Tool Name |
Parameters |
Verified Capability |
decode_vin | vin (required), mode? (global | premium) | Decodes 17-character ISO 3779 VIN into Year, Make, Model, Trim, powertrain, and build specs |
get_vehicle_specs | vin?, year?, make?, model?, trim? | Mechanical specs, exterior/interior dimensions, fuel economy, fluids, and weights |
get_vehicle_history | vin (required) | Title brands, salvage/total loss records, accidents, odometer history, and ownership counts |
get_vehicle_history_preview | vin (required) | Fast categorical record counts (owners, salvage auctions, recalls, loss photos) before full report |
lookup_license_plate | plate, state (required) | Resolves US state or Canadian province license plate into 17-character VIN and specs |
get_market_value | vin (required), mileage? | Wholesale, trade-in, private party, and dealer retail market valuations |
get_safety_recalls | vin (required) | Open and historical NHTSA safety recall campaigns and technical advisories |
get_window_sticker | vin (required) | Monroney factory window sticker data, option packages, and base/total MSRP |
diagnose_obd_dtc | code (required) | OBD-II fault code definitions (e.g. P0420), severity, symptoms, and repair procedures |
lookup_oem_parts | partNumber (required), vin? | Manufacturer part catalog details, supersessions, diagrams, and MSRP fitment |
get_maintenance_schedule | vin?, mileage?, year?, make?, model? | Factory scheduled maintenance intervals, inspections, and fluid changes |
6. Example AI Agent Workflows
- Pre-Purchase Vehicle Triage Agent: Prompt your assistant with a VIN to chain
decode_vin (mode: "premium") → get_vehicle_history_preview → get_safety_recalls → get_market_value and output a structured underwriting or buyer summary.
- Workshop Diagnostic & Parts Assistant: Supply a customer VIN and fault code (e.g.,
P0420) so the agent runs diagnose_obd_dtc, get_maintenance_schedule, and lookup_oem_parts to prepare a service estimate.
7. Troubleshooting & Security Considerations
- Missing API Key Error: If the server reports
Missing Automotive Dataset API Key, confirm AUTOMOTIVE_DATASET_API_KEY is set in the env block of your MCP client config and restart the IDE.
- 15-Second Request Timeout: Individual upstream tool calls time out after 15 seconds; retry transient network errors with exponential backoff.
- Key Protection: Never commit
AUTOMOTIVE_DATASET_API_KEY to source control or expose it in client-side browser code. Store keys in environment variables or a secret manager and monitor usage in your Member Portal.
Related Documentation & Guides
Connect Your AI Agent in 2 Minutes
Start testing all 11 MCP tools and 22+ REST endpoints with 25 free sandbox credits—no credit card required.
Does the MCP server require a separate subscription?
No. The MCP server uses your existing Automotive Dataset API key and shares the same sandbox credits and usage tiers as the REST API.
Can cloud-hosted AI agents use MCP without npx?
Yes. Cloud agents can send standard JSON-RPC 2.0 POST requests directly to https://api.automotivedataset.com/api/mcp with the x-api-key header.