Smartcar MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Smartcar MCP Serverget the battery level and lock status for vehicle ID 'abc123' and user ID 'user456'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Smartcar MCP Server
An MCP (Model Context Protocol) server that exposes Smartcar's vehicle API as tools for AI agents. Enables Claude, ChatGPT, and other MCP-compatible clients to query vehicle telemetry and send commands using natural language.
Overview
This server wraps Smartcar's M2M (machine-to-machine) API using OAuth2 client credentials. It handles token acquisition and caching automatically, so AI agents interact with vehicles without managing auth.
16 tools across 4 categories:
Category | Tools |
Connections |
|
Signals (telemetry) |
|
Vehicle commands |
|
Management |
|
Usage
No installation needed. Add this to your claude_desktop_config.json (or equivalent MCP client config):
{
"mcpServers": {
"smartcar": {
"command": "npx",
"args": ["-y", "smartcar-mcp"],
"env": {
"SMARTCAR_CLIENT_ID": "your-client-id",
"SMARTCAR_CLIENT_SECRET": "your-client-secret"
}
}
}
}Environment variables
Variable | Required | Default | Description |
| Yes | — | Your Smartcar M2M client ID |
| Yes | — | Your Smartcar M2M client secret |
| No |
| Vehicle API base URL |
| No |
| Auth token endpoint |
| No |
| Management API base URL |
Development
git clone https://github.com/thachdoSC/smartcar-mcp-test
cd smartcar-mcp
npm install
npm run dev # run from source
npm run build # compile to dist/Tools Reference
Connections
list_connections — List vehicle connections with optional filters.
Parameter | Type | Description |
| string? | Filter by user ID |
| string? | Filter by vehicle ID |
|
| Filter by vehicle mode |
| number? | Page number |
| number? | Results per page |
get_connection — Get a single connection by ID.
delete_connection — Delete a connection by ID.
delete_user — Delete a user and all associated data.
Signals (Telemetry)
get_signals — List all available signals for a vehicle.
Parameter | Type | Description |
| string | Vehicle ID |
| string | User ID |
| number? | Page number |
| number? | Results per page |
get_signal — Fetch the current value of a specific signal.
Parameter | Type | Description |
| string | Vehicle ID |
| string | User ID |
| string | Signal code (see below) |
Charge: charge.ischarging, charge.voltage, charge.wattage, charge.amperage, charge.limit, charge.estimation.durationtocompletion, charge.estimation.distance_added, charge.estimation.kwh_added, charge.estimation.percent_added, charge.session.id, charge.session.starttime, charge.session.endtime, charge.session.kwhadded, charge.session.milesadded, charge.session.porttype, charge.session.cost, charge.schedule.type, charge.schedule.starttime, charge.schedule.day, charge.schedule.enabled, charge.porttype, charge.portstatus
Climate: climate.externaltemperature, climate.internaltemperature
Closure: closure.door, closure.lock, closure.window, closure.sunroof, closure.fronttrunk, closure.reartrunk, closure.chargeport
Connectivity: connectivity.firmware, connectivity.isonline, connectivity.sleepstate, connectivity.lastseenat
Diagnostics: diagnostics.faultcodes, diagnostics.oil, diagnostics.emissions, diagnostics.abs, diagnostics.airbag, diagnostics.battery.maintenancestatus, diagnostics.battery.range, diagnostics.battery.soc, diagnostics.brakebooster, diagnostics.brakefluid, diagnostics.collision, diagnostics.coolant, diagnostics.cruisecontrol, diagnostics.enginelight, diagnostics.hazardlights, diagnostics.headlights, diagnostics.park, diagnostics.stabilitycontrol, diagnostics.steeringlock, diagnostics.transmission, diagnostics.washerfluid
HVAC: hvac.cabintemperature, hvac.defroster, hvac.heater, hvac.temperatureset, hvac.ventilation
ICE (Internal Combustion Engine): ice.fuel.level, ice.fuel.range, ice.fuel.percentremaining, ice.oillife
Location: location.precise, location.ishome
Low voltage battery: lowvoltagebattery.stateofcharge, lowvoltagebattery.status
Motion: motion.speed
Odometer: odometer.distance
Service: service.isinservice, service.records
Surveillance: surveillance.brand, surveillance.isenabled
Traction battery: tractionbattery.stateofcharge, tractionbattery.range, tractionbattery.heating, tractionbattery.capacity.kwh, tractionbattery.capacity.usableKwh, tractionbattery.limit, tractionbattery.temperature, tractionbattery.chargecompletiontime, tractionbattery.fullchargetime
Transmission: transmission.drivemode, transmission.gear
Vehicle ID: vehicleid.vin, vehicleid.color, vehicleid.trim, vehicleid.packages, vehicleid.nickname
Vehicle user account: vehicleuseraccount.grantedpermissions, vehicleuseraccount.role
Wheel: wheel.style, wheel.tires
Vehicle Commands
All command tools require vehicle_id and user_id.
lock_vehicle — Lock vehicle doors.
unlock_vehicle — Unlock vehicle doors.
start_charge — Start EV charging.
stop_charge — Stop EV charging.
set_charge_limit — Set the maximum charge level.
Parameter | Type | Description |
| number | Target charge % (50–100) |
set_navigation_destination — Send a GPS destination to the vehicle's nav system.
Parameter | Type | Description |
| number | Latitude (-90 to 90) |
| number | Longitude (-180 to 180) |
Management
list_applications — List all Smartcar applications in your organization.
get_application — Get details for a specific application by ID.
list_application_secrets — List credentials for an application (secret values are not returned).
Project Structure
src/
├── index.ts # Server entry point — wires up tools and transport
├── auth.ts # OAuth2 token manager with in-memory caching
├── client.ts # HTTP client for Smartcar REST APIs
└── tools/
├── connections.ts # Connection and user management tools
├── signals.ts # Vehicle telemetry tools
├── commands.ts # Vehicle control command tools
└── management.ts # Application management toolsAuthentication
The server uses OAuth2 client credentials (M2M flow). Tokens are cached in memory and refreshed automatically 60 seconds before expiry. No manual token management is needed.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/thachdoSC/smartcar-mcp-test'
If you have feedback or need assistance with the MCP directory API, please join our Discord server