Skip to content

Connecting MCP clients

bluelink-mcp supports both standard MCP transports:

Transport How it runs Best for
stdio (the default outside Docker) The client starts the server for each session, with uv run or docker run -i, or as the Claude Desktop extension. A single machine, no network service.
Streamable HTTP (the default in the image) One long-running container. Clients connect to http://<host>:8080/mcp. Sharing one server between several clients and machines.

The HTTP endpoint is stateless: each request is handled on its own, so you can restart the container at any time. Every request must send Authorization: Bearer <token>, where the token is your MCP_AUTH_TOKEN.

In the examples below, replace <docker-host> with the machine running the container and <token> with your MCP_AUTH_TOKEN. The server is called bluelink in every example.

Over HTTP:

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

Or over stdio, from a clone of the repository:

Terminal window
claude mcp add bluelink \
-e [email protected] -e BLUELINK_PASSWORD='your-password' -e BLUELINK_PIN=1234 \
-- uv run --directory /path/to/bluelink-mcp bluelink-mcp

Add --scope user to make it available in every project. Don’t commit credentials: in a shared .mcp.json, reference environment variables instead:

{
"mcpServers": {
"bluelink": {
"type": "http",
"url": "http://<docker-host>:8080/mcp",
"headers": { "Authorization": "Bearer ${BLUELINK_MCP_TOKEN}" }
}
}
}

Run claude mcp list to check the connection, and /mcp inside Claude Code to see the tools.

The easiest way is the extension bundle: a single .mcpb file that installs bluelink-mcp into Claude Desktop with a settings form. It needs no Docker, no service and no token, because Claude Desktop runs the server itself over stdio.

  1. Download bluelink-mcp-<version>.mcpb from the latest release. The same file works on macOS, Windows and Linux.
  2. Double-click it, or drag it onto Settings → Extensions in Claude Desktop, and click Install.
  3. Fill in the settings and turn the extension on. The tools appear under the tools (🔨) menu, where you can also allow or block each one.

The bundle uses Claude Desktop’s uv runtime: on first start, Claude Desktop downloads a suitable Python and the exact dependency versions from the release’s uv.lock, so the first start takes a minute and needs internet access. To update, install the bundle from a newer release the same way.

Setting Variable Notes
Email, Password BLUELINK_USERNAME, BLUELINK_PASSWORD Your app login. The password is marked sensitive, so Claude Desktop keeps it out of the plain settings.
PIN BLUELINK_PIN Optional. Europe and Canada need it for commands.
Region, Brand BLUELINK_REGION, BLUELINK_BRAND See Choosing a region. Default europe and hyundai.
Allow commands BLUELINK_ALLOW_WRITES Lock, climate, charging and the other commands, such as the horn and lights. Off by default.
Allow unlocking BLUELINK_ALLOW_UNLOCK Needs Allow commands. Each unlock also needs your confirmation; see Unlocking.
Share location BLUELINK_ALLOW_LOCATION Registers bluelink_get_vehicle_location. Off by default.
Audit log file BLUELINK_AUDIT_LOG Optional full path to a JSON Lines file (its folder must exist), or stderr for Claude Desktop’s MCP log. See Audit log.

Other settings keep their defaults, including the login token cache in ~/.config/bluelink-mcp/tokens.json. The server’s own log goes to Claude Desktop’s MCP server logs.

Claude Desktop also starts MCP servers listed in its config file over stdio. Open Settings → Developer → Edit Config and add one of these.

With a Homebrew or pip install, point command at the installed bluelink-mcp, for example /opt/homebrew/bin/bluelink-mcp (run which bluelink-mcp to find it), with no args:

{
"mcpServers": {
"bluelink": {
"command": "/opt/homebrew/bin/bluelink-mcp",
"env": {
"BLUELINK_USERNAME": "[email protected]",
"BLUELINK_PASSWORD": "your-password",
"BLUELINK_PIN": "1234"
}
}
}
}

With uv, from a clone:

{
"mcpServers": {
"bluelink": {
"command": "uv",
"args": ["run", "--directory", "/path/to/bluelink-mcp", "bluelink-mcp"],
"env": {
"BLUELINK_USERNAME": "[email protected]",
"BLUELINK_PASSWORD": "your-password",
"BLUELINK_PIN": "1234"
}
}
}
}

With Docker:

{
"mcpServers": {
"bluelink": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT=stdio",
"-e", "BLUELINK_USERNAME", "-e", "BLUELINK_PASSWORD", "-e", "BLUELINK_PIN",
"-v", "bluelink-data:/data",
"ghcr.io/mattoddie/bluelink-mcp:latest"
],
"env": {
"BLUELINK_USERNAME": "[email protected]",
"BLUELINK_PASSWORD": "your-password",
"BLUELINK_PIN": "1234"
}
}
}
}

The bluelink-data volume keeps the login token between sessions, so each new chat doesn’t log in to Bluelink again. Restart Claude Desktop, and the tools appear under the tools (🔨) menu.

To turn on commands, add "BLUELINK_ALLOW_WRITES": "true" to env (and, for Docker, "-e", "BLUELINK_ALLOW_WRITES" to args).

Create .vscode/mcp.json in your workspace, or run MCP: Add Server from the command palette:

{
"inputs": [
{ "id": "bluelink-token", "type": "promptString", "description": "bluelink-mcp token", "password": true }
],
"servers": {
"bluelink": {
"type": "http",
"url": "http://<docker-host>:8080/mcp",
"headers": { "Authorization": "Bearer ${input:bluelink-token}" }
}
}
}

VS Code asks for the token once and stores it securely. Use the tools from Copilot Chat in Agent mode.

Add to ~/.cursor/mcp.json for all projects, or .cursor/mcp.json for one project:

{
"mcpServers": {
"bluelink": {
"url": "http://<docker-host>:8080/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}

Add to ~/.codex/config.toml:

[mcp_servers.bluelink]
url = "http://<docker-host>:8080/mcp"
bearer_token_env_var = "BLUELINK_MCP_TOKEN"

Then export BLUELINK_MCP_TOKEN=<token> before running codex.

Clients that install servers from the MCP Registry can find bluelink-mcp as io.github.mattoddie/bluelink-mcp. The entry offers the Docker image, run over stdio with a bluelink-data volume for the token cache, and the Claude Desktop bundle, and asks for the same settings as the bundle.

Any client that supports MCP Streamable HTTP works. Point it at http://<docker-host>:8080/mcp and send the bearer token header.

If your client only supports stdio, use stdio mode, or keep the shared HTTP server and connect through a stdio-to-HTTP bridge such as mcp-remote:

{
"command": "npx",
"args": ["-y", "mcp-remote", "http://<docker-host>:8080/mcp", "--header", "Authorization: Bearer <token>"]
}

In stdio mode the MCP client runs the server itself and talks to it over stdin/stdout. No port is opened, and no MCP_AUTH_TOKEN is needed because only the client can reach the server.

Terminal window
docker run -i --rm \
-e MCP_TRANSPORT=stdio \
-e BLUELINK_PASSWORD='your-password' \
-e BLUELINK_PIN=1234 \
-v bluelink-data:/data \
ghcr.io/mattoddie/bluelink-mcp:latest

Tips:

  • Keep secrets out of the client config. Pass -e NAME without a value so Docker copies the variable from the client’s environment, or use --env-file /path/to/bluelink.env.
  • Keep the token cache. Mount a volume at /data (Docker) or leave BLUELINK_TOKEN_FILE at its default (uv). Without it, every session logs in from scratch, and frequent logins can get the account temporarily blocked.
  • Always pass -i and never -t. A TTY corrupts the MCP message stream.
  • Pin a version (for example :1.2.3) so a new latest doesn’t surprise you. See Deployment.