1. Conduid
  2. Maps
  3. cobanov/teslamate-mcp
MCP server · Maps

cobanov/teslamate-mcp

A Model Context Protocol (MCP) server that provides access to your TeslaMate database, allowing AI assistants to query Tesla vehicle data and analytics.

Unclaimed MIT last commit 9 months ago devtoolsteslamatemcp-servermcpteslatesla-api
74Good

Scored 3 hours ago · breakdown

About cobanov/teslamate-mcp

cobanov/teslamate-mcp is an MCP server published by cobanov in the Maps category: a Model Context Protocol (MCP) server that provides access to your TeslaMate database, allowing AI assistants to query Tesla vehicle data and analytics. It has been installed 0 times through Conduid.

The repository has 119 stars and 17 forks, with the last commit 9 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx teslamate-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about cobanov/teslamate-mcp

Powered by Claude · Grounded in docs

I know everything about cobanov/teslamate-mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.10.1v0.10.1 — an honest health probe, and the database role that matters · 3 Aug 2026A review pass over v0.10.0. One real bug, one deployment default worth changing, and two limitations now written down instead of implied. `/health` returned 500 instead of 503 The 0.10.0 probe built its `detail` field from the first line…
v0.10.0v0.10.0 — queries that finish, bounded execution, an honest health probe · 2 Aug 2026A correctness release. Two tools that could never return on a real database now do, every query is bounded, and the health probe stops lying about it. All three were found by running v0.9.1 against a live TeslaMate database with ~3.1M rows…
v0.9.1v0.9.1 — 35 tools, typed parameters, MCP SDK v2 · 1 Aug 2026The first release since v0.3.1, and a big one: the server grows from 20 tools to 35, every query becomes filterable, and the transport moves to MCP SDK v2. Nearly all of the work in this release was contributed by…
v0.3.1v0.3.1 · 21 May 2026What's Changed [codex] Fix FastMCP context argument schemas by @cobanov in https://github.com/cobanov/teslamate-mcp/pull/7 New Contributors @cobanov made their first contribution in https://github.com/cobanov/teslamate-mcp/pull/7 Full…
v0.3.0v0.3.0 · 21 May 2026What's Changed (feat) Add remote MCP with Dockerfile setup by @f in https://github.com/cobanov/teslamate-mcp/pull/2 MCP Trust Score by @Matvey-Kuk in https://github.com/cobanov/teslamate-mcp/pull/5 add MCP server badge by @punkpeye in…

README

TeslaMate MCP Server

TeslaMate MCP Server

MseeP.ai Security Assessment Badge

Trust Score

A Model Context Protocol (MCP) server that connects your TeslaMate database to AI assistants, enabling natural language queries about your Tesla data.

Features

  • 🚗 18 Predefined Queries - Battery health, efficiency, charging, driving patterns, and more
  • 🔍 Custom SQL Support - Execute safe SELECT queries with built-in validation
  • 🗄️ Database Schema Access - Explore your TeslaMate database structure
  • 🔒 Optional Authentication - Bearer token support for remote deployments
  • 🏗️ Modular Architecture - Clean, maintainable codebase

Prerequisites

  • TeslaMate running with PostgreSQL
  • Python 3.11+ (for local) or Docker (for remote)

Quick Start

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

Configuration

Create .env file:

DATABASE_URL=postgresql://user:pass@host:5432/teslamate
AUTH_TOKEN=                    # Optional: for remote auth

Generate auth token (optional):

python utils/generate_token.py

Available Tools

Predefined Queries (18 tools)

Vehicle Info:

  • get_basic_car_information - VIN, model, firmware
  • get_current_car_status - Real-time status, location, battery
  • get_software_update_history - Firmware update timeline

Battery & Health:

  • get_battery_health_summary - Current health metrics
  • get_battery_degradation_over_time - Historical capacity
  • get_daily_battery_usage_patterns - Usage patterns
  • get_tire_pressure_weekly_trends - Tire pressure tracking

Driving Analytics:

  • get_monthly_driving_summary - Monthly statistics
  • get_daily_driving_patterns - Driving habits
  • get_longest_drives_by_distance - Top trips
  • get_total_distance_and_efficiency - Lifetime stats
  • get_drive_summary_per_day - Daily summaries

Efficiency:

  • get_efficiency_by_month_and_temperature - Seasonal analysis
  • get_average_efficiency_by_temperature - Temperature impact
  • get_unusual_power_consumption - Anomaly detection

Charging & Location:

  • get_charging_by_location - Charging patterns
  • get_all_charging_sessions_summary - Complete history
  • get_most_visited_locations - Frequent places

Custom Queries (2 tools)

  • get_database_schema - View database structure
  • run_sql - Execute custom SELECT queries (read-only, validated)

Example Queries

"What's my current battery health?"
"Show me my longest drives"
"How does cold weather affect my efficiency?"
"Where do I charge most often?"
"Run a SQL query to find drives over 100km"

Project Structure

teslamate-mcp/
├── src/              # Core modules
│   ├── config.py     # Configuration
│   ├── database.py    # DB operations
│   ├── tools.py      # Tool registry
│   └── validators.py # SQL validation
├── queries/          # 18 SQL query files
├── data/             # Database schema
├── utils/            # Helper scripts
├── main.py           # Local (STDIO)
├── main_remote.py    # Remote (HTTP)
├── Dockerfile
└── docker-compose.yml

Development

Adding New Queries

  1. Create SQL file in queries/:
-- queries/my_query.sql
SELECT * FROM my_table;
  1. Add to src/tools.py:
ToolDefinition(
    name="get_my_data",
    description="What this returns",
    sql_file="my_query.sql",
)
  1. Restart server - tool auto-registers!

Testing

python test_server.py

Security

  • Authentication: Optional bearer token for remote access
  • SQL Validation: Only SELECT queries allowed
  • Read-only: No data modification possible
  • Use HTTPS: In production environments

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

README mirrored from the source repository 3 hours ago. The original is authoritative.

Questions

About cobanov/teslamate-mcp

How do I install cobanov/teslamate-mcp?

Run npx teslamate-mcp, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is cobanov/teslamate-mcp safe to use with an AI agent?

Its trust score is 74 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is cobanov/teslamate-mcp still maintained?

Yes — the latest release is v0.10.1 (3 Aug 2026), and the last commit was 9 months ago. The repository has 119 stars and 0 open issues.