MCP Catalogs
首页teslamate-mcp screenshot

teslamate-mcp

by cobanov·127·综合分 46

TeslaMate MCP服务器提供18个预定义查询和自定义SQL功能,让AI助手安全访问特斯拉车辆数据。

ai-llmdatabasedeveloper-tools
16
Forks
0
活跃 Issue
6 个月前
最近提交
2 天前
收录于

概述

这个MCP服务器连接到TeslaMate数据库,通过模型上下文协议让AI助手查询特斯拉车辆数据。它既提供电池健康、效率、充电模式和驾驶分析等预定义查询,也带有内置验证的安全自定义SQL执行功能。服务器既支持通过命令行的本地部署,也支持带有可选身份验证的HTTP远程访问。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:特斯拉车主可以通过AI助手查询车辆电池健康和效率趋势
:AI助手可以分析驾驶模式并提供效率优化建议
:用户可以通过执行针对其特斯拉数据的特定SQL查询获得自定义车辆分析
:什么是TeslaMate,这个MCP服务器如何连接到它?
:这个MCP服务器提供的数据访问有多安全?

什么时候选它

如果你是特斯拉车主且在使用 TeslaMate,希望通过 AI 助手查询车辆数据而不需要自己写 SQL,可以选择这个服务器。

什么时候不要选它

如果你需要写入特斯拉数据,或者没有运行 TeslaMate 和 PostgreSQL,则不适合选择这个服务器。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • 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

可对比工具

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

安装

本地安装(Cursor/Claude Desktop)

git clone https://github.com/cobanov/teslamate-mcp.git
cd teslamate-mcp
cp env.example .env
# 编辑.env文件,添加你的DATABASE_URL
uv sync

配置MCP客户端:

{
  "mcpServers": {
    "teslamate": {
      "command": "uv",
      "args": ["--directory", "/path/to/teslamate-mcp", "run", "main.py"]
    }
  }
}

远程安装(Docker)

git clone https://github.com/cobanov/teslamate-mcp.git
cd teslamate-mcp
cp env.example .env
# 编辑.env文件,添加你的DATABASE_URL
docker-compose up -d

服务器地址:http://localhost:8888/mcp

FAQ

什么是TeslaMate,这个MCP服务器如何连接到它?
TeslaMate是一个开源的自托管特斯拉车辆数据记录器。这个MCP服务器直接连接到你的TeslaMate PostgreSQL数据库,为AI助手提供车辆数据访问权限。
这个MCP服务器提供的数据访问有多安全?
服务器实现了多项安全措施:只允许只读SELECT查询,所有SQL查询都经过验证,并且可以为远程部署启用可选的承载令牌身份验证。

teslamate-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。