Tesla MCP Server
@robcerda
About Tesla MCP Server
MCP Server for Tesla Products, specifically using the Owner API
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"tesla-mcp-server": {
"command": "uv",
"args": [
"venv"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Tesla MCP Server?
Tesla MCP Server is a Model Context Protocol (MCP) server that connects Claude with the Tesla Owner API. It provides tools for authentication and data retrieval for Tesla vehicles and solar systems, intended for developers using Claude Desktop.
How to use Tesla MCP Server?
Install dependencies with uv, clone the repo, create a virtual environment, and sync. Configure Claude Desktop by running mcp install src/tesla_mcp_server/server.py --name "Tesla" --with-editable . then restart Claude. On first use, authenticate via a browser; a refresh_token.txt file is created for future sessions.
Key features of Tesla MCP Server
- Integrates Claude Desktop with the Tesla Owner API
- OAuth2 authentication with browser-based login
- Retrieve vehicle and solar system data
- Send commands to vehicles
- Local development with
mcp run src/tesla_mcp_server/server.py - Refresh token persistence across sessions
Use cases of Tesla MCP Server
- Ask Claude for your Tesla vehicle’s current status
- Command your Tesla to start climate or charging
- Check your Tesla solar system’s energy production
- Retrieve historical solar generation data
- Get a summary of all your Tesla systems in one query
FAQ from Tesla MCP Server
What does Tesla MCP Server do?
It acts as a bridge between Claude and the Tesla Owner API, allowing Claude to read vehicle and solar system data and send commands.
How do I authenticate with Tesla?
On first run, the server opens a browser for Tesla OAuth2 login. After approval, a refresh_token.txt file is saved and reused automatically.
What are the system requirements?
Python 3.12 or higher, plus the MCP Python SDK, httpx, and python-dotenv. A virtual environment is recommended.
Is my refresh token safe?
The refresh_token.txt file should never be committed to version control. It contains credentials for continued access without re‑authentication.
Can I send commands to my car?
Yes, the send_command tool allows sending commands such as climate control or charging start/stop to a specified vehicle.
Frequently asked questions
What does Tesla MCP Server do?
It acts as a bridge between Claude and the Tesla Owner API, allowing Claude to read vehicle and solar system data and send commands.
How do I authenticate with Tesla?
On first run, the server opens a browser for Tesla OAuth2 login. After approval, a `refresh_token.txt` file is saved and reused automatically.
What are the system requirements?
Python 3.12 or higher, plus the MCP Python SDK, httpx, and python-dotenv. A virtual environment is recommended.
Is my refresh token safe?
The `refresh_token.txt` file should never be committed to version control. It contains credentials for continued access without re‑authentication.
Can I send commands to my car?
Yes, the `send_command` tool allows sending commands such as climate control or charging start/stop to a specified vehicle.
Basic information
More Other MCP servers
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web

DeepMark
DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.
Blender
ahujasidOpen-source MCP to use Blender with any LLM
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Comments