Hyundai Bluelink / Kia Connect

io.github.mattoddie由 GitHub 账号 mattoddie 发布v0.3.1更新于 Oct 29, 2026

Check your Hyundai or Kia's charge, range, locks and location, pre-heat it and manage charging.

已验证STDIO仅桌面位置与生活效率与工作流

概览

AI 生成的概览

面向 Hyundai Bluelink、Kia Connect 与 Genesis Connect 的非官方 MCP 服务器,让助手读取车辆电量、续航、门锁与位置,并可选发送远程指令。

可以做什么
  • 列出账户下的车辆,读取最近上报的电量、燃油、续航、充电、空调、门锁、车窗、轮胎与告警状态
  • 唤醒车辆获取实时数据,查询先前指令的执行结果,读取某天的行程或某月的汇总
  • 读取每日用于行驶、空调、电子设备与电池养护的能耗
  • 在开启位置功能后获取经纬度、地图链接与可选地址
  • 在开启写入后发送指令:锁车、启动或停止空调、启动或停止充电、设置充电上限、闪灯寻车
  • 仅在单独开启解锁开关时解锁车门
适用场景
适合拥有 Hyundai、Kia 或 Genesis 车辆、且 Bluelink 或 Kia Connect 应用账户可正常使用的用户,想通过对话查询电量、续航、门锁或行程,或远程预热车厢、管理充电。
运行要求
以 stdio 方式在本机运行(uv 或 Docker 镜像,或 Claude Desktop 扩展包)。需要 Bluelink、Kia Connect 或 Genesis Connect 应用账户:BLUELINK_USERNAME 与 BLUELINK_PASSWORD,欧洲和加拿大发送指令还需 BLUELINK_PIN。非默认品牌和地区需设置 BLUELINK_BRAND 与 BLUELINK_REGION。HTTP 模式需要 MCP_AUTH_TOKEN。
安装前请注意
需要车辆账户凭据和 PIN;缓存的令牌文件含会话令牌,应按密码对待。写入默认关闭,BLUELINK_ALLOW_WRITES 开启指令,BLUELINK_ALLOW_UNLOCK 开启解锁,可能移动或打开车辆。位置默认关闭,开启会暴露住址与停车地点;可选地理编码会把坐标发送给 OpenStreetMap。频繁实时刷新会耗损 12V 电池并触及接口限额。属非官方、未公开的接口。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Hyundai Bluelink / Kia Connect,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[bluelink-mcp logo]

bluelink-mcp

Talk to your Hyundai or Kia.

An open-source Model Context Protocol server for Hyundai Bluelink and Kia Connect (formerly UVO). It lets Claude and other AI assistants check your car's charge, fuel, range, locks and location, and, if you allow it, pre-heat the cabin, lock the doors or start charging.

[CI] [Release] [Container image] [License: MIT]

bluelink-mcp.mattoddie.dev

Quick start · Documentation · Tool reference · Contributing


It's built on hyundai_kia_connect_api, the library behind the Home Assistant Kia/Hyundai integration. Hyundai and Kia work in most regions, and Genesis in some; see Compatibility. The name and settings say Bluelink (BLUELINK_*), but they cover Kia Connect too: for a Kia, set BLUELINK_BRAND=kia.

"Is the car charged, and is it locked?" The Santa Fe is at 80% (about 52 km of electric range, 610 km total with fuel) and finished charging at 06:10. All doors are locked and the windows are closed. Bluelink last heard from it 25 minutes ago.

"Warm the EV6 up for 15 minutes." Done. The Kia confirmed it, so the cabin is heating to 21 °C for 15 minutes. It's at 64%, so there's plenty of charge for that.

[!NOTE] This is an unofficial project and isn't affiliated with Hyundai, Kia or Genesis. Their APIs are undocumented and change without notice.

Tools

ToolWhat it doesNeeds
list_vehiclesVehicles on the account
get_vehicle_statusLast reported battery/fuel, range, charging, climate, locks, doors, windows, tyres, warnings and charging schedule. Doesn't wake the car.
refresh_vehicle_statusWakes the car for live data. Rate limited (see below).
get_vehicle_locationLatitude/longitude, map link and optional addresslocation
get_tripsA day's trips, or a month's summary
get_energy_usageDaily energy use for driving, climate, electronics and battery care
get_command_statusResult of an earlier command
lock_vehicleLock the doorswrites
start_climate / stop_climatePre-condition the cabin: temperature, duration, defrost, heated rear window/mirrors and steering wheel, seatswrites
start_charging / stop_chargingStart or stop chargingwrites
set_charge_limitsAC/DC charge limits (EVs; most plug-in hybrids don't support this)writes
flash_hazard_lightsFlash the hazards to find the carwrites
unlock_vehicleUnlock the doorswrites + unlock

Every tool takes an optional vehicle (name, VIN or ID). You can leave it out if the account has one car.

Quick start

You need a Hyundai Bluelink or Kia Connect account that works in the app, and uv or Docker. On Claude Desktop you need neither: see below. The defaults are for a Hyundai in Europe. For a Kia, add BLUELINK_BRAND=kia, and outside Europe set BLUELINK_REGION.

Claude Desktop extension

Download bluelink-mcp-<version>.mcpb from the latest release and open it, or drag it onto Settings → Extensions in Claude Desktop. Fill in your login, region and brand, and choose what Claude may do. One bundle works on macOS, Windows and Linux: Claude Desktop installs Python and the dependencies itself. See Claude Desktop.

Claude Code with uv (stdio)

sh
git clone https://github.com/mattoddie/bluelink-mcp && cd bluelink-mcpclaude mcp add bluelink \  -e [email protected] \  -e BLUELINK_PASSWORD='your-password' \  -e BLUELINK_PIN=1234 \  -e BLUELINK_ALLOW_WRITES=true \  -- uv run --directory "$PWD" bluelink-mcp

For a Kia, add -e BLUELINK_BRAND=kia. Other stdio clients use the same command (uv run --directory /path/to/bluelink-mcp bluelink-mcp) with the same environment variables.

Docker (Streamable HTTP)

sh
cp example.env .env   # fill in BLUELINK_* (BLUELINK_BRAND=kia for a Kia) and a random MCP_AUTH_TOKEN (openssl rand -hex 32)docker compose up -dclaude mcp add --transport http bluelink http://<docker-host>:8080/mcp \  --header "Authorization: Bearer <MCP_AUTH_TOKEN>"

Then ask "How's the car doing?"

bluelink-mcp is also listed in the MCP Registry as io.github.mattoddie/bluelink-mcp, so clients that browse the registry can install the Docker image (over stdio) or the Claude Desktop bundle from there.

Configuration

All settings are environment variables; example.env lists and explains them. BLUELINK_PASSWORD, BLUELINK_PIN and MCP_AUTH_TOKEN can also be read from files with BLUELINK_PASSWORD_FILE, BLUELINK_PIN_FILE and MCP_AUTH_TOKEN_FILE.

VariableDefault
BLUELINK_USERNAME, BLUELINK_PASSWORDYour Bluelink or Kia Connect app login (required)
BLUELINK_PINYour app PIN. Europe needs it for remote commands.
BLUELINK_REGIONeuropeeurope, europe-cci, usa, canada, australia, nz, india, china, brazil
BLUELINK_BRANDhyundaihyundai (Bluelink), kia (Kia Connect / UVO), genesis (Genesis Connect)
BLUELINK_LANGUAGEenResponse language (Europe)
BLUELINK_ALLOW_LOCATIONfalseRegister get_vehicle_location
BLUELINK_LOCATION_PRECISION4Decimal places of latitude/longitude to return (4 is about 10 m)
BLUELINK_GEOCODEfalseAdd a street address to the location via OpenStreetMap (needs location)
BLUELINK_ALLOW_WRITESfalseRegister the command tools
BLUELINK_ALLOW_UNLOCKfalseAlso register unlock_vehicle (needs writes)
BLUELINK_AUDIT_LOGRecord every command and live refresh as JSON Lines: a file path, or stderr
BLUELINK_MIN_REFRESH_MINUTES10Minimum gap between refresh_vehicle_status calls per car
BLUELINK_MIN_COMMAND_SECONDS60Minimum gap before sending the same command to the same car again
BLUELINK_CACHE_SECONDS60How long a status read is reused
BLUELINK_LOGIN_RETRY_MINUTES5Wait after Bluelink rejects a login before trying again
BLUELINK_TOKEN_FILE~/.local/state/bluelink-mcp/token.json (/data/token.json in Docker)Login token cache. Set it empty to turn caching off.
MCP_TRANSPORTstdio (http in Docker)stdio or http
LOG_LEVELinfodebug, info, warning or error
MCP_HTTP_HOST, MCP_HTTP_PORT127.0.0.1, 8080HTTP listen address
MCP_AUTH_TOKENBearer token clients must send (at least 16 characters). Required for http.
MCP_ALLOWED_HOSTSOptional Host header allow-list for DNS rebinding protection
MCP_ALLOWED_ORIGINSOrigins browser-based clients may use, when MCP_ALLOWED_HOSTS is set

Which region and brand?

In the UK and the rest of Europe, start with europe, the classic Bluelink and Kia Connect Europe service. Some newer Hyundais and Kias use the CCI/"OneApp" backend instead. If login or status fails with europe, try europe-cci.

Not every brand is available everywhere. New Zealand is Kia only, Brazil is Hyundai only, and Genesis doesn't work with europe-cci. See the compatibility table.

Being kind to your car (and your account)

  • Reads come from Bluelink, not the car. get_vehicle_status returns what the car last uploaded, which happens when it is switched off, while charging and after commands. Check last_updated_at.
  • Waking the car costs something. refresh_vehicle_status makes the car's modem report in. Done often, this drains the 12V battery, and Hyundai and Kia limit API calls per day in Europe. It is rate limited per car (BLUELINK_MIN_REFRESH_MINUTES).
  • Logins are cached. Repeated password logins can get an account temporarily blocked, so the server keeps the token in BLUELINK_TOKEN_FILE (mode 0600). The file contains your session tokens (not your password or PIN), so treat it like a password. After Bluelink rejects a login the server discards the cache and waits BLUELINK_LOGIN_RETRY_MINUTES before trying again.
  • Commands are slow. They travel over the mobile network and usually take 20–60 s. With wait=true (the default), the tool waits up to about 60 s for the car to confirm, then returns pending with an action_id to check later; other tools keep working meanwhile. timeout means the car didn't answer, not necessarily that nothing happened.

Safety

The server is read-only unless you set BLUELINK_ALLOW_WRITES=true, and unlock_vehicle needs its own BLUELINK_ALLOW_UNLOCK=true switch. Unlocking also needs your confirmation on the server side (see Unlocking), and each command is rate limited per car. Tools carry MCP annotations (read-only, destructive) so clients can ask before running them, and BLUELINK_AUDIT_LOG records every command in an audit log. In HTTP mode every request needs the bearer token, so don't expose the port to the internet without TLS in front of it.

Documentation

Getting startedFrom nothing to your first question
Connecting MCP clientsClaude Code, Claude Desktop, VS Code, Cursor, Codex, stdio
ConfigurationEvery setting, and choosing a region and brand
Using bluelink-mcpExample questions, cached vs live data, commands
Tool referenceEvery tool and argument
Security · Deployment · TroubleshootingRunning it well

Development

sh
uv syncuv run pytestuv run ruff check . && uv run ruff format --check .

The tests use a fake vehicle manager, so they need no car account or network. See Development and the contributing guide.

License

MIT

来源:README.md,提交 2686613

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

1
  1. v0.3.1最新Oct 22, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分