
teslamate-mcp
by cobanov·★ 127·Score 46
TeslaMate MCP server provides AI assistants with secure access to Tesla vehicle data through 18 predefined queries and custom SQL.
Overview
This MCP server connects to TeslaMate databases, enabling AI assistants to query Tesla vehicle data through the Model Context Protocol. It offers both predefined analytical queries for battery health, efficiency, charging patterns, and driving analytics, as well as safe custom SQL execution with built-in validation. The server supports both local deployment via command line and remote access via HTTP with optional authentication.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server if you're a Tesla owner using TeslaMate and want to query your vehicle data through AI assistants without writing SQL yourself.
When NOT to choose this
Don't choose this if you need write access to your Tesla data or if you don't already have TeslaMate running with PostgreSQL.
Tools this server exposes
12 tools extracted from the READMEget_basic_car_informationGet basic vehicle information including VIN, model, and firmware version
get_current_car_statusRetrieve real-time vehicle status including location and battery level
get_software_update_historyView timeline of all software updates for the vehicle
get_battery_health_summaryGet current battery health metrics and condition
get_battery_degradation_over_timeAnalyze historical battery capacity degradation
get_monthly_driving_summaryGet monthly driving statistics and summaries
get_daily_driving_patternsAnalyze daily driving habits and routines
get_total_distance_and_efficiencyGet lifetime distance traveled and efficiency metrics
get_efficiency_by_month_and_temperatureAnalyze efficiency patterns across months and temperatures
get_charging_by_locationAnalyze charging patterns by location
get_database_schemaView the TeslaMate database structure and tables
run_sqlExecute custom SELECT queries against the TeslaMate database
Comparable tools
Installation
Local Setup (Cursor/Claude Desktop)
git clone https://github.com/cobanov/teslamate-mcp.git
cd teslamate-mcp
cp env.example .env
# Edit .env with your DATABASE_URL
uv syncConfigure your MCP client:
{
"mcpServers": {
"teslamate": {
"command": "uv",
"args": ["--directory", "/path/to/teslamate-mcp", "run", "main.py"]
}
}
}Remote Setup (Docker)
git clone https://github.com/cobanov/teslamate-mcp.git
cd teslamate-mcp
cp env.example .env
# Edit .env with your DATABASE_URL
docker-compose up -dServer available at: http://localhost:8888/mcp
FAQ
- What is TeslaMate and how does this MCP server connect to it?
- TeslaMate is an open-source self-hosted data logger for Tesla vehicles. This MCP server connects directly to your TeslaMate PostgreSQL database to provide AI assistants access to your vehicle data.
- How secure is the data access provided by this MCP server?
- The server implements multiple security measures: only read-only SELECT queries are allowed, all SQL queries are validated, and optional bearer token authentication can be enabled for remote deployments.
Compare teslamate-mcp with
Last updated · Auto-generated from public README + GitHub signals.