by cobanov
A Model Context Protocol (MCP) server that provides access to your TeslaMate database, allowing AI assistants to query Tesla vehicle data and analytics.
# Add to your Claude Code skills
git clone https://github.com/cobanov/teslamate-mcp
A Model Context Protocol (MCP) server that connects your TeslaMate database to AI assistants, enabling natural language queries about your Tesla data.
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"]
}
}
}
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
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
Vehicle Info:
get_basic_car_information - VIN, model, firmwareget_current_car_status - Real-time status, location, batteryget_software_update_history - Firmware update timelineBattery & Health:
get_battery_health_summary - Current health metricsget_battery_degradation_over_time - Historical capacityget_daily_battery_usage_patterns - Usage patternsget_tire_pressure_weekly_trends - Tire pressure trackingDriving Analytics:
get_monthly_driving_summary - Monthly statisticsget_daily_driving_patterns - Driving habitsget_longest_drives_by_distance - Top tripsget_total_distance_and_efficiency - Lifetime statsget_drive_summary_per_day - Daily summariesEfficiency:
get_efficiency_by_month_and_temperature - Se...