Garage MCP
Read-only integration with the Tesla Fleet API that lets Claude list vehicles and retrieve vehicle status, battery, range, charging, odometer, tire pressure, and location data without waking the car.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Garage MCP
Ask Claude about your car: battery, range, charging, odometer, tire pressure and location.
Garage MCP is a self-hosted, read-only MCP server that works with Tesla vehicles through the official Fleet API. It never wakes the car and cannot send commands. It is an independent project, not affiliated with or endorsed by Tesla.
What you need
A Railway account
A Tesla account with a vehicle, a verified email and multi-factor authentication
A payment method on your Tesla developer account (see Cost)
Claude, or another MCP client that runs on your computer and supports OAuth
Related MCP server: polestar-mcp
Set up
Deploy the template on Railway. There is nothing you have to fill in yet.
Open
https://<your-domain>/. This setup page shows the exact values for the next steps and ticks them off as you go.At https://developer.tesla.com, create an app:
Name: anything without the word "Tesla" or a model name
Grant type: Authorization Code and Machine-to-Machine
Allowed origin:
https://<your-domain>Redirect URI:
https://<your-domain>/auth/callbackScopes: Vehicle Information, and Vehicle Location if you want the location tool
Add a payment method
In Railway, open the service's Variables, set
TESLA_CLIENT_IDandTESLA_CLIENT_SECRET, and deploy the change. The server then registers your domain with Tesla by itself.In Claude: Settings -> Connectors -> Add custom connector, URL
https://<your-domain>/mcpClick Connect. Enter your
SETUP_SECRET(from the Railway variables) and sign in to Tesla.
You need both every time you add or reconnect the connector, not each time you use it. The first Tesla account to connect owns the server. A new connection takes the setup code and a sign-in to that same account, so a stranger who finds your URL can't get in.
Variables
Variable | Value |
| random, 32+ characters. The template generates it |
| from your Tesla app |
| from your Tesla app |
| only outside North America: your region's Fleet API URL |
| optional, default 300, minimum 60 |
| only if you use a custom domain |
Tools
list_vehiclesget_vehicle_statusget_vehicle_location
If the car is asleep you get the last reading and its time. Wake the car in the Tesla app, wait a minute and ask again.
Troubleshooting
Step 3 on the setup page stays unticked: read the deploy logs. Check the client ID, secret, allowed origin and region, then redeploy. A successful run logs
Verified: Tesla holds the same public key."Redirect URI" error when signing in: it must match the setup page exactly.
Location is refused: add the Vehicle Location scope to your Tesla app, then connect again.
Changed your domain: update the Tesla app, then redeploy.
Registering by hand:
TESLA_CLIENT_ID=... TESLA_CLIENT_SECRET=... python register.py <your-domain>
Cost
Tesla bills your developer account per request, after a monthly discount, and failed requests below HTTP 500 count too. Check current prices and set a billing limit on developer.tesla.com. Readings are cached for 5 minutes, "the car is asleep" for 1 minute, and the vehicle list for an hour. The cache is in memory, so it resets on redeploy. Railway hosting is billed separately.
Your data
Your server talks to Tesla and to the MCP client you connect. It sends nothing to the author of this project.
Whatever a tool returns, including location, goes to your MCP client and the AI provider behind it.
Tesla tokens and the last readings (including location) are stored unencrypted on your volume, readable by the service only. Anyone with access to your Railway project can read them and your variables.
To remove everything, delete the Railway project and remove the app's access in your Tesla account.
Security
Claude connects with OAuth. Access tokens last an hour, refresh tokens rotate, and only their hashes are stored. Only Claude's callback address and Claude Code's localhost callback can receive access.
Every new connection needs
SETUP_SECRETand a Tesla sign-in, so being tricked into clicking through someone else's sign-in link isn't enough to share your car. Never enter the code on a page you didn't open from your own connector setup.The setup page at
/is public. It shows your URLs and setup progress, never secrets or vehicle data.To switch Tesla accounts, tick Switch to a different Tesla account on the connect page. This ends existing connections.
To disconnect everything but keep the server, remove the app's access in your Tesla account and delete
tokens.json,oauth.json,owner.jsonandsnapshot-*.jsonfrom the volume.
Deploy without the template
Railway -> New Project -> Deploy from GitHub repo.
Add a volume with mount path
/data. The server refuses to start on Railway without it.Add
SETUP_SECRET. Generate one withpython -c "import secrets; print(secrets.token_urlsafe(32))".Settings -> Networking -> Generate Domain, then follow Set up from step 2.
Development
pip install -r requirements-dev.txt
ruff check . && ruff format --check . && mypy && python -m pytestEvery pull request also runs Semgrep, a secret scan of the full history and a dependency audit. The
standards any AI assistant working here must follow are in CLAUDE.md.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only MCP for Copart and IAA/IAAI search, history, filters, locations, shipping, and usage.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Free, read-only MCP subset of x402 Toolbox's cheap data endpoints, free via MCP.
Read-only MCP server for AIStatusDashboard status, incidents, metrics, and fallback recommendations.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA secure, read-only MCP server that connects to BYD electric vehicles via the BYD cloud API, enabling AI agents to query real-time vehicle data such as battery SOC, range, tire pressures, door states, and GPS.1MIT
- AlicenseAqualityBmaintenanceEnables querying your Polestar vehicle's data through plain-language MCP tools, including telemetry, charging, location, health, and charging plans via the Polestar Data Portal read-only API.232MIT
- AlicenseAqualityBmaintenanceEnables users to query a Tesla vehicle's battery, charging, climate, odometer, software, location, charging history, and local mileage or range reports through a local stdio MCP connector. Status can come from cached snapshots without waking the car, while wake-and-refresh is budget-gated and no vehicle commands are exposed.9MIT
- AlicenseNot gradedqualityBmaintenanceEnables chat agents and automation tools to query Tesla vehicle status and, when explicitly enabled, send signed vehicle commands via MCP over Streamable HTTP or local stdio.MIT