Skip to main content
Glama

Tesla Fleet MCP

Public reference for a Streamable HTTP MCP server that can talk to one Tesla vehicle through Tesla's official Fleet API.

This repository is the public view of the project. It includes:

  • Architecture notes and Mermaid process-flow diagrams in docs/architecture.md

  • A minimal MCP server entry point you can run locally with a mock vehicle backend

  • Secret-scanning standard v1 scaffolding

It does not include private operator hosts, account identifiers, PEM keys, encrypted token stores, or a live Fleet API adapter. A private working copy stays separate.

What v1 can do

Tools:

  • send_navigation — send an address to vehicle navigation

  • vehicle_status — climate and vehicle state (cached by default; set live for a fresh read)

  • charge_status — charge state the same way

  • climate_on / climate_off — start or stop preconditioning

  • lock / unlock — create a pending door request (never call Tesla from the tool itself)

Safety model:

  • /mcp requires Authorization: Bearer

  • Unknown Host / Origin values are rejected

  • There is no approve or confirm MCP tool

  • Door lock and unlock wait for a human confirm page off public ingress; GET never moves the locks

  • Production deployments keep TESLA_CLIENT_SECRET, refresh tokens, and the command-signing key on hardware you control

Related MCP server: Secure Public API MCP Server

Quick start (mock backend)

Requires Node.js 22 or newer.

npm install
npm test
npm run build
npm start

Defaults:

  • Bind host: localhost

  • Port: 3000

  • Health: GET /health

  • MCP: POST /mcp with Authorization: Bearer matching TESLA_MCP_BEARER_TOKEN (default demo value is for local use only)

Example:

curl -sS http://localhost:3000/health

Set TESLA_MCP_BEARER_TOKEN and optional MCP_ALLOWED_HOSTS before exposing anything beyond your machine.

Architecture

Read docs/architecture.md for:

  1. Trust zones and system boundary

  2. One-time OAuth and virtual-key pairing sequence

  3. Steady-state MCP tools and human door confirmation

  4. Essential platform constraints versus v1 scaffolding to collapse in v2

Secret scanning

Follow docs/standards/secret-scanning.md.

scripts/install-hooks.sh

Never commit with --no-verify. Never commit secrets, keys, tokens, or personal data.

License

Apache License 2.0. See LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables MCP clients to interact with any OpenAPI-defined REST API through a serverless AWS Lambda deployment. Supports multiple authentication methods and provides cost-effective, scalable access to third-party APIs through natural language.
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      OAuth-protected FastMCP server exposing eight read-only public APIs (currency, weather, art, pets, dictionary, random images, vehicles) via MCP tools, with optional Gemini LLM-based routing for query selection.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables ChatGPT, Claude, and other MCP clients to read, search, add, update, and delete entries in a personal specialty coffee collection, plus retrieve favorites and collection statistics. Connects over Streamable HTTP with OAuth-based owner approval and dynamically registered clients, so no API keys are needed.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Bridges Claude.ai and Claude Desktop to self-hosted OpenClaw AI assistants through an OAuth 2.1-secured HTTP endpoint. Enables sending chat messages, tracking long-running tasks, checking gateway health, and routing requests across multiple isolated instances from a single connection.
      250 npm
      MIT