
teslamate-mcp
by cobanov·★ 127·综合分 46
TeslaMate MCP服务器提供18个预定义查询和自定义SQL功能,让AI助手安全访问特斯拉车辆数据。
概述
这个MCP服务器连接到TeslaMate数据库,通过模型上下文协议让AI助手查询特斯拉车辆数据。它既提供电池健康、效率、充电模式和驾驶分析等预定义查询,也带有内置验证的安全自定义SQL执行功能。服务器既支持通过命令行的本地部署,也支持带有可选身份验证的HTTP远程访问。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果你是特斯拉车主且在使用 TeslaMate,希望通过 AI 助手查询车辆数据而不需要自己写 SQL,可以选择这个服务器。
什么时候不要选它
如果你需要写入特斯拉数据,或者没有运行 TeslaMate 和 PostgreSQL,则不适合选择这个服务器。
此 server 暴露的工具
从 README 抽取出 12 个工具get_basic_car_informationGet basic vehicle information including VIN, model, and firmware version
get_current_car_statusRetrieve real-time vehicle status including location and battery level
get_software_update_historyView timeline of all software updates for the vehicle
get_battery_health_summaryGet current battery health metrics and condition
get_battery_degradation_over_timeAnalyze historical battery capacity degradation
get_monthly_driving_summaryGet monthly driving statistics and summaries
get_daily_driving_patternsAnalyze daily driving habits and routines
get_total_distance_and_efficiencyGet lifetime distance traveled and efficiency metrics
get_efficiency_by_month_and_temperatureAnalyze efficiency patterns across months and temperatures
get_charging_by_locationAnalyze charging patterns by location
get_database_schemaView the TeslaMate database structure and tables
run_sqlExecute custom SELECT queries against the TeslaMate database
可对比工具
安装
本地安装(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 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。