MarketCheck MCP Server
OfficialREADME.md
# MarketCheck MCP Server
An MCP server that gives AI applications direct access to [MarketCheck](https://www.marketcheck.com) automotive data — search inventory, predict prices, decode VINs, and analyze market trends across US, Canada, and UK markets.
Built on the [Model Context Protocol](https://modelcontextprotocol.io), the server works with Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.
## Architecture

## Two Ways to Use
You can either connect to the **hosted server** (no installation needed) or **run locally** from source.
### Option 1: Hosted Server (Recommended)
MarketCheck hosts a production MCP server — just point your client to it with your API key:
```
https://api.marketcheck.com/mcp?api_key=YOUR_API_KEY
```
No cloning, no Python, no dependencies. Get your API key from the [MarketCheck Developer Portal](https://developers.marketcheck.com/).
### Option 2: Run Locally
#### Prerequisites
- Python 3.12+
- [UV package manager](https://docs.astral.sh/uv/) (recommended)
- MarketCheck API key — [get one here](https://developers.marketcheck.com/)
#### Install
```bash
git clone https://github.com/MarketcheckHub/marketcheck-api-mcp.git
cd marketcheck-api-mcp
uv sync
```
#### Set your API key
```bash
export MARKETCHECK_API_KEY=your_api_key_here
```
#### Run
```bash
# STDIO mode — for Claude Desktop, Cursor, etc.
python server.py
# HTTP mode — for web apps and remote deployments
python server.py --mode streamable-http --port 8000
```
## Client Setup
### Claude Desktop (Hosted — Recommended)
Navigate to **Customize → Connectors** and select **Add Custom Connector**. Fill in:
| Field | Value |
|-------|-------|
| **Name** | `Marketcheck MCP` |
| **URL** | `https://api.marketcheck.com/mcp?api_key=YOUR_API_KEY` |
Click **Add**, then go to **Customize → Connectors → Marketcheck MCP → Tool Permissions** and set **Other tools** to **Always Allow**.
**Alternative — using mcp-remote (requires Node.js 18+):**
```bash
npm install -g mcp-remote
```
Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
```json
{
"mcpServers": {
"marketcheck": {
"command": "npx",
"args": [
"mcp-remote",
"https://api.marketcheck.com/mcp?api_key=YOUR_API_KEY"
]
}
}
}
```
### Claude Desktop (Local)
```json
{
"mcpServers": {
"marketcheck": {
"command": "uv",
"args": ["run", "--directory", "/path/to/marketcheck-api-mcp", "python", "server.py"],
"env": {
"MARKETCHECK_API_KEY": "your_api_key_here"
}
}
}
}
```
### Cursor / Windsurf
Add the server URL or local command in your editor's MCP server settings. For the hosted server, use `https://api.marketcheck.com/mcp?api_key=YOUR_API_KEY` as the server URL.
### Other HTTP Clients
Point your MCP client to `https://api.marketcheck.com/mcp?api_key=YOUR_API_KEY` (hosted) or `http://localhost:8000/mcp` (local — set `MARKETCHECK_API_KEY` env var).
## Available Tools
### Vehicle Search
| Tool | Description |
|------|-------------|
| `search_active_cars` | Search live US/Canada inventory with 80+ filters — make, model, price, location, powertrain, features, dealer, and more |
| `search_past_90_days` | Search expired/sold US/Canada listings from the last 90 days for market trend analysis |
| `search_uk_active_cars` | Search live UK inventory with VRM lookup, ULEZ compliance, insurance groups, and write-off filters |
| `search_uk_recent_cars` | Search expired/sold UK listings with lease and finance filters |
### Price Intelligence
| Tool | Description |
|------|-------------|
| `predict_price_with_comparables` | ML-based price prediction for a VIN with comparable active market listings |
### Vehicle Information
| Tool | Description |
|------|-------------|
| `decode_vin_neovin` | Decode any VIN to full specs — trim, engine, MSRP, installed options, features |
| `get_car_history` | Complete online listing history for a VIN — price changes, dealer history, days on market |
### Utility
| Tool | Description |
|------|-------------|
| `get_server_info` | Server capabilities, tool list, resource URIs, and usage guidance |
## Usage Examples
### Search for EVs in California
```python
response = client.call_tool("search_active_cars", {
"state": "CA",
"powertrain_type": "BEV",
"price_range": "0-50000",
"rows": 10
})
```
### Get a price prediction
```python
response = client.call_tool("predict_price_with_comparables", {
"vin": "1HGCV1F34JA123456",
"miles": 35000,
"zip": "90210"
})
```
### Decode a VIN
```python
response = client.call_tool("decode_vin_neovin", {
"vin": "WDDGF8AB0DR298788"
})
```
### Discover filter values (facets)
Always run a facets query before filtering on categorical fields:
```python
# Step 1 — discover values
response = client.call_tool("search_active_cars", {
"facets": "make,powertrain_type,body_type",
"state": "CA",
"rows": 1
})
# Step 2 — search with exact values from Step 1
response = client.call_tool("search_active_cars", {
"make": "Toyota",
"powertrain_type": "HEV",
"state": "CA",
"rows": 10
})
```
## Common Workflows
### Vehicle Valuation
```
1. decode_vin_neovin(vin="...") → Confirm specs & MSRP
2. predict_price_with_comparables(vin="...", miles=..., zip="...") → Market value + comparables
3. get_car_history(vin="...") → Price history over time
```
### Market Research
```
1. search_active_cars(facets="make,model,powertrain_type", state="CA", rows=1) → Discover values
2. search_active_cars(make="Toyota", powertrain_type="BEV", state="CA") → Targeted search
3. search_active_cars(make="Toyota", model="RAV4", stats="price,dom", rows=1) → Price & DOM stats
```
### Dealer Analysis
```
1. search_active_cars(dealer_id="12345", rows=50) → Current inventory
2. search_past_90_days(dealer_id="12345", stats="dom", rows=1) → Turnover stats
3. search_past_90_days(dealer_id="12345", sold=true, rows=20) → Recent sales
```
## API Key
Set the API key via environment variable:
```bash
export MARKETCHECK_API_KEY=your_key
```
The hosted server (`api.marketcheck.com/mcp`) accepts the key as a query parameter — that is handled by the Kong gateway, not this server.
## Deployment
### Docker
```bash
docker build -t marketcheck-api-mcp .
docker run -p 8000:8000 \
-e MARKETCHECK_API_KEY=your_key \
marketcheck-api-mcp
```
## Project Structure
```
marketcheck-api-mcp/
├── server.py # Main server entry point with CLI
├── services/ # Business logic — MarketCheck API integration
├── tools/ # MCP tool definitions and parameter validation
├── resources/ # MCP resource definitions (metadata/discovery)
├── utils/ # Shared utilities
├── docs/ # Tool reference documentation
├── Dockerfile # Container image
├── pyproject.toml # Python project configuration
└── uv.lock # Locked dependency versions
```
## Documentation
- **[docs/](./docs/)** — Detailed tool reference for every MCP tool
- **[Full docs site](https://docs.marketcheck.com/docs/get-started/api/mcp/introduction)** — Getting started, tool references, workflows, and support
## Environment Variables
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `MARKETCHECK_API_KEY` | Yes | — | Your MarketCheck API key |
| `PORT` | No | `8000` | HTTP server port (HTTP mode only) |
| `DEBUG` | No | `false` | Enable verbose debug logging |
## License
MIT
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues