Skip to main content

Tapo MCP

io.github.mihai-dinculescu/tapo-mcp

v0.7.0Updated Nov 12, 2026local · Docker

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

Install

Needs 3 secrets. Replace 4 placeholders with your own values.

Run in your terminal. Replace 4 placeholders.

claude mcp add tapo-mcp -e 'TAPO_MCP_USERNAME=<your-tapo-mcp-username>' -e 'TAPO_MCP_PASSWORD=<your-tapo-mcp-password>' -e 'TAPO_MCP_DISCOVERY_TARGET=<your-tapo-mcp-discovery-target>' -e 'TAPO_MCP_API_KEY=<your-tapo-mcp-api-key>' -e TAPO_MCP_DISCOVERY_TIMEOUT=5 -e TAPO_MCP_DISCOVERY_INTERVAL=600 -- docker run -i --rm -e TAPO_MCP_USERNAME -e TAPO_MCP_PASSWORD -e TAPO_MCP_DISCOVERY_TARGET -e TAPO_MCP_API_KEY -e TAPO_MCP_DISCOVERY_TIMEOUT -e TAPO_MCP_DISCOVERY_INTERVAL ghcr.io/mihai-dinculescu/tapo-mcp:0.7.0

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

12 settings, 3 required secrets. Snippets use placeholders; keep real values out of shared config.

  • TAPO_MCP_USERNAME
    Env var· required· secret
    TP-Link Tapo account email
  • TAPO_MCP_PASSWORD
    Env var· required· secret
    TP-Link Tapo account password
  • TAPO_MCP_API_KEY
    Env var· required· secret
    Bearer token that clients send in the Authorization header; the image listens on all interfaces and does not start without it
  • TAPO_MCP_DISCOVERY_TARGET
    Env var· required
    IP address for device discovery, usually the network's broadcast address (e.g. 192.168.1.255)
  • TAPO_MCP_CAMERA_USERNAME
    Env var· optional· secret
    Optional camera account username; required for taking camera snapshots
  • TAPO_MCP_CAMERA_PASSWORD
    Env var· optional· secret
    Optional camera account password; required for taking camera snapshots
Show 6 more
  • TAPO_MCP_ALLOWED_HOSTS
    Env var· optional
    Optional comma-separated Host header allowlist; replaces the loopback-only default
  • TAPO_MCP_PUBLIC_URL
    Env var· optional
    Optional base URL clients reach the server at; enables short-lived snapshot links
  • TAPO_MCP_DISCOVERY_TIMEOUT
    Env var· optional
    Device discovery timeout in seconds; must be between 1 and 60Default: 5
  • TAPO_MCP_DISCOVERY_INTERVAL
    Env var· optional
    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 oftenDefault: 600
  • OTEL_EXPORTER_OTLP_ENDPOINT
    Env var· optional
    Base URL of an OTLP/HTTP collector to export traces to, such as http://localhost:4318; traces go to /v1/traces under it
  • --network
    Argument· optional
    Host networking, so that device discovery can reach the local network

Listed in the official MCP Registry since Nov 12, 2026. Mirrored daily; last checked Nov 26, 2026.