Queries TeslaMate PostgreSQL data for vehicle analytics, searches, SQL reports, and optional chart rendering.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Teslamate MCP.
The cobanov/teslamate-mcp MCP server lets an MCP-compatible AI client query a TeslaMate PostgreSQL database. TeslaMate records vehicle activity, and this server makes that history available through natural-language requests translated into MCP tool calls. It is suited to questions about charging sessions, battery capacity, driving efficiency, routes, costs, temperature effects, and other data TeslaMate stores.
The project advertises 35 tools. Most are analytics or search queries, while one general SQL tool covers questions outside the predefined reports. The server also provides schema introspection, so an agent can inspect the database structure before forming a query. Query tools support optional filters including car_name, days, limit, and threshold values.
A local deployment communicates over stdio, which is the documented approach for Claude Desktop and Cursor. A remote deployment runs over streamable HTTP and exposes the MCP endpoint at /mcp; bearer authentication is used for that mode. /health is available as a probe endpoint.
The normal query path is read-only. run_sql runs inside a read-only transaction that is rolled back, so it is intended for investigation rather than changing TeslaMate records. A separate write capability is disabled by default and is restricted to one column for the documented charging-cost workflow.
Three tools can render self-contained SVG charts in clients that support MCP Apps: show_charging_curve, show_battery_degradation, and show_drive_route. Clients without MCP Apps support receive the corresponding rows instead of an embedded chart. The cobanov/teslamate-mcp MCP server therefore remains usable across clients, but chart presentation depends on client capabilities.
A running TeslaMate installation with PostgreSQL is required. The local setup requires Python 3.11 or newer, unless Docker is used. The repository instructions use uv: clone the project, copy env.example to .env, set DATABASE_URL, and run uv sync. A client can then launch the server with uv --directory <checkout> run teslamate-mcp stdio; the checkout path must be replaced with the actual local path.
For remote use, the documented Docker image is ghcr.io/cobanov/teslamate-mcp:latest. Pass the TeslaMate PostgreSQL connection through DATABASE_URL and provide an AUTH_TOKEN; the container listens on port 8888 in the example deployment. The image supports amd64 and arm64. Because TeslaMate data can include location history, the documentation recommends keeping the service on a private network, such as one protected by a VPN or Tailscale.
The cobanov/teslamate-mcp MCP server supports:
run_sql within a read-only transaction.The repository also documents a way to add query tools with a SQL file and TOML sidecar, without writing Python. This is relevant when the built-in reports do not cover a particular TeslaMate question.
This server does not collect Tesla data itself; TeslaMate must already be running and writing to PostgreSQL. Its answers are limited to the data available in that database and the queries exposed by the server or supplied through run_sql.
Local stdio mode and remote HTTP mode have different deployment requirements. Remote mode needs bearer authentication configuration, while local mode requires a usable database connection. Chart rendering also depends on MCP Apps support in the selected client. The default query behavior is read-only, and the write capability must be explicitly enabled before it can be used.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cobanov-teslamate-mcp)<a href="https://allmcps.com/mcp/cobanov-teslamate-mcp"><img src="https://allmcps.com/api/badge/cobanov-teslamate-mcp?style=directory" alt="Teslamate MCP on AllMCPs" /></a>