SDKs & MCP

MCP server

Last updated:

Connect Claude, Cursor, VS Code, and any MCP client to Cardog vehicle data.

claude mcp add --transport http cardog "https://mcp.cardog.io/mcp?api_key=$CARDOG_API_KEY"

The server exposes six tools, each covering one task rather than one endpoint: resolve_entity (free text to refs), identify_vehicle (VIN to identity), search_inventory (listings search by ref), market_quote (instrument to live quote), check_recalls (VIN or ref to campaigns, Transport Canada and NHTSA combined), and window_sticker (VIN to the factory window sticker we hold, or why there is none). All six are reads.

Only resolve_entity accepts free text. It turns "2026 CR-V", or "teslla", or whatever a user typed, into refs with confidence scores. Every other tool takes refs or a VIN. This is what keeps the server from returning a confidently wrong vehicle. When a ref is unknown, the tool returns an error naming it with nearest-ref suggestions, and the model corrects in one turn instead of guessing.

The server is a remote Model Context Protocol server. There is nothing to run or update locally.

Line drawing of a laptop showing a chat, joined by a line to a small server stack, joined to a generic car.
  1. 1Your agentClaude, Cursor or any MCP client, with your key in its config.
  2. 2The Cardog MCP serverSix read tools, one task each.
  3. 3The vehicleAnswers come back as refs the agent can hold.
TransportURL
Streamable HTTP (preferred)https://mcp.cardog.io/mcp
SSEhttps://mcp.cardog.io/sse

Install

Claude Code

claude mcp add --transport http cardog "https://mcp.cardog.io/mcp?api_key=$CARDOG_API_KEY"

Claude (web / desktop / mobile)

Add a custom connector under Settings → Connectors with the URL https://mcp.cardog.io/mcp and your API key when prompted.

Cursor

Add to Cursor, then add your key to the server URL in ~/.cursor/mcp.json:

Example

1 keys
"response": {
"mcpServers": {
"cardog": {1 item}
}
}

VS Code

code --add-mcp '{"name":"cardog","type":"http","url":"https://mcp.cardog.io/mcp?api_key=YOUR_API_KEY"}'

Or click Install in VS Code, then append ?api_key=YOUR_API_KEY to the server URL it writes.

Any MCP client

The server accepts a Cardog API key (from Account → API) via:

MethodFormat
Query parameter?api_key=YOUR_API_KEY
Authorization headerAuthorization: Bearer YOUR_API_KEY
Custom headerx-api-key: YOUR_API_KEY

The six tools

ToolWhat it does
resolve_entityFree text to entity refs with confidence. The only tool that accepts prose.
identify_vehicleVIN to full identity: refs, nano and squish grains, spec highlights, links
search_inventoryListings search by ref, range, and spec filters. Returns listings, facets, and a count.
market_quoteInstrument ref (model-year: or squish:) to live quote stats, history summary, and a sample
check_recallsVIN or entity ref to recall campaigns (Transport Canada + NHTSA, keyed by ref)
window_stickerVIN to the factory window sticker we hold (a signed PDF link), or the reason there is none

Each tool covers a task a user has, rather than a route the API exposes:

  • resolve_entity exists because free text has to become a ref once. It is the only tool that accepts prose.
  • identify_vehicle answers "what is this car" in one call, with refs, grains, and spec highlights together, instead of decode, specs, and lookup stitched together by the model.
  • search_inventory answers "what is for sale". Filters are refs, so a hallucinated make is a caught error rather than an empty result.
  • market_quote answers "what is it worth". The model receives summary stats it can quote, not raw rows it has to aggregate.
  • check_recalls answers "which recalls are listed for its model year", by authority, with a notice that the manufacturer confirms by VIN.
  • window_sticker answers "what did it leave the factory with": the label we hold for the VIN, or a reason, of which only not_yet_harvested is worth retrying.

A transcript

One real exchange, resolve then quote, with the refs visible in the tool output:

  › What's a 2026 Honda CR-V going for right now?

  ⏺ resolve_entity(q: "2026 Honda CR-V")
    → best: { ref: "model-year:honda/cr-v/2026", domain: "model-year", confidence: 1 }

  ⏺ market_quote(ref: "model-year:honda/cr-v/2026")
    → liveCount: 1259 · median: $46,902 · P25–P75: $46,125–$51,450
      avgDomDays: 67 · cuts30d: 138 (avg 2.6%)

  Median asking price is $46,902 across 1,259 live listings, with the middle
  half between $46,125 and $51,450. They sit about 67 days, and 138 sellers
  cut price in the last 30 days by an average of 2.6%.

The other exchange worth showing is the correction loop, with the mistake left in:

  ⏺ check_recalls(ref: "make:teslla")
    → 400 unknown_entity_refs
      hint: "Resolve free text to refs at GET /v2/entities/resolve"
      suggestions: [{ invalid: "make:teslla", nearest: [{ ref: "make:tesla", name: "Tesla" }],
                      resolve: "/v2/entities/resolve?domain=make&q=teslla" }]

  ⏺ check_recalls(ref: "make:tesla")
    → 143 campaigns (TC + NHTSA)

The API does not correct make:teslla to make:tesla on its own. It returns a 400 that names the mistake and carries the fix, and the agent retries. One wrong turn, and no wrong answer.

What the tool descriptions teach

The tool descriptions are instructions, not labels. They teach the model the platform's grammar before its first call: resolve first, because free text only goes through resolve_entity, and everything downstream takes refs, not names. A ref like make:tesla is permanent vocabulary. Once it appears in a tool result, the model can hold it and reuse it for the rest of the session without another resolve.

They also teach the model what an error means here. Every failure carries code, hint, and suggestions with the nearest valid refs, so the error envelope is a correction rather than a dead end, and the descriptions say so up front. The result is a model that uses this API correctly on the first try: it does not guess vocabulary, nothing fuzzy-matches on its behalf, and when it is wrong the response carries the fix.

Prefer raw REST for agents?

The whole v2 API works for agents without MCP. Fetch /docs.md for the entire platform as one markdown document, use GET /v2/entities/resolve for free text, and follow the links block each response carries. Errors name the bad input and suggest the nearest valid refs.

Limitations

A key is required. There is no keyless trial tier today, so installing the server and calling a tool are two steps, not one. Get a key at Account → API. The free tier is 50 credits per month with a hard stop.

Six tools, all reads. Nothing here writes, and there is no catch-all "query" tool. If your job is not one of the six, use the REST surface directly. /docs.md is the whole platform in one fetch, and agents do fine with it.

Coverage. VIN identity, specs and recalls answer for any vehicle, with recalls from the authority in its market of sale. Listings and market quotes cover the Canadian retail market today, about 190k live listings, observed continuously. US listings are not here yet.