unofficial-polestar-mcp

unofficial-polestar-mcp

MCP server for controlling Polestar vehicles via natural language, enabling climate, charging, locks, location, and vehicle status management through Claude.

Category
Visit Server

README

unofficial-polestar-mcp

[!IMPORTANT] Disclaimer: This is an independent, community-built project. It is not affiliated with, associated with, endorsed by, or supported by Polestar in any way. "Polestar" is a trademark of its respective owner and is used here only to describe compatibility. This project relies on unofficial, reverse-engineered APIs that may break at any time. Use at your own risk.

MCP server for controlling your Polestar from Claude — climate, charging, locks, location and vehicle status via natural language.

unofficial-polestar-mcp is a Model Context Protocol server that connects Claude to your Polestar. Ask Claude to precondition the cabin, set charge limits, check battery and range, find where you parked, or flash the lights — all through the same cloud APIs the official app uses. Safety-critical actions (unlock, open windows) require explicit confirmation. Built on the unofficial-polestar-api library. Not affiliated with Polestar.

Tools

Category Tools
Vehicles list_vehicles
Status get_battery, get_location, get_exterior, get_odometer, get_health, get_availability, get_weather, wake_vehicle
Climate get_climate, start_climate (temperature + seat/steering-wheel heating), stop_climate
Charging get_charging_settings, set_charge_limit, set_amp_limit, start_charging, stop_charging
Locks lock_car, unlock_car, unlock_trunk, honk_and_flash
Windows open_windows*, close_windows

* Requires explicit user confirmation (confirm=true) before the command is sent.

If your account has a single vehicle it is selected automatically; otherwise pass a vin argument or set POLESTAR_VIN.

Installation

Requires Python 3.11+.

git clone https://github.com/<you>/unofficial-polestar-mcp
cd unofficial-polestar-mcp
python3 -m venv .venv
.venv/bin/pip install -e .

Configuration

The server authenticates with your Polestar account credentials via environment variables:

Variable Required Description
POLESTAR_EMAIL yes Polestar account email
POLESTAR_PASSWORD yes Polestar account password
POLESTAR_VIN no Default vehicle when the account has several
POLESTAR_TOKEN_FILE no Token cache path (default ~/.polestar-mcp/tokens.json)

Tokens are cached on disk (mode 0600) so restarts reuse the refresh token instead of re-running the full login.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "polestar": {
      "command": "/path/to/unofficial-polestar-mcp/.venv/bin/polestar-mcp",
      "env": {
        "POLESTAR_EMAIL": "you@example.com",
        "POLESTAR_PASSWORD": "your-password"
      }
    }
  }
}

Claude Code

claude mcp add polestar \
  -e POLESTAR_EMAIL=you@example.com \
  -e POLESTAR_PASSWORD=your-password \
  -- /path/to/unofficial-polestar-mcp/.venv/bin/polestar-mcp

Example prompts

  • "How charged is my Polestar and what's the range?"
  • "Precondition the car to 21° and turn on the driver's seat heater."
  • "Set the charge limit to 80% and start charging now."
  • "Where did I park?"
  • "Flash the lights, I can't find the car."

Safety & disclaimer

  • Unlocking the car or trunk and opening windows are gated behind an explicit confirmation step — Claude must ask you before sending those commands.
  • This project uses unofficial, reverse-engineered APIs. They can break or change at any time. Use at your own risk.
  • Not affiliated with, endorsed by, or supported by Polestar.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured