MCP Catalogs
Hometeslamate-mcp screenshot

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.

ai-llmdatabasedeveloper-tools
16
Forks
0
Open issues
6 mo ago
Last commit
2d ago
Indexed

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:

you:Tesla owners can query their vehicle's battery health and efficiency trends through AI assistants
you:AI assistants can analyze driving patterns and provide efficiency optimization recommendations
you:Users can get custom vehicle analytics by executing specific SQL queries against their Tesla data
you:What is TeslaMate and how does this MCP server connect to it?
you:How secure is the data access provided by this MCP server?

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 README
  • get_basic_car_information

    Get basic vehicle information including VIN, model, and firmware version

  • get_current_car_status

    Retrieve real-time vehicle status including location and battery level

  • get_software_update_history

    View timeline of all software updates for the vehicle

  • get_battery_health_summary

    Get current battery health metrics and condition

  • get_battery_degradation_over_time

    Analyze historical battery capacity degradation

  • get_monthly_driving_summary

    Get monthly driving statistics and summaries

  • get_daily_driving_patterns

    Analyze daily driving habits and routines

  • get_total_distance_and_efficiency

    Get lifetime distance traveled and efficiency metrics

  • get_efficiency_by_month_and_temperature

    Analyze efficiency patterns across months and temperatures

  • get_charging_by_location

    Analyze charging patterns by location

  • get_database_schema

    View the TeslaMate database structure and tables

  • run_sql

    Execute custom SELECT queries against the TeslaMate database

Comparable tools

other-mcp-serverstesla-api-toolsraw-sql-via-shell-mcpsupabase-mcp

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 sync

Configure 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 -d

Server 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.