A Model Context Protocol (MCP) server that provides access to Husqvarna connected automower API, allowing AI assistants to query information about your automower status.
This calls the husqvarna remote API. You need to create credentials at https://developer.husqvarnagroup.cloud
The Husqvarna Automowers Status tool returns a full snapshot of every mower connected to your Husqvarna account. Concrete data returned per mower includes:
- Status & activity: current mode (e.g.
MAIN_AREA), activity (e.g.MOWING,CHARGING,PARKED_IN_CS), state (e.g.IN_OPERATION), and any active error codes - Battery: charge percentage (e.g.
87%) - Schedule: next planned start timestamp, calendar tasks with days of week and start/duration times
- Last known GPS position: latitude and longitude coordinates
- Statistics: total cutting time, total drive distance, number of charging cycles, blade usage time
- Settings: cutting height, headlight mode
- System info: mower name, model, serial number
You need a ClientID and ClientSecret generated through the Husqvarna developer portal
- Go to https://developer.husqvarnagroup.cloud
- Sign up/sign in
- Go to My Applications at https://developer.husqvarnagroup.cloud/applications
- Click "Create App", enter a name, leave localhost, click create
- You will receive an Application Key (ClientID) and Application Secret (ClientSecret)
Get detailed information about all automowers.
Parameters:
None
Running the server in a Docker container is the recommended approach for Claude Desktop: it keeps your Husqvarna credentials isolated from the AI model process, and Claude calls it over stdio without any network setup required.
Make sure Docker Desktop is running, then build the image:
docker build -t husqvarna-automower-mcp .Then add it to your Claude Desktop (or any MCP client) configuration:
{
"mcpServers": {
"automower": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"HUSQVARNA_CLIENT_ID",
"-e",
"HUSQVARNA_CLIENT_SECRET",
"husqvarna-automower-mcp"
],
"env": {
"HUSQVARNA_CLIENT_ID": "YourClientID",
"HUSQVARNA_CLIENT_SECRET": "YourClientSecret"
}
}
}
}Register the server with the claude CLI so it's available in all Claude Code sessions:
claude mcp add husqvarna-automower -- docker run -i --rm \
-e HUSQVARNA_CLIENT_ID=YourClientID \
-e HUSQVARNA_CLIENT_SECRET=YourClientSecret \
husqvarna-automower-mcpTo expose the server as a persistent HTTP endpoint (useful for multi-agent stacks, Home Assistant, or any client that connects over HTTP rather than spawning a subprocess):
docker run --rm \
-e TRANSPORT=http \
-e PORT=8080 \
-e HUSQVARNA_CLIENT_ID=YourClientID \
-e HUSQVARNA_CLIENT_SECRET=YourClientSecret \
-p 8080:8080 \
husqvarna-automower-mcpThe server will be available at http://localhost:8080/mcp.
Once the container is running, add this to your Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"automower": {
"type": "streamable-http",
"url": "http://localhost:8080/mcp"
}
}
}Streamable HTTP mode exposes the server as a persistent HTTP endpoint rather than a subprocess. This is suitable for multi-agent stacks, Home Assistant integrations, and any MCP client that can't launch a subprocess directly.
This Docker Compose setup runs the automower server in HTTP mode alongside the MCP Inspector for easy testing.
- Build the container image:
docker compose build- Create a
.envfile with your credentials:
cat > .env << 'EOF'
HUSQVARNA_CLIENT_ID=YourClientID
HUSQVARNA_CLIENT_SECRET=YourClientSecret
EOF
⚠️ Do not commit.env— it contains secrets. It is already listed in.gitignore.
- Start both services:
docker compose up-
Open the Inspector UI at http://localhost:6274 — it is pre-filled to connect to the automower service.
Note:
DANGEROUSLY_OMIT_AUTH=trueandALLOWED_ORIGINSare required for the MCP Inspector to work correctly when run inside Docker.HOST=0.0.0.0binds to all interfaces (needed for Docker port mapping), but causes the Inspector's proxy token URL to use0.0.0.0instead oflocalhost. Disabling auth avoids this mismatch. Always open the Inspector athttp://localhost:6274, neverhttp://0.0.0.0:6274. -
Click Connect to start the session.
-
Use the Husqvarna Automowers Status tool to query your mowers.