MCP.so
Sign In
Servers

Tesla MCP Server

@robcerda

MCP Server for Tesla Products, specifically using the Owner API

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.

Tags

More from Other