Tesla MCP Server
@robcerda
关于 Tesla MCP Server
MCP Server for Tesla Products, specifically using the Owner API
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"tesla-mcp-server": {
"command": "uv",
"args": [
"venv"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Tesla MCP Server?
Tesla MCP Server is a Model Context Protocol (MCP) server that connects Claude with the Tesla Owner API. It provides tools for authentication and data retrieval for Tesla vehicles and solar systems, intended for developers using Claude Desktop.
How to use Tesla MCP Server?
Install dependencies with uv, clone the repo, create a virtual environment, and sync. Configure Claude Desktop by running mcp install src/tesla_mcp_server/server.py --name "Tesla" --with-editable . then restart Claude. On first use, authenticate via a browser; a refresh_token.txt file is created for future sessions.
Key features of Tesla MCP Server
- Integrates Claude Desktop with the Tesla Owner API
- OAuth2 authentication with browser-based login
- Retrieve vehicle and solar system data
- Send commands to vehicles
- Local development with
mcp run src/tesla_mcp_server/server.py - Refresh token persistence across sessions
Use cases of Tesla MCP Server
- Ask Claude for your Tesla vehicle’s current status
- Command your Tesla to start climate or charging
- Check your Tesla solar system’s energy production
- Retrieve historical solar generation data
- Get a summary of all your Tesla systems in one query
FAQ from Tesla MCP Server
What does Tesla MCP Server do?
It acts as a bridge between Claude and the Tesla Owner API, allowing Claude to read vehicle and solar system data and send commands.
How do I authenticate with Tesla?
On first run, the server opens a browser for Tesla OAuth2 login. After approval, a refresh_token.txt file is saved and reused automatically.
What are the system requirements?
Python 3.12 or higher, plus the MCP Python SDK, httpx, and python-dotenv. A virtual environment is recommended.
Is my refresh token safe?
The refresh_token.txt file should never be committed to version control. It contains credentials for continued access without re‑authentication.
Can I send commands to my car?
Yes, the send_command tool allows sending commands such as climate control or charging start/stop to a specified vehicle.
其他 分类下的更多 MCP 服务器
Codelf
unbugA search tool helps dev to solve the naming things problem.
ICSS
chokcoco不止于 CSS
Awesome Mcp Servers
punkpeyeA collection of MCP servers.
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
评论