SuperAPIAI Directory

mcp-teslamate-fleet

github.com · AI developer platforms

TeslaMate analytics and Tesla Fleet API commands: telemetry, driving history, energy analytics and remote control of climate, charging, locks and sentry.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

This MCP server integrates TeslaMate's historical data analysis capabilities with the Tesla Fleet API's real-time data and remote commands, targeting users who need to query Tesla vehicle information and perform basic remote operations through Claude Code, Claude Desktop, Cursor, or any MCP-compatible client. The official description calls it the first MCP server to connect to both data sources at the same time, and users can use both simultaneously or configure only one of them.

Main Capabilities

The project provides a total of 29 tools, distributed across four categories. Through the TeslaMate backend, in-depth analysis of driving history, charging records, and vehicle status is possible, with data coming from information that TeslaMate records to a Postgres database; through the Fleet API backend, real-time vehicle data can be obtained and remote commands can be executed, such as climate control, charging management, door locks, and Sentry Mode. Safety-related commands such as unlock and trunk operations require passing confirm=True for confirmation, and all commands are subject to a rate limit of 40 times per day. The official description also mentions that tesla_live works with only a token configured.

Usage

Users need to configure at least one of the following backends, and the official recommendation is that configuring both is ideal.

TeslaMate side: if TeslaMate is already running, only database connection information needs to be provided; if it has not yet been deployed, refer to the TeslaMate installation guide. TeslaMate is an open-source Tesla data logger that records driving, charging, and vehicle status to a Postgres database.

Fleet API side: you need to register an application at developer.tesla.com, use Tesla's token generation process to generate an OAuth token, and set up an HTTP proxy. Commands must be signed according to Tesla's Vehicle Command Protocol, requiring deployment of the tesla-http-proxy in that repository. The official description points out that the proxy is only needed when executing command-type tools (such as tesla_climate_on, tesla_lock, etc.), while tesla_live can be used with only a token. Tesla provides a free monthly allowance of 10 USD for the Fleet API, which the official description says is enough for personal MCP use.

All configuration is done through environment variables. When connecting to Claude Code, use .mcp.json; when connecting to Claude Desktop, use claude_desktop_config.json. The two have the same structure, both adding configuration under mcpServers.

Regarding vehicle configuration, energy consumption is estimated from the ideal range difference, and the related values can be adjusted for a specific vehicle; these are default values, and tesla_savings and tesla_trip_cost support overriding them on a per-call basis.

The server is a single-file Python implementation (about 1400 lines), built on FastMCP, with two data paths.

Applicable Scenarios

Suitable for individual users who already run TeslaMate and want to combine historical analysis, or who need real-time queries and remote control via the Fleet API, and especially suitable for vehicle data exploration and operations using MCP-compatible clients such as Claude Code, Claude Desktop, and Cursor.

Limitations

Currently only a single vehicle is supported; queries use a configurable car_id, but the tools themselves do not accept this parameter, so multi-vehicle users need to run separate server instances. Output uses imperial units (miles, degrees Fahrenheit, PSI), and metric support is still planned. Energy consumption is an estimated value because TeslaMate's drives table does not directly include the energy consumed; the estimate is based on the configured battery capacity and ideal range difference, with an accuracy of about 90% to 95%. Command-type tools require setting up and deploying tesla-http-proxy and signing requests, and are subject to a rate limit of 40 times per day; safety commands such as unlock and trunk also require explicit confirmation.

The project is inspired by cobanov/teslamate-mcp and is built using FastMCP and TeslaMate.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools