OCDOld Cars Data

MCP Server

Page updated

The Model Context Protocol (MCP) lets AI tools like Codex, ChatGPT, Claude, and Cursor query Old Cars Data directly. Browse the vehicle catalogue and try recent sold results without an account. Sign in for full auction searches, classifieds, live auctions, bid history, pricing stats, and market trends.

Endpoint

https://api.oldcarsdata.com/mcp

Use OAuth when your client supports it for full access. Add the endpoint to try the public tools first. When you need a protected tool or advanced search, sign in to Old Cars Data in your browser and approve access. There is no API key to copy, paste, or store. Existing OAuth connections and API keys continue to work.

Try Without Signing In

Add the endpoint without an authorization header and ask: “Find recent Porsche 911 auction sales.” Public access includes:

  • Tool discovery, list_makes, and list_models.
  • A search_auctions preview of up to five recent sold results for an optional make and model. Each result includes its title, price, currency, sale ending, source, and listing link.

The preview accepts make, model, and limit (up to 50, with at most five records returned). Explicit default values status=sold, sort=date, direction=desc, page=1, and pagination=page also work. Other filters, additional pages, cursor pagination, full listing details, and other data tools require authentication. Changing the requested limit returns the same first results rather than advancing through history.

Preview responses include meta.preview: true and meta.authentication_required_for_more: true; they do not include a pagination cursor or a total for the full dataset. Public requests use the shared IP burst limit and do not consume an account's monthly allowance. Results use the existing auction cache.

For full access, choose your client's Authenticate, Connect, or MCP login action. Protected requests return HTTP 401 with OAuth discovery information so supporting clients can start sign-in. Some clients may offer authentication when adding the server. If you supply credentials, they must be valid; an invalid token never silently switches to public access.

The endpoint supports MCP 2026-07-28 and retains compatibility with 2025-03-26, 2025-06-18, and 2025-11-25. Existing tool names, deprecated aliases, authenticated pagination, and plan limits are preserved. Responses retain their text content and also provide structured results; catalogue tools publish output schemas. Tool descriptors identify read-only operations and their public or OAuth access requirements.

What Full-Access Sign-In Looks Like

  1. Your client discovers the Old Cars Data OAuth configuration from the MCP endpoint.
  2. A browser opens the branded Old Cars Data sign-in page. Continue with Google or your email and password.
  3. Review the client name and requested access, then select Allow.
  4. The browser returns you to the client. The client securely stores refreshable credentials for future sessions.
  5. Ask the client to list Old Cars Data tools or try: “Find recent Porsche 911 auction sales.”

You may be asked to sign in again if you revoke the connection, sign out, or the client discards its saved credentials.

Codex

Codex CLI

Add the remote server to try the public tools. Run the second command when you want full access:

codex mcp add oldcarsdata --url https://api.oldcarsdata.com/mcp
codex mcp login oldcarsdata

Run codex mcp get oldcarsdata to inspect the saved connection. In the Codex terminal UI, use /mcp to see its status and available tools.

Codex App and IDE Extension

  1. Open Settings > MCP servers.
  2. Select Add server, then choose Streamable HTTP.
  3. Enter https://api.oldcarsdata.com/mcp and save.
  4. Restart Codex if prompted. To enable full access, select Authenticate.
  5. Sign in to Old Cars Data in the browser and select Allow.

Codex apps, the IDE extension, and the CLI use the same local MCP configuration. ChatGPT web does not read that local configuration.

Claude

Claude Code

Add the server for your user account. Authenticate in the browser when you need full access:

claude mcp add --transport http --scope user oldcarsdata https://api.oldcarsdata.com/mcp
claude mcp login oldcarsdata

Run claude mcp get oldcarsdata or use /mcp inside Claude Code to check the connection. Use --scope project instead of --scope user when you want to share the server definition with a project; each teammate still signs in with their own Old Cars Data account.

Claude Web and Desktop

For an individual account:

  1. Open Customize > Connectors.
  2. Select +, then Add custom connector.
  3. Enter https://api.oldcarsdata.com/mcp and select Add.
  4. Select Connect, sign in to Old Cars Data, and approve access.

Free accounts can add one custom connector. Pro and Max accounts can add more. On Team and Enterprise plans, an owner first adds the URL under Organization settings > Connectors > Add > Custom > Web. Members can then open Customize > Connectors, find Old Cars Data, and select Connect.

ChatGPT Web

ChatGPT web uses workspace apps rather than the MCP configuration stored by Codex. In a workspace that allows custom MCP apps, add https://api.oldcarsdata.com/mcp as a remote app, then follow the browser sign-in and consent flow. Workspace plan and admin controls determine who can create, publish, and use the app.

Cursor, Windsurf, and Other Clients

Add Old Cars Data as a remote or Streamable HTTP server in the client’s MCP settings. Start with only the URL—do not add an authorization header when the client offers Connect, Authenticate, or OAuth sign-in.

{
  "mcpServers": {
    "oldcarsdata": {
      "url": "https://api.oldcarsdata.com/mcp"
    }
  }
}

Exact configuration keys vary by client. After saving, select the client’s connect or authenticate action and complete the Old Cars Data browser sign-in.

Team Sharing

Share only the server URL in project configuration. Each teammate completes OAuth with their own account, so there are no shared secrets to commit:

{
  "mcpServers": {
    "oldcarsdata": {
      "type": "http",
      "url": "https://api.oldcarsdata.com/mcp"
    }
  }
}

API Key Fallback

If a client supports Streamable HTTP but cannot complete remote MCP OAuth, generate an API key from your account and pass it as a bearer token:

Authorization: Bearer YOUR_API_KEY

Keep API keys out of version control. Prefer an environment-variable reference supported by your client, and use OAuth whenever the client adds support.

Available Tools

Use list_makes → list_models → search_auctions or search_classifieds when you want make and model filters to match normalized names in our database (same as GET /makes and GET /models on the REST API). Guessing names from a listing title often returns no results.

ToolDescription
list_makes#Public vehicle catalogue lookup; no login needed. Unmetered when the only tool call in the MCP request.
list_models#Public models lookup for a make; no login needed. Unmetered when called alone; authenticated batches with metered tools count.
search_auctions#Public preview of up to five recent sold results by make/model. Authenticate for full search. Use make/model values from the catalogue tools above.
search_classifieds#Search classified inventory and retained sale history with asking prices, source links, sale status, freshness timestamps, and cursor pagination
search_live_auctions#Search active supported auction listings with ending windows, source filters, current prices, bid counts, featured image URLs, and polling filters
get_auction_bids#Retrieve paginated bid history for supported live or completed Bring a Trailer, Cars & Bids, Hemmings, Hagerty, PCAR Market, All Collector Cars, and Sotheby's Motorsport auctions where bid data is available
get_price_stats#Get pricing statistics and 12-month market trends; make is required and model is optional

Deprecated aliases remain available for compatibility: list_live_auctions maps to search_live_auctions, and list_auction_bids maps to get_auction_bids. New integrations should use the canonical names above.

Tool Reference

search_classifieds

Search collector car classified inventory and sale history with the same filters and response fields as GET /classifieds. Defaults to eligible active inventory. Set status: "sold" for retained sold history regardless of source page access, or status: "all" with updated_since for a complete stored change feed. Set status: "gone" for previously active or unknown adverts with a confirmed HTTP 404 or 410. Confirmed sold and withdrawn outcomes remain intact; parsing errors and temporary access failures do not establish gone. A newer successful capture can restore active inventory. Current asking_price, most recent last_asking_price, dated asking_price_history, and confirmed sold_price remain separate in their source currency; price filters apply only to the current asking price. financing contains an advertised monthly payment and any stated down payment and term, with unknown terms returned as null. Financing is never calculated from or substituted for a purchase or sale price.

Use changed_since for changes to listing facts without routine freshness updates, or last_seen_before for listings last seen strictly before an absolute cutoff. Both require ISO 8601 datetimes with a timezone offset. changed_since orders by changed_at, id; unknown last_seen_at values do not match last_seen_before. Routine presence and unchanged detail captures do not advance changed_at. Use status: "all" when syncing all sale states. A content-only sync does not keep local freshness timestamps current.

All filters are optional. Use canonical make and model, exact source labels listing_make and listing_model, VIN, source, native specifications, year, asking price, currency, location, seller type, title keyword, status, or update time. Listings without a canonical match can be found through their source labels. Supply integer filters as JSON numbers. Use last_seen_at for freshness and updated_at for syncing changes. Unknown facts remain null, and listing descriptions are excluded.

Each classifieds source is scheduled independently every hour, with a monitoring target of six hours for listing presence. This is not a guaranteed refresh interval or an hourly full detail visit for every listing; sources can remain behind the target while working through backlogs. Verified native inventory pages showing listings for sale can advance last_seen_at before a detail refresh, while last_observed_at and price history retain their full capture dates. active has no automatic expiry after six hours. Apply any strict freshness cutoff to last_seen_at in your application. See freshness and capture times.

The response includes structured output and JSON text with data and meta.pagination, meta.limit, meta.has_more, and meta.next_cursor, plus an optional completed meta.next_sync_cursor. Pagination uses signed cursors in updated_at, id order, or changed_at, id when changed_since is supplied, with missing times last, a default limit of 50, and a maximum of 100. Keep filters and direction unchanged while following next_cursor; limit may change. Page cursors work across REST classifieds and MCP and expire 24 hours after the first page. Completed changed_since polls in asc order return meta.next_sync_cursor for later polling with the original filters; pass it as cursor. These checkpoints have no time expiry, and plan-truncated results do not receive one. See polling for changes. Starter traversals stop at 20 results across both interfaces. Successful calls share the monthly API/MCP query allowance; failed calls do not consume a query. Responses read current data; overlap polling windows and upsert by ID.

{
  "make": "Porsche",
  "currency": "USD",
  "status": "sold",
  "limit": 10
}

See the classifieds reference for the full parameter table, source evidence rules, and polling examples. The internal source checking state is never exposed as an availability field or filter.

list_makes

List all vehicle makes available in the database. No parameters required. Does not count toward your plan query limit when this is the only tool invocation in that HTTP request. Use these strings for search_auctions, search_classifieds, and get_price_stats.

list_models

List all models for a given vehicle make. Pass a make value exactly as returned by list_makes.

ParameterTypeRequiredDescription
make#stringYesExact make from list_makes

search_auctions

Search completed auction results for vehicles by default. Set status: "coming soon" to return only upcoming listings using the same filters. Upcoming listings never appear without that explicit status. Source coverage and status definitions vary; the filter selects the stored status rather than inferring upcoming inventory from a future sale date. Counts toward your plan query limit. Returns listings with prices, status, specs, and details. Use cursor pagination when an agent needs to traverse multiple result pages without exact-count or deep-offset work.

The status input also accepts coming_soon, result_unavailable, and reserve_not_met. Existing values with spaces still work, responses keep their existing status names with spaces, and either input spelling works with the same pagination cursor. These inputs are additive: default searches and status: "unsold" continue to exclude upcoming listings. result unavailable means no verified final sale outcome is available; it does not establish that the car failed to sell.

ParameterTypeRequiredDescription
make#stringNoExact make from list_makes
model#stringNoExact model from list_models
vin#stringNoExact VIN match
seller_username#stringNoExact seller username
year_min#integerNoMinimum model year
year_max#integerNoMaximum model year
price_min#integerNoMinimum sale price in USD
price_max#integerNoMaximum sale price in USD
status#enumNoAuction status: "sold", "unsold", "result unavailable", "reserve not met", "canceled", "withdrawn", "coming soon". Omitted returns completed auctions. "coming soon" selects only upcoming listings. "unsold" includes every completed outcome except "sold" and excludes upcoming listings.
source#stringNoAuction source/platform
keyword#stringNoSearch in title and description
sort#enumNoSort field: "date" (default, ordered by auction_end_at), "price", "year", "bids"
direction#enumNoSort direction: "asc", "desc" (default)
pagination#enumNoDeprecated page (default) or recommended cursor; cursor mode supports sort=date
cursor#stringNoOpaque next_cursor returned by the previous cursor result; repeat the same filters
page#integerNoDeprecated. Page number in page mode (default: 1); cursor mode accepts only 1
limit#integerNoResults per page, max 50 (default: 20)

Cursor results return pagination, limit, has_more, and next_cursor in meta instead of total, page, and total_pages. A traversal expires 24 hours after its first cursor is issued. Repeat the same filters, including status, on every page. Cursor traversal reads the current matching dataset rather than a materialized snapshot, so changed records can repeat or be omitted. Consumers should de-duplicate by auction id and must not treat a live traversal as a complete point-in-time export.

Auction results include auction_end_at and auction_end_precision. The timestamp is a timezone-naive wall-clock value; no source or venue timezone is identified or guaranteed. exact means the time-of-day was captured, not that the value is a timezone-aware instant. date means only the date is known and the 00:00:00 time is a normalization placeholder. Null means no ending value is known. The legacy auction_end_date field is deprecated.

The price field is the amount captured from the source listing. For sold records it is the source-published sale result; for other outcomes it may be the highest bid. Old Cars Data does not add buyer premiums, taxes, or fees during normalization, but a source may publish a result that already includes them. Premium treatment is not normalized; use the returned source and url when that distinction matters.

get_price_stats

Get pricing statistics and market trends for a vehicle make or make/model. Includes average, median, low/high prices, sell-through rate, and 12-month price trends.

ParameterTypeRequiredDescription
make#stringYesExact make from list_makes
model#stringNoExact model from list_models
year_min#integerNoMinimum model year
year_max#integerNoMaximum model year

Paid Plan Required: get_price_stats is not available on the Starter plan. Upgrade to access pricing statistics.

Plan Limits

The same plan limits that apply to the REST API apply to MCP tools:

PlanAuction ResultsStats Access
Starter#Limited to 20 resultsNot available
1k#Full accessFull access
10k#Full accessFull access
100k#Full accessFull access

Metered usage is shared across REST, MCP, and successful webhook deliveries. Each real event delivered to an endpoint uses one unit; failed attempts, webhook tests, and management are free. list_makes and list_models do not count toward your query limit when they are the only tool calls in that MCP HTTP request (if a single request batches a metered tool such as search_auctions, that request counts). See API overview — Rate Limits.

Example Queries

Once connected, ask questions in natural language. Here are some examples:

"What Porsche 911s have sold recently?" Calls search_auctions with make: "Porsche", model: "911", status: "sold" and returns recent sold listings with prices.

"What's the average price of a Toyota Land Cruiser?" Calls get_price_stats with make: "Toyota", model: "Land Cruiser" and returns average, median, and price range.

"Which Porsche 911s are currently listed for under $100,000?" Calls search_classifieds with make: "Porsche", model: "911", status: "active", currency: "USD", price_max: 100000 and returns eligible inventory with asking prices and freshness timestamps.

"Show me BMW M3s under $50,000 from the last few years" Calls search_auctions with make: "BMW", model: "M3", price_max: 50000, year_min: 2020 and returns matching listings.

"What car brands do you have data for?" Calls list_makes and returns the full list of available makes.

MCP examples
MCPhttps://api.oldcarsdata.com/mcp
{
  "mcpServers": {
    "old-cars-data": {
      "url": "https://api.oldcarsdata.com/mcp"
    }
  }
}
Response example200
{
  "content": [
    {
      "type": "text",
      "text": "Found 4,281 Porsche 911 auction sales."
    }
  ]
}

Summarize this page with: