mcp-teslamate-fleet
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TESLA_VIN | No | Vehicle VIN for Fleet API | |
| TESLA_CAR_ID | No | TeslaMate car ID (for multi-car instances) | 1 |
| TESLA_GAS_MPG | No | Comparable gas vehicle MPG | 28 |
| TESLA_CLIENT_ID | No | Fleet API client ID (for token refresh) | |
| TESLA_FLEET_URL | No | Fleet API endpoint (regional options) | |
| TESLA_GAS_PRICE | No | Gas price in $/gallon (for comparison) | 3.50 |
| TESLA_PROXY_URL | No | HTTP proxy URL for commands | |
| TESLA_TOKEN_FILE | No | Path to tokens.json with OAuth tokens | |
| TESLA_VERIFY_SSL | No | Set false for self-signed proxy certs | true |
| TESLAMATE_DB_HOST | No | Postgres host for TeslaMate database | |
| TESLAMATE_DB_NAME | No | Database name for TeslaMate | teslamate |
| TESLAMATE_DB_PASS | No | Postgres password for TeslaMate database | |
| TESLAMATE_DB_PORT | No | Postgres port for TeslaMate database | 5432 |
| TESLAMATE_DB_USER | No | Postgres user for TeslaMate database | teslamate |
| TESLA_BATTERY_KWH | No | Usable battery capacity in kWh | 75 |
| TESLA_CLIENT_SECRET | No | Fleet API client secret (for token refresh) | |
| TESLA_BATTERY_RANGE_KM | No | EPA range at 100% in km | 525 |
| TESLA_ELECTRICITY_RATE | No | Electricity cost in $/kWh | 0.12 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| tesla_statusA | Current vehicle state — battery, range, location, climate, odometer. Returns the latest position snapshot and vehicle info from TeslaMate. |
| tesla_charging_historyC | Charging sessions over the last N days. Shows energy added, duration, battery range, and location for each session. |
| tesla_drivesA | Recent drives — distance, duration, efficiency, start/end locations. Shows the last N days of driving activity with energy consumption. |
| tesla_battery_healthA | Battery degradation trend — range at 100% charge over time. Shows monthly snapshots of ideal range when battery is at 100%. |
| tesla_efficiencyC | Energy consumption trends — Wh/mi over time. Shows weekly average efficiency from driving data. |
| tesla_location_historyC | Where the car has been — top locations by time spent. Groups positions by proximity and shows time at each cluster. |
| tesla_state_historyC | Vehicle state transitions — online, asleep, offline. Shows when the car was awake vs sleeping, useful for vampire drain analysis. |
| tesla_software_updatesB | Firmware version history — all recorded software versions and install dates. |
| tesla_liveA | Live vehicle data from Fleet API — real-time battery, charging, climate, locks, sentry. More current than TeslaMate (which polls on intervals). Use this when you need the latest state right now. |
| tesla_climate_onA | Start climate preconditioning — heats or cools cabin to target temp. |
| tesla_climate_offB | Stop climate preconditioning. |
| tesla_set_tempB | Set cabin temperature target (Fahrenheit). Both driver and passenger. |
| tesla_charge_startA | Start charging (vehicle must be plugged in). |
| tesla_charge_stopB | Stop charging. |
| tesla_set_charge_limitA | Set charge limit percentage (50-100). |
| tesla_lockB | Lock all doors. |
| tesla_unlockA | Unlock all doors. Requires confirm=True for safety. |
| tesla_honkB | Honk the horn. |
| tesla_flashA | Flash the headlights. |
| tesla_trunkA | Open or close the trunk or frunk. Requires confirm=True. |
| tesla_sentryB | Toggle sentry mode on or off. |
| tesla_savingsA | Gas savings scorecard — how much you've saved vs a gas car. |
| tesla_trip_costA | Estimate trip cost to a destination — kWh, cost, range check. Uses your personal 30-day average efficiency and current battery level. |
| tesla_efficiency_by_tempB | Efficiency curve by temperature — Wh/mi at different temps. Shows how outside temperature affects energy consumption. |
| tesla_charging_by_locationB | Charging patterns by location — where you charge and how much. |
| tesla_top_destinationsB | Most visited locations ranked by number of visits. |
| tesla_longest_tripsA | Top drives ranked by distance — your epic road trips. |
| tesla_monthly_summaryC | Monthly driving summary — miles, kWh, cost, efficiency. |
| tesla_vampire_drainB | Vampire drain analysis — battery loss while parked overnight. Checks for periods where the car was parked (no drives) for 8+ hours and measures battery drop. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lodordev/mcp-teslamate-fleet'
If you have feedback or need assistance with the MCP directory API, please join our Discord server