Skip to content

Changelog

All notable changes to this project are documented here. The format is based on Keep a Changelog, and the project follows Semantic Versioning.

For bluelink-mcp, the “public API” is the set of tool names, their arguments and the configuration variables. Renaming or removing any of these is a breaking change.

This release updates dependencies. Tools, arguments and settings are unchanged: bluelink-mcp still has 24 tools (7 read, 16 write and 1 unlock).

  • Updated hyundai_kia_connect_api to 5.2.1, which fixes several things for European cars: whether an EV is charging, the plug state when the connector lock is idle, seat and steering wheel heating on older climate commands, and the time of the last update, which now comes from the car instead of the server’s clock. In the USA, vented Hyundai windows now show as open.

This release renames every tool with a bluelink_ prefix and aligns arguments, output and the token file with the other mattoddie MCP servers ahead of 1.0. bluelink-mcp has 24 tools (7 read, 16 write and 1 unlock). Read the Breaking entries before upgrading.

  • Breaking: every tool name now starts with bluelink_, so the names stay distinct next to other MCP servers: list_vehicles → bluelink_list_vehicles, get_vehicle_status → bluelink_get_vehicle_status, refresh_vehicle_status → bluelink_refresh_vehicle_status, get_vehicle_location → bluelink_get_vehicle_location, get_trips → bluelink_get_trips, get_energy_usage → bluelink_get_energy_usage, get_command_status → bluelink_get_command_status, lock_vehicle → bluelink_lock_vehicle, unlock_vehicle → bluelink_unlock_vehicle, start_climate → bluelink_start_climate, stop_climate → bluelink_stop_climate, start_charging → bluelink_start_charging, stop_charging → bluelink_stop_charging, set_charge_limits → bluelink_set_charge_limits, start_battery_conditioning → bluelink_start_battery_conditioning, stop_battery_conditioning → bluelink_stop_battery_conditioning, open_charge_port → bluelink_open_charge_port, close_charge_port → bluelink_close_charge_port, set_charging_current → bluelink_set_charging_current, set_charging_schedule → bluelink_set_charging_schedule, set_departure_schedule → bluelink_set_departure_schedule, close_windows → bluelink_close_windows, flash_hazard_lights → bluelink_flash_hazard_lights, sound_horn_and_flash_lights → bluelink_sound_horn_and_flash_lights.
  • Breaking: bluelink_get_energy_usage takes hours (a number, default 168, up to 744) instead of days. The car reports whole days, so it is rounded up to whole days.
  • Breaking: bluelink_list_vehicles and bluelink_get_energy_usage return {total, returned, items} instead of a bare list.
  • Breaking: the default BLUELINK_TOKEN_FILE is now $XDG_CONFIG_HOME/bluelink-mcp/tokens.json (falling back to ~/.config/bluelink-mcp/tokens.json) instead of $XDG_STATE_HOME/bluelink-mcp/token.json, and /data/tokens.json instead of /data/token.json in the Docker image. The old file isn’t read, so the server logs in once more after upgrading; delete the old file.

This release applies a code review and adds nine command tools, for 24 tools in all (7 read, 16 write and 1 unlock). It has breaking changes: check the Breaking: entries under Changed, especially the Host/Origin check on the HTTP transport.

  • set_charging_schedule and set_departure_schedule change scheduled off-peak charging and the two departure times (needs BLUELINK_ALLOW_WRITES). Settings you leave out keep their current values.
  • close_windows closes all four windows (needs BLUELINK_ALLOW_WRITES). There is deliberately no tool to open them.
  • start_battery_conditioning and stop_battery_conditioning warm or cool the high-voltage battery, in europe-cci (needs BLUELINK_ALLOW_WRITES).
  • open_charge_port, close_charge_port and set_charging_current (100, 90 or 60% of the AC current) (need BLUELINK_ALLOW_WRITES). The status shows the current limit as charging_current_percent, replacing charging_current_level.
  • sound_horn_and_flash_lights sounds the horn and flashes the hazard lights (needs BLUELINK_ALLOW_WRITES).
  • Breaking: the HTTP transport now always checks the Host and Origin headers. Without MCP_ALLOWED_HOSTS, a server listening on loopback accepts only localhost, 127.0.0.1 and [::1]; on any other address (such as 0.0.0.0 in the Docker image) it accepts any Host but refuses every browser request (any Origin header, including empty and null ones) and logs a warning. Set MCP_ALLOWED_HOSTS to the names clients use.
  • Breaking: get_command_status accepts only action_id values of up to 128 letters, digits and _ . : + / = -.
  • get_vehicle_status gives units for the outside, cabin, battery and departure temperatures (°F in the USA), the service distances and the charging times. The charging times are now time_to_full, time_to_full_fast, time_to_full_portable and time_to_full_station, replacing the minutes_to_full* fields.
  • get_trips without a date uses today in the car’s time zone instead of the server’s.
  • The HTTP server accepts at most 32 connections at a time and closes idle keep-alive connections after 5 seconds. MCP_ALLOWED_ORIGINS entries may give the default port (https://claude.ai:443), and bare IPv6 addresses in MCP_ALLOWED_HOSTS match bracketed Host headers.
  • Requires hyundai-kia-connect-api 5.1.2 or later (below 6).
  • flash_hazard_lights (and the new horn tool) are refused without contacting the car in regions whose API lacks them (Canada, and Kia in the USA), and commands the library hasn’t enabled for a region or brand report that clearly instead of an unexpected error, without counting against the command rate limit.
  • The seat arguments of start_climate now say that in the USA and Canada a seat left out is turned off.
  • After a failed login or network error, get_vehicle_status could return a status with most fields missing until the cache expired, because the new session’s empty state counted as fresh.
  • The server no longer checks the Bluelink session before every request. In Canada and europe-cci that check is a real request, so waiting for a command made one every 5 seconds. It now checks every 5 minutes, when the token is about to expire, or after a failed request.
  • Unlocks refused before the user was asked (rate limit, unknown or ambiguous car, login failure) are now in the audit log, and VINs in audit log errors and in tool errors are shortened to their last 6 characters.
  • Vehicle state is now formatted while the client lock is held, so a status can’t mix data from before and after a concurrent update.
  • Each release now has a wheel and a hash-locked requirements.txt, so you can install bluelink-mcp without Docker, with Homebrew (brew install mattoddie/tap/bluelink-mcp) or pip. See Running without Docker.
  • bluelink-mcp version prints the version.
  • Genesis cars in BLUELINK_REGION=europe-cci, from hyundai-kia-connect-api 5.1.2.
  • Updated opentelemetry-api to 1.45.2 (CVE-2026-126360) and soupsieve to 4.1 (CVE-2026-126190).
  • MCP Registry listing. Stable releases are published to the MCP Registry as io.github.mattoddie/bluelink-mcp, with the Docker image (run over stdio) and the Claude Desktop bundle as packages. The entry is described by server.json; the image carries the io.modelcontextprotocol.server.name label the registry checks.
  • Claude Desktop extension. Each release has a bluelink-mcp-X.Y.Z.mcpb bundle that installs bluelink-mcp into Claude Desktop with a settings form for the login, region, brand, the three switches and the audit log. It uses the MCPB uv runtime, so one bundle works on macOS, Windows and Linux. Build it with uv run python scripts/mcpb.py pack <version>.
  • Audit log. BLUELINK_AUDIT_LOG (a file path or stderr) appends a JSON line for every command and live refresh, including failed and refused ones: the time, tool, arguments (unlock confirmation redacted, VINs shortened), the car’s name, action_id and status, and the outcome. The file is created with mode 0600.
  • An empty variable, or one holding only a ${user_config.<key>} placeholder, counts as not set. Previously an empty BLUELINK_REGION, BLUELINK_BRAND or MCP_TRANSPORT stopped the server.

This release follows a security review. It has breaking changes; check the first section before upgrading.

  • Location is off by default. get_vehicle_location is only registered with BLUELINK_ALLOW_LOCATION=true. Add it to keep asking where the car is.
  • BLUELINK_GEOCODE=true needs BLUELINK_ALLOW_LOCATION=true, or the server refuses to start.
  • Coordinates are rounded to BLUELINK_LOCATION_PRECISION decimal places, 4 by default (about 10 m). Set a higher value for more precision.
  • unlock_vehicle needs confirmation. The server asks the user through MCP elicitation when the client supports it. Otherwise the call fails until the assistant passes the new confirm argument with the car’s name or the last 6 characters of its VIN.
  • Commands are rate limited: the same command can’t be sent to the same car again within BLUELINK_MIN_COMMAND_SECONDS (default 60).
  • MCP_AUTH_TOKEN must be at least 16 characters in HTTP mode, or the server refuses to start.
  • BLUELINK_MIN_REFRESH_MINUTES must be at least 1.
  • /mcp accepts only POST with a JSON body of up to 4 MiB (405, 400 or 413 otherwise).
  • With MCP_ALLOWED_HOSTS set, an Origin header that is empty or null is now rejected, and origins on an allowed host (on its default port, or the port listed) are accepted without being listed in MCP_ALLOWED_ORIGINS.
  • BLUELINK_ALLOW_LOCATION and BLUELINK_LOCATION_PRECISION.
  • BLUELINK_MIN_COMMAND_SECONDS (default 60): minimum gap before the same command goes to the same car again. Failed attempts count, as they may still have reached the car.
  • BLUELINK_PASSWORD_FILE, BLUELINK_PIN_FILE and MCP_AUTH_TOKEN_FILE, to read secrets from files such as Docker secrets.
  • LOG_LEVEL (debug, info, warning, error; default info). The troubleshooting docs already told users to turn on debug logging, which wasn’t possible.
  • bluelink-mcp healthcheck, used by the image’s HEALTHCHECK. It checks MCP_HTTP_HOST and MCP_HTTP_PORT, using loopback when the server listens on all addresses.
  • CI audits every locked dependency with pip-audit.
  • refresh_vehicle_status is no longer annotated read-only, since it wakes the car, so clients ask before running it.
  • The Bearer scheme in Authorization is matched case-insensitively, and a 401 response carries WWW-Authenticate: Bearer.
  • MCP_ALLOWED_HOSTS entries without a port match any port in the Host header.
  • The Docker base images are pinned by digest.
  • After Bluelink asked for a one-time passcode, every tool call made a new full password login, which risks getting the account locked. The server now waits BLUELINK_LOGIN_RETRY_MINUTES before trying again, as after a rejected login.
  • Only a rejected login (or a passcode request) starts the login wait. Network errors no longer lock the server out for five minutes, and get their own message.
  • The token cache no longer stores the Bluelink password and PIN. Caches written by older versions are rewritten without them on the next request.
  • The Bluelink library’s logging, which includes whole responses with tokens, the VIN and the location (some at error level), is only shown with LOG_LEVEL=debug.
  • unlock_vehicle is confirmed on the server side, commands are rate limited, and location is opt-in and rounded (see above).
  • Host and Origin checks follow the same rules as the other mattoddie MCP servers, and reject empty, null and malformed origins.
  • The security docs now call out car nicknames, OpenStreetMap addresses and Bluelink’s warning texts as untrusted input.
  • The README, docs, website and server instructions now say that bluelink-mcp supports Kia Connect (formerly UVO) as well as Hyundai Bluelink, and Genesis Connect in some regions. This already worked with BLUELINK_BRAND=kia or genesis; only the wording was Hyundai-only. The compatibility page has a new table of brands by region, and lists Genesis in Australia, which the library supports. Names, settings and tools are unchanged.
  • MCP_ALLOWED_ORIGINS, an Origin allow-list for HTTP. Before, setting MCP_ALLOWED_HOSTS made every request with an Origin header fail with 403.
  • BLUELINK_LOGIN_RETRY_MINUTES (default 5): how long to wait after a failed login before trying again.
  • In the USA, start_climate now sends the temperature in °F (62-82), as Bluelink USA expects. It was sent as °C, so 21 °C asked for 21 °F (Kia: the lowest setting). The tool still takes °C.
  • Waiting for a command no longer blocks every other tool. The server polls for the car’s answer without holding its lock, for up to about 60 s instead of 90 s, and returns pending with the action_id if the car hasn’t answered.
  • fuel_range in the vehicle status now includes its unit.
  • A blank vehicle argument is treated as not given, instead of matching an arbitrary car.
  • A corrupt or unexpected token cache is ignored with a warning instead of breaking every request, and an unsupported region and brand combination is reported at startup.
  • Concurrent server processes no longer share a temporary file when writing the token cache.
  • The token cache’s copy of the password and PIN is always replaced with the configured ones. After a password change, the library’s fallback login used the stale password from the cache on every request, which risked getting the account locked.
  • After a failed login, the server deletes the token cache and doesn’t try to log in again for BLUELINK_LOGIN_RETRY_MINUTES.
  • A failed refresh_vehicle_status now counts against its rate limit, so failures can’t wake the car repeatedly.
  • Errors from the Bluelink library are reported as fixed messages with the error type, instead of passing through text that could include parts of Bluelink’s responses. Details are logged at debug level.
  • With several cars on the account, unlock_vehicle needs the exact name, VIN or ID; part of a name no longer matches.
  • The documentation now says that the token cache contains the PIN as well as the password.
  • The Docker image now runs on Python 3.14, and CI tests on Python 3.12, 3.13 and 3.14.
  • MCP server for Hyundai Bluelink (and Kia Connect and Genesis Connect), built on hyundai_kia_connect_api, with 15 tools: vehicle status, live refresh, location, trips, daily energy use, command status, lock and unlock, climate, start/stop charging, charge limits and hazard lights.
  • Three access levels: read-only by default, BLUELINK_ALLOW_WRITES for commands and BLUELINK_ALLOW_UNLOCK for unlocking.
  • Regions Europe (classic and CCI), USA, Canada, Australia, New Zealand, India, China and Brazil, and the brands Hyundai, Kia and Genesis.
  • A cached login token (BLUELINK_TOKEN_FILE) to avoid repeated logins, a short status cache (BLUELINK_CACHE_SECONDS) and a per-car rate limit on waking the car (BLUELINK_MIN_REFRESH_MINUTES).
  • Commands that wait for the car to confirm, or return an action ID to check later.
  • Streamable HTTP (stateless) and stdio transports, with bearer-token auth and a Host header allow-list for HTTP.
  • Multi-arch Docker image (linux/amd64, linux/arm64) published to GHCR on each release, with SBOM and provenance attestation.
  • Documentation and website, including a tool reference generated from the code.