---
title: "MCP Server"
description: "CarsXE MCP server for AI editors and CLIs — Claude Desktop, Cursor, VS Code, Windsurf, Claude CLI, Gemini CLI, Kiro CLI, and Codex CLI."
canonical_url: "https://docs.carsxe.com/docs/integrations/mcp"
markdown_url: "https://docs.carsxe.com/docs/integrations/mcp.md"
last_updated: "1980-01-01"
x_farming_labs_generated_preamble: true
---

# MCP Server
URL: /docs/integrations/mcp
LLM index: /llms.txt
Description: CarsXE MCP server for AI editors and CLIs — Claude Desktop, Cursor, VS Code, Windsurf, Claude CLI, Gemini CLI, Kiro CLI, and Codex CLI.
Related: /docs/guides/agents, /docs/get-started, /docs/integrations

Task: Configure the CarsXE MCP server in Claude Desktop, Cursor, VS Code,
  Windsurf, or a CLI (Claude, Gemini, Kiro, Codex). Related:
  /docs/integrations/mcp, /docs/guides/agents, /docs/get-started#authentication

The CarsXE MCP server exposes vehicle data directly to AI editors and agents. All clients connect to the same hosted endpoint `https://mcp.carsxe.com/mcp`. API-key clients authenticate with the `X-API-Key` header; supported remote connectors can authorize access with a CarsXE account.

## Available on marketplaces

The CarsXE MCP server is listed on all major MCP marketplaces and registries:

| Marketplace  | Link                                                                           |
| ------------ | ------------------------------------------------------------------------------ |
| MCP.so       | [View on MCP.so](https://mcp.so/server/carsxe/carsxe)                          |
| MCP Market   | [View on MCP Market](https://mcpmarket.com/server/carsxe)                      |
| Glama.ai     | [View on Glama.ai](https://glama.ai/mcp/servers/carsxe/cars-xe)                |
| MCP Registry | [View on MCP Registry](https://registry.modelcontextprotocol.io/?q=carsxe)     |
| MCP Servers  | [View on MCP Servers](https://mcpservers.org/servers/carsxe/carsxe-mcp-server) |

## What is MCP?

Model Context Protocol (MCP) is an open standard that allows AI applications to securely connect to external data sources and tools. The CarsXE MCP server provides direct access to our comprehensive automotive database.

## What is the CarsXE MCP server?

The CarsXE MCP server is a **Node.js/TypeScript** application that exposes a suite of tools for querying comprehensive vehicle data from the CarsXE API. It is designed for seamless integration with LLMs (like Anthropic Claude, OpenAI GPT, etc.), chatbots, and developer tools, providing:

- **Clean, modular code** for each CarsXE endpoint
- **Consistent, Markdown-rich output** for chat/LLM environments
- **Robust error handling** and user-friendly messages
- **Easy extensibility** for new endpoints and features

## Why use CarsXE with MCP?

Connecting CarsXE to your AI editor or chat client via MCP gives you a supercharged vehicle data experience — directly inside the tools you already use:

| Benefit                           | Description                                                                                 |
| --------------------------------- | ------------------------------------------------------------------------------------------- |
| **Ask in plain English**          | No need to know API endpoints or parameters — just describe what you want                   |
| **Context-aware answers**         | The AI combines live vehicle data with your question for tailored, actionable responses     |
| **No tab switching**              | Get VIN specs, history, recalls, and values without leaving your editor or chat             |
| **Chain requests effortlessly**   | Decode a plate → get full specs → check recalls → get market value, all in one conversation |
| **API-backed results**            | Tools query CarsXE APIs; record freshness depends on the underlying data source             |
| **Works in your favorite editor** | Claude Desktop, Cursor, VS Code, Windsurf, and any MCP-compatible client                    |

## Available tools

| Tool                            | Description                                  |
| ------------------------------- | -------------------------------------------- |
| `get_vehicle_specs`             | Full vehicle specifications from a VIN       |
| `decode_license_plate`          | License plate → VIN lookup; state and country support varies   |
| `decode_international_vin`      | Decode non-US international VINs             |
| `get_market_value`              | Retail and trade-in estimates               |
| `get_vehicle_history`           | Title events, salvage, and insurance records |
| `get_vehicle_images`            | Vehicle photos by make, model, and year      |
| `get_vehicle_recalls`           | Open safety recalls by VIN                   |
| `check_lien_and_theft`          | Lien records and theft/salvage status by VIN |
| `read_license_plate_from_image` | Extract plate info from an image URL         |
| `extract_vin_from_image`        | Extract VIN text from an image via OCR       |
| `get_year_make_model`           | Look up vehicles by year, make, and model    |
| `decode_obd_code`               | Decode OBD-II diagnostic trouble codes       |

See [all CarsXE products](/docs/products) for full endpoint details.

## Prerequisites

- **CarsXE API key** ([get one here](https://carsxe.com/dashboard/developer))
- **Node.js 18+ and npm** — required by editors that launch the MCP server via `npx mcp-remote@latest` (Claude Desktop). [Download Node.js](https://nodejs.org/)
- **An MCP-compatible client or editor** — one of: [Claude Desktop](https://claude.ai/download), [Cursor](https://www.cursor.com/), [VS Code](https://code.visualstudio.com/) with the GitHub Copilot extension, [Windsurf](https://windsurf.com/), or any other MCP-compatible tool

## Installation by editor

All editors use the same remote MCP endpoint. Replace `YOUR_API_KEY` with your actual CarsXE API key in every config below.

### Claude Desktop

#### 1. Download and install Claude Desktop

- Go to the official [Claude Desktop download page](https://claude.ai/download)
- Download the installer for your operating system (macOS, Windows, or Linux)
- Install Claude Desktop by following the on-screen instructions

#### 2. Configure Claude Desktop to use the CarsXE MCP server

**a. Open Claude Desktop settings**

- Launch the Claude Desktop app
- Go to **Settings** (`Ctrl + ,` or `Cmd + ,` on Mac)
- In the Settings window, go to the **Developer** tab (you may need to scroll or expand advanced options)
- Click **Edit Config** (or **Open Config File**)

**b. Edit the configuration file**

- This opens the `claude_desktop_config.json` file in your default text editor.
- Locate the `"mcpServers"` section. If it does not exist, add it as shown below.
- Add or update the following entry for CarsXE:

<CodeGroup title="claude_desktop_config.json">
```json
{
  "mcpServers": {
    "carsxe": {
      "command": "npx",
      "args": [
        "mcp-remote@latest",
        "https://mcp.carsxe.com/mcp",
        "--header",
        "X-API-Key: YOUR_API_KEY"
      ]
    }
  }
}
```
</CodeGroup>

- Replace `YOUR_API_KEY` with your actual CarsXE API key.
- **Tip:** You can add multiple MCP servers under `"mcpServers"` if you use more than one.
- **Save** the configuration file and close your editor.

**c. Restart Claude Desktop**

- Close and reopen the Claude Desktop app to apply the new configuration. It may take a short delay for the changes to take effect.

#### 3. Verify the CarsXE MCP server is available

- After restarting, open Claude Desktop.
- Go to the tools or plugins section (usually in the search bar or under a tools menu).
- You should see **carsxe** listed as an available MCP server/tool.
- Try running a CarsXE tool (e.g. `get_vehicle_specs`) to verify everything is working. This only works if your API key is associated with an active subscription.

### Cursor

<InstallButton
  href="cursor://anysphere.cursor-deeplink/mcp/install?name=CarsXE&config=eyJuYW1lIjoiQ2Fyc1hFIiwidXJsIjoiaHR0cHM6Ly9tY3AuY2Fyc3hlLmNvbS9tY3AiLCJoZWFkZXJzIjp7IlgtQVBJLUtleSI6IllPVVJfQVBJX0tFWSJ9fQ=="
  description="Opens Cursor and pre-fills the CarsXE server config"
>
  Install CarsXE MCP for Cursor
</InstallButton>

The install dialog will open pre-filled with:

| Field      | Value                      |
| ---------- | -------------------------- |
| **Name**   | CarsXE                     |
| **Type**   | streamableHttp             |
| **URL**    | https://mcp.carsxe.com/mcp |
| **Header** | `X-API-Key: YOUR_API_KEY`  |

Replace `YOUR_API_KEY` with your actual [CarsXE API key](https://carsxe.com/dashboard/developer), then click **Install**.

### Visual Studio Code (GitHub Copilot)

<InstallButton
  href="vscode:mcp/install?%7B%22name%22%3A%22CarsXE%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.carsxe.com%2Fmcp%22%2C%22headers%22%3A%7B%22X-API-Key%22%3A%22YOUR_API_KEY%22%7D%7D"
  description="Opens VS Code and registers the CarsXE server"
>
  Install CarsXE MCP for VS Code
</InstallButton>

After clicking install, add your API key manually:

1. Open the **Command Palette** (`Ctrl+Shift+P` / `Cmd+Shift+P`)
2. Run **MCP: List Servers**
3. Find **CarsXE** in the list and click on it
4. Click **Show Configuration**
5. Replace `YOUR_API_KEY` with your actual [CarsXE API key](https://carsxe.com/dashboard/developer):

<CodeGroup title="mcp.json">
```json
{
  "servers": {
    "CarsXE": {
      "type": "http",
      "url": "https://mcp.carsxe.com/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
```
</CodeGroup>

6. Save the file — VS Code will connect automatically.

> **Note:** Make sure you have the **GitHub Copilot** extension installed and agent mode enabled (`chat.agent.enabled` in VS Code settings).

### Windsurf (legacy Cascade)

This setup applies to the legacy Cascade agent. Devin Local uses [Devin CLI MCP configuration](https://docs.devin.ai/cli/extensibility/mcp/configuration) instead; use that guide for the default agent.

#### 1. Open MCP configuration

Open the **Actions** (`...`) menu in the Cascade panel, then choose **Open MCP config file** in the MCPs section.

On macOS/Linux, the file is `~/.config/devin/mcp_config.json` (or `$XDG_CONFIG_HOME/devin/mcp_config.json` when set). On Windows, use `%APPDATA%\devin\mcp_config.json`.

#### 2. Add the CarsXE server

Merge this entry into the existing `mcpServers` object and replace `YOUR_API_KEY`.

<CodeGroup title="mcp_config.json">

```json
{
  "mcpServers": {
    "carsxe": {
      "serverUrl": "https://mcp.carsxe.com/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
```

</CodeGroup>

#### 3. Verify the connection

Save the file and check the MCPs section in Cascade for the CarsXE tool list. This direct HTTP connection does not need Node.js or the local bridge. See the [official Cascade MCP guide](https://docs.devin.ai/desktop/cascade/mcp).

### Claude CLI

The Claude CLI supports direct HTTP connections to MCP servers.

**Using the command line:**

<CodeGroup title="Terminal">

```bash
claude mcp add --transport http carsxe https://mcp.carsxe.com/mcp \
  --header "X-API-Key: YOUR_API_KEY"
```

</CodeGroup>

**Manual configuration** — edit `~/.claude.json`:

<CodeGroup title="~/.claude.json">
```json
{
  "mcpServers": {
    "carsxe": {
      "type": "http",
      "url": "https://mcp.carsxe.com/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
```
</CodeGroup>

List configured servers with `claude mcp list`, then start the CLI with `claude`.

### Gemini CLI

Edit `~/.gemini/settings.json`:

<CodeGroup title="settings.json">
```json
{
  "theme": "Default",
  "selectedAuthType": "oauth-personal",
  "mcpServers": {
    "carsxe": {
      "httpUrl": "https://mcp.carsxe.com/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
```
</CodeGroup>

Replace `YOUR_API_KEY` with your actual [CarsXE API key](https://carsxe.com/dashboard/developer), then start the CLI with `gemini`. The CarsXE MCP server will be available immediately.

### Kiro CLI

Ensure you have the [Kiro CLI tool installed](https://kiro.dev/cli/). Create or edit `~/.kiro/settings/mcp.json`:

<CodeGroup title="mcp.json">
```json
{
  "mcpServers": {
    "carsxe": {
      "url": "https://mcp.carsxe.com/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      },
      "disabled": false
    }
  }
}
```
</CodeGroup>

Replace `YOUR_API_KEY` with your actual [CarsXE API key](https://carsxe.com/dashboard/developer). Then run `kiro-cli`, activate MCP servers with `/mcp`, and the CarsXE server will be listed and ready to use.

### Codex CLI

Ensure you have the [Codex CLI tool installed](https://developers.openai.com/codex/cli/). Edit `~/.codex/config.toml`:

<CodeGroup title="config.toml">
```toml
[mcp_servers.carsxe]
url = "https://mcp.carsxe.com/mcp"
http_headers = { "X-API-Key" = "YOUR_API_KEY" }
```
</CodeGroup>

Replace `YOUR_API_KEY` with your actual [CarsXE API key](https://carsxe.com/dashboard/developer). Start the CLI with `codex`, then list MCP servers with `/mcp`.

### Config file locations

| Editor                   | Config file                                                       |
| ------------------------ | ----------------------------------------------------------------- |
| Claude Desktop (macOS)   | `~/Library/Application Support/Claude/claude_desktop_config.json` |
| Claude Desktop (Windows) | `%APPDATA%\Claude\claude_desktop_config.json`                     |
| Cursor                   | `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global)     |
| VS Code                  | `.vscode/mcp.json` (project) or User Settings JSON                |
| Windsurf                 | `~/.config/devin/mcp_config.json`                             |
| Claude CLI               | `~/.claude.json`                                                  |
| Gemini CLI               | `~/.gemini/settings.json`                                         |
| Kiro CLI                 | `~/.kiro/settings/mcp.json`                                       |
| Codex CLI                | `~/.codex/config.toml`                                            |

## Example usage

After configuration, restart your editor. The CarsXE tools will appear in your AI assistant's tool list — invoke them naturally:

<CopyableText>
  Can you decode this VIN: 1HGBH41JXMN109186 and tell me the market value?
</CopyableText>

<CopyableText>
  What recalls exist for a 2020 Honda Civic with VIN SHHFK7H47LU419620?
</CopyableText>

<CopyableText>Show me images of a 2019 Tesla Model 3</CopyableText>

<CopyableText>Decode this license plate: ABC123 from California</CopyableText>

The server formats all responses as readable Markdown so results are easy to scan in chat.

## Supported regions

- **United States** — tool availability and returned fields depend on the endpoint, vehicle, and available records
- **Canada** — VIN decoding and market values
- **International** — VIN decoding for major markets
- **Europe** — limited VIN decoding support

## Best practices

**`mcp-remote@latest` keeps the stdio bridge current.** Clients that launch the server via `npx` (Claude Desktop) fetch the latest bridge each start, so you always talk to the current hosted endpoint. Direct-HTTP clients (Cursor, VS Code, Windsurf/Cascade, and the CLIs) need no local install.

**Never commit your API key.** Store it only in the editor config file (which lives outside your repo) or in a secrets manager. Rotate it from the [developer dashboard](https://carsxe.com/dashboard/developer) if it's ever exposed.

## Troubleshooting

**Authentication error**

- Verify your API key is correct
- Ensure you have an active subscription with sufficient API credits
- Check that your API key has the necessary permissions

**Connection issues**

- For clients that launch the MCP server via `npx` (e.g. Claude Desktop), confirm Node.js is installed and accessible; for VS Code/Cursor setups that connect directly to the HTTP endpoint, Node.js is only needed if your client uses `npx` to start a local server.
- Verify your internet connection
- Check that the MCP server URL is correct: `https://mcp.carsxe.com/mcp`

**Tool not found**

- Restart your MCP client
- Verify the configuration syntax
- Check the server logs for errors

## Getting help

- **Documentation:** [Full API documentation](/docs)
- **Support:** [Contact support](https://carsxe.com/support)

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
