Skip to content

Getting started

This guide takes you from nothing to asking your assistant about your car. It takes about five minutes.

  • A Hyundai with Bluelink or a Kia with Kia Connect (formerly UVO), and an account that works in the official app. Genesis Connect works in some regions too. See Compatibility for brands and regions.
  • Your account email, password and PIN. The PIN is the 4-digit code the app asks for before remote commands.
  • An MCP client such as Claude Code or Claude Desktop.
  • One of Homebrew (macOS or Linux), uv (from a clone) or Docker (to run it as a service).

Open the Bluelink app (or the Kia Connect app for a Kia) and make sure you can see your car’s status and send a command, such as locking it. If the app works, the server will too. If you’ve just changed your password or the app wants you to accept new terms, do that first, because the server can’t click through those screens.

Choose one of the options below. Whichever you pick, the default region is Europe and the brand Hyundai. For a Kia, set BLUELINK_BRAND=kia (or genesis for a Genesis). For other regions, set BLUELINK_REGION=usa (or canada, australia and so on). See Configuration.

Your MCP client starts the server when it needs it, over stdio. There’s nothing to keep running and nothing listens on the network. Put your app password in a file only you can read, such as ~/.config/bluelink-mcp/password, then:

Terminal window
brew install mattoddie/tap/bluelink-mcp
claude mcp add bluelink \
--env BLUELINK_PASSWORD_FILE=/path/to/bluelink-password \
--env BLUELINK_PIN=1234 \
-- "$(brew --prefix)/bin/bluelink-mcp"

For a Kia, add --env BLUELINK_BRAND=kia. brew upgrade picks up new releases. For Claude Desktop without the bundle, see Without the extension. Other stdio clients use the same command and environment variables (see Connecting MCP clients).

Your MCP client starts the server when it needs it. Nothing listens on the network.

Terminal window
git clone https://github.com/mattoddie/bluelink-mcp
cd bluelink-mcp
claude mcp add bluelink \
-e BLUELINK_PASSWORD='your-password' \
-e BLUELINK_PIN=1234 \
-- uv run --directory "$PWD" bluelink-mcp

For a Kia, add -e BLUELINK_BRAND=kia.

One long-running container that several clients and machines can share, over Streamable HTTP.

Terminal window
mkdir bluelink-mcp && cd bluelink-mcp
curl -fsSLO https://raw.githubusercontent.com/mattoddie/bluelink-mcp/main/compose.yaml
curl -fsSL https://raw.githubusercontent.com/mattoddie/bluelink-mcp/main/example.env -o .env
# Edit .env: set BLUELINK_USERNAME, BLUELINK_PASSWORD, BLUELINK_PIN,
# BLUELINK_BRAND=kia for a Kia, and a random MCP_AUTH_TOKEN (openssl rand -hex 32)
docker compose up -d

Then connect Claude Code:

Terminal window
claude mcp add --transport http bluelink http://<docker-host>:8080/mcp \
--header "Authorization: Bearer <MCP_AUTH_TOKEN>"

For Claude Desktop, VS Code, Cursor and others, see Connecting MCP clients.

Start Claude Code and try:

  • “What’s the car’s status?”
  • “How much electric range do I have, and is it plugged in?”
  • “Where did I park?”
  • “How far did I drive this month?”

The first request logs in to Bluelink or Kia Connect, which takes a few seconds. After that the login token is cached (see Configuration), so later requests are quick and don’t log in again.

Answers come from the state the car last sent to Bluelink. The assistant tells you when that was. If you need it to be current, ask it to “refresh from the car”. That wakes the car, so it’s rate limited.

Out of the box the assistant can look but not touch. To let it lock the car, pre-heat the cabin and start or stop charging, set:

Terminal window
BLUELINK_ALLOW_WRITES=true

With Homebrew or uv, add --env BLUELINK_ALLOW_WRITES=true to the claude mcp add command. With Docker, add it to .env and run docker compose up -d. Then try “Warm the car up to 21 degrees for 15 minutes”.

Unlocking is separate and needs BLUELINK_ALLOW_UNLOCK=true as well. Read Security before turning it on.