CarsXE

What is the CarsXE integration for Google ADK?

The CarsXE MCP server brings the full suite of CarsXE vehicle data APIs into your Google Agent Development Kit (ADK) agents through a single remote endpoint at https://mcp.carsxe.com/mcp. Your agents can decode VINs and license plates, retrieve market values and ownership history, check safety recalls, and diagnose trouble codes — all from natural language queries, with no local install.

ADK Integration Page: adk.dev/integrations/carsxe

MCP Endpoint: https://mcp.carsxe.com/mcp

Key use cases

Prerequisites

Before you begin, ensure you have:

  1. An installed ADK environment
  2. A CarsXE API key — get one from the CarsXE developer dashboard

Installation

The integration connects to the hosted CarsXE MCP server over streamable HTTP — there is nothing to install locally. Add the McpToolset to your agent and pass your CarsXE API key via the X-API-Key header.

Python

Python

from google.adk.agents import Agent
from google.adk.tools.mcp_tool import McpToolset
from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPConnectionParams

CARSXE_API_KEY = "YOUR_CARSXE_API_KEY"

root_agent = Agent(
    model="gemini-flash-latest",
    name="carsxe_agent",
    instruction="You are a vehicle data assistant...",
    tools=[
        McpToolset(
            connection_params=StreamableHTTPConnectionParams(
                url="https://mcp.carsxe.com/mcp",
                headers={"X-API-Key": CARSXE_API_KEY},
            ),
        )
    ],
)

TypeScript

TypeScript

import { LlmAgent, MCPToolset } from "@google/adk";

const CARSXE_API_KEY = "YOUR_CARSXE_API_KEY";

const rootAgent = new LlmAgent({
    model: "gemini-flash-latest",
    name: "carsxe_agent",
    instruction: "You are a vehicle data assistant...",
    tools: [
        new MCPToolset({
            type: "StreamableHTTPConnectionParams",
            url: "https://mcp.carsxe.com/mcp",
            transportOptions: {
                requestInit: {
                    headers: { "X-API-Key": CARSXE_API_KEY },
                },
            },
        }),
    ],
});

Available tools

ToolFunction
get-vehicle-specsDecode a VIN to full specifications
decode-vehicle-plateExtract vehicle data from a license plate
get-market-valueDetermine current vehicle valuation
get-vehicle-historyAccess ownership and accident records
get-vehicle-recallsCheck active safety recalls
get-lien-theftVerify lien and theft status
international-vin-decoderDecode non-US VINs
vin-ocrExtract a VIN from an image
recognize-plate-imageIdentify a plate in a photo
get-year-make-modelRetrieve specs by vehicle attributes
get-vehicle-imagesFetch images by make and model
decode-obd-codeTranslate OBD-II trouble codes

Authentication

The integration uses header-based authentication. Send your CarsXE API key in the X-API-Key header on every request to the hosted MCP server over a streamable HTTP connection — no local installation required.

If you do not have a key yet, sign up and get one from the CarsXE developer dashboard.

Usage examples

Once the toolset is attached, your ADK agent invokes CarsXE tools automatically when it detects relevant context. For example:

API documentation

Full API documentation is available at api.carsxe.com/docs.