T

Tapo MCP

by mihai-dinculescu · io.github.mihai-dinculescu/tapo-mcp

MCP server for discovering and controlling TP-Link Tapo smart home devices via AI Agents

oci Unknown transport Official MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-mihai-dinculescu-tapo-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "TAPO_MCP_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TARGET=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_API_KEY=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_ALLOWED_HOSTS=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_INTERVAL=<YOUR_VALUE>",
        "-e",
        "OTEL_EXPORTER_OTLP_ENDPOINT=<YOUR_VALUE>",
        "ghcr.io/mihai-dinculescu/tapo-mcp:0.7.0"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-mihai-dinculescu-tapo-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "TAPO_MCP_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TARGET=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_API_KEY=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_ALLOWED_HOSTS=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_INTERVAL=<YOUR_VALUE>",
        "-e",
        "OTEL_EXPORTER_OTLP_ENDPOINT=<YOUR_VALUE>",
        "ghcr.io/mihai-dinculescu/tapo-mcp:0.7.0"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-mihai-dinculescu-tapo-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "TAPO_MCP_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TARGET=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_API_KEY=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_ALLOWED_HOSTS=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_INTERVAL=<YOUR_VALUE>",
        "-e",
        "OTEL_EXPORTER_OTLP_ENDPOINT=<YOUR_VALUE>",
        "ghcr.io/mihai-dinculescu/tapo-mcp:0.7.0"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-mihai-dinculescu-tapo-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "TAPO_MCP_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TARGET=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_API_KEY=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_ALLOWED_HOSTS=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_INTERVAL=<YOUR_VALUE>",
        "-e",
        "OTEL_EXPORTER_OTLP_ENDPOINT=<YOUR_VALUE>",
        "ghcr.io/mihai-dinculescu/tapo-mcp:0.7.0"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-mihai-dinculescu-tapo-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "TAPO_MCP_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TARGET=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_API_KEY=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_ALLOWED_HOSTS=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_INTERVAL=<YOUR_VALUE>",
        "-e",
        "OTEL_EXPORTER_OTLP_ENDPOINT=<YOUR_VALUE>",
        "ghcr.io/mihai-dinculescu/tapo-mcp:0.7.0"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-mihai-dinculescu-tapo-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "TAPO_MCP_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_USERNAME=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_CAMERA_PASSWORD=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TARGET=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_API_KEY=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_ALLOWED_HOSTS=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "TAPO_MCP_DISCOVERY_INTERVAL=<YOUR_VALUE>",
        "-e",
        "OTEL_EXPORTER_OTLP_ENDPOINT=<YOUR_VALUE>",
        "ghcr.io/mihai-dinculescu/tapo-mcp:0.7.0"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
TAPO_MCP_USERNAME secret Yes TP-Link Tapo account email
TAPO_MCP_PASSWORD secret Yes TP-Link Tapo account password
TAPO_MCP_CAMERA_USERNAME secret No Optional camera account username; required for taking camera snapshots
TAPO_MCP_CAMERA_PASSWORD secret No Optional camera account password; required for taking camera snapshots
TAPO_MCP_DISCOVERY_TARGET Yes IP address for device discovery, usually the network's broadcast address (e.g. 192.168.1.255)
TAPO_MCP_API_KEY secret Yes Bearer token that clients send in the Authorization header; the image listens on all interfaces and does not start without it
TAPO_MCP_ALLOWED_HOSTS No Optional comma-separated Host header allowlist; replaces the loopback-only default
TAPO_MCP_PUBLIC_URL No Optional base URL clients reach the server at; enables short-lived snapshot links
TAPO_MCP_DISCOVERY_TIMEOUT No Device discovery timeout in seconds; must be between 1 and 60 Default: 5
TAPO_MCP_DISCOVERY_INTERVAL No Seconds between background device discoveries that refresh the device list; must be at least TAPO_MCP_DISCOVERY_TIMEOUT and at most 86400 (one day); tool calls wait while a discovery runs, so a short interval delays them more often Default: 600
OTEL_EXPORTER_OTLP_ENDPOINT No Base URL of an OTLP/HTTP collector to export traces to, such as http://localhost:4318; traces go to /v1/traces under it

Similar servers