MCP.so
ログイン

Tesla MCP Server

@robcerda

Tesla MCP Server について

MCP Server for Tesla Products, specifically using the Owner API

基本情報

カテゴリ

その他

ランタイム

python

トランスポート

stdio

公開者

robcerda

設定

以下の設定を使って、このサーバーを 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.

コメント

「その他」の他のコンテンツ