mcp-tesla — Claude Code MCP server: features and setup
Connect an AI agent to Tesla Fleet API and TeslaMate API to control vehicle features, check energy systems, and explore drive and charging data.
claude mcp add --transport http mcp-tesla https://mcp.myteslamate.com/mcpWhat mcp-tesla does
mcp-tesla gives an agent tools for Tesla vehicle controls such as locking, climate, charging, and Sentry mode. Tesla Fleet API access also covers Powerwall and Solar functions, navigation, and charging-session data. TeslaMate API adds drive history and statistics. For analytics, the server can generate interactive widgets with charts, tables, and metrics.
The package includes drive-efficiency-coach, a skill that reviews TeslaMate drives, flags energy-use outliers, and produces a report. The hosted server supports OAuth 2.0 sign-in with Tesla; Tesla credentials are not sent to the server. Add the hosted MCP endpoint to Claude Code with the command below. Drive analytics rely on TeslaMate API access.
What it helps with
- control vehicle charging and battery limits through an agent
- check Powerwall and solar status
- spot unusual energy use across drives
- build charts and tables from charging data
Example prompts for the agent
- Check whether my car is locked and Sentry mode is on.
- Compare energy use across my drives over the last 30 days and create a report.
- Show charging costs by location as a chart.
How to install mcp-tesla
Platform CLI: remote server
claude mcp add --transport http mcp-tesla https://mcp.myteslamate.com/mcpPlatform CLI: remote server
codex mcp add mcp-tesla --url https://mcp.myteslamate.com/mcpConfig file
{
"mcpServers": {
"mcp-tesla": {
"url": "https://mcp.myteslamate.com/mcp"
}
}
}Config file
{
"servers": {
"mcp-tesla": {
"type": "http",
"url": "https://mcp.myteslamate.com/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http mcp-tesla https://mcp.myteslamate.com/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about mcp-tesla
How do I install mcp-tesla in Claude Code?
Run claude mcp add --transport http mcp-tesla https://mcp.myteslamate.com/mcp. This registers the server over HTTP.
What does mcp-tesla do?
It gives an AI agent tools from Tesla Fleet API and TeslaMate API for vehicle and energy-system controls, plus drive and charging analysis.
What does TeslaMate API access add?
It provides drive history and statistics. The included drive-efficiency-coach skill uses drive data to examine energy use and prepare a report.