A Model Context Protocol (MCP) server that connects to the Tesla Fleet API, allowing you to control your Tesla vehicle using Claude and other AI assistants that support MCP.
Unlock the power of AI to control and monitor your Tesla vehicles
Wake up your Tesla from sleep mode with a simple voice command to your AI assistant.
Get detailed information about your Tesla vehicles, including status, battery level, and more.
Refresh vehicle data on demand to always have the latest information about your Tesla.
Access detailed vehicle information to help with troubleshooting and development.
Follow these steps to set up the Tesla MCP Server
Get the code from GitHub to your local machine.
git clone https://github.com/scald/tesla-mcp.git
cd tesla-mcp
Install the required packages using pnpm or npm.
pnpm install
Create a .env file with your Tesla API credentials.
TESLA_CLIENT_ID=your_client_id
TESLA_CLIENT_SECRET=your_client_secret
TESLA_REFRESH_TOKEN=your_refresh_token
If you don't have a refresh token, use the provided utility.
pnpm get-token
Register with Tesla's API using the provided script.
pnpm register
Build the server and start it.
pnpm build
pnpm start
Tools that Claude can use to interact with your Tesla
Wakes up a Tesla vehicle from sleep mode.
Parameters: vehicle_id (required)
Returns: Current state of the vehicle
Refreshes the list of Tesla vehicles.
Parameters: None
Returns: Updates the internal cache of vehicles
Shows detailed information about available vehicles.
Parameters: None
Returns: ID, vehicle_id, VIN, and state information