Back to Home
cobanov icon

teslamate-mcp

Verified Safe

by cobanov

Overview

Connects a TeslaMate PostgreSQL database to AI assistants, enabling natural language queries about Tesla vehicle data and analytics.

Installation

Run Command
docker-compose up -d

Environment Variables

  • DATABASE_URL
  • AUTH_TOKEN
  • QUERIES_DIR

Security Notes

The server implements robust SQL validation (`src/validators.py`) to ensure only read-only `SELECT` queries are executed, preventing common SQL injection attacks. Environment variables are used for sensitive configurations like `DATABASE_URL` and `AUTH_TOKEN`, avoiding hardcoded secrets. Optional bearer token authentication is available for remote deployments (`main_remote.py` includes `BearerAuthMiddleware`), which is crucial for securing the API. The primary security consideration is to ensure authentication is enabled and correctly configured when deploying the server remotely, as without it, the API would be publicly accessible over HTTP.

Similar Servers

Stats

Interest Score59
Security Score8
Cost ClassMedium
Avg Tokens2000
Stars109
Forks15
Last Update2025-11-29

Tags

TeslaTeslaMateAIDatabaseAnalyticsModel Context Protocol