Nanoleaf MCP Server

MCP server for controlling Nanoleaf lights

Local serverstdio

What is the Nanoleaf MCP server?

If you already use Nanoleaf, the nanoleaf mcp server is the piece that lets your assistant work with it directly. MCP server for controlling Nanoleaf lights.

What the server does

A Model Context Protocol (MCP) server for controlling Nanoleaf smart lights. This server provides tools to control your Nanoleaf devices through Warp terminal or any MCP-compatible client.

  • 🔍 Auto-discovery of Nanoleaf devices on your network
  • 🔗 Direct IP connection for specific device targeting
  • 🔐 Authorization support for secure device pairing
  • 💡 Full control of lights, brightness, colors, and effects
  • 🐳 Dockerized for easy deployment
  • 🖥️ Warp terminal integration

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • get_nanoleaf_info — Get detailed device information
  • set_brightness — Adjust brightness (0-100)
  • set_color — Set color using hue (0-360) and saturation (0-100)
  • set_effect — Apply lighting effects
  • get_effects — List all available effects
  • discover_nanoleaf — Discover devices on network
  • connect_to_ip — Connect to specific IP address
  • authorize_nanoleaf — Authorize with device in pairing mode
  • Prerequisites — The Prerequisites tool exposed by this server

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Credentials and setup notes

Configuration is passed through the environment: NANOLEAF_AUTH_TOKEN, AUTH_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Docker installed on your system - Nanoleaf device(s) on your network - Warp terminal (optional, for MCP integration)

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Nanoleaf's toolset — get_nanoleaf_info, set_brightness, set_color and 6 more — is a fair guide to whether it matches your workflow. It is maintained by srnetadmin; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 9 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Nanoleaf.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
get_nanoleaf_infoGet detailed device information
set_brightnessAdjust brightness (0-100)
set_colorSet color using hue (0-360) and saturation (0-100)
set_effectApply lighting effects
get_effectsList all available effects
discover_nanoleafDiscover devices on network
connect_to_ipConnect to specific IP address
authorize_nanoleafAuthorize with device in pairing mode
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the Nanoleaf MCP server

{
  "mcpServers": {
    "nanoleaf": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i", "--network=host",
        "-e", "NANOLEAF_IP=192.168.1.100",
        "-e", "NANOLEAF_AUTH_TOKEN=YourAuthTokenHere123456789",
        "-e", "NANOLEAF_PORT=16021",
        "-e", "NANOLEAF_PROTOCOL=http",
        "nanoleaf-mcp-server-nanoleaf-mcp-server"
      ],
      "env": {}
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Docker installed on your system - Nanoleaf device(s) on your network - Warp terminal (optional, for MCP integration)
VariableDescriptionRequired
NANOLEAF_AUTH_TOKENCredential the server authenticates with.Yes
AUTH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Nanoleaf to get nanoleaf info.
  • Use Nanoleaf to set brightness.
  • Use Nanoleaf to set color.

Frequently asked questions

It connects Nanoleaf to MCP-compatible AI assistants such as Claude and Cursor, exposing 9 tools (get_nanoleaf_info, set_brightness, set_color, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Nanoleaf directly.