MCP directory
TM

Tapo MCP

by github.com/mihai-dinculescu · v0.7.0 · updated Nov 12, 2026

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

Docker

Run it locally

Install the package and point your AI client at it.

Docker

docker run -i --rm ghcr.io/mihai-dinculescu/tapo-mcp:0.7.0

Environment variables

  • TAPO_MCP_USERNAMErequiredsecret

    TP-Link Tapo account email

  • TAPO_MCP_PASSWORDrequiredsecret

    TP-Link Tapo account password

  • TAPO_MCP_CAMERA_USERNAMEsecret

    Optional camera account username; required for taking camera snapshots

  • TAPO_MCP_CAMERA_PASSWORDsecret

    Optional camera account password; required for taking camera snapshots

  • TAPO_MCP_DISCOVERY_TARGETrequired

    IP address for device discovery, usually the network's broadcast address (e.g. 192.168.1.255)

  • TAPO_MCP_API_KEYrequiredsecret

    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

    Optional comma-separated Host header allowlist; replaces the loopback-only default

  • TAPO_MCP_PUBLIC_URL

    Optional base URL clients reach the server at; enables short-lived snapshot links

  • TAPO_MCP_DISCOVERY_TIMEOUT

    Device discovery timeout in seconds; must be between 1 and 60

  • TAPO_MCP_DISCOVERY_INTERVAL

    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

  • OTEL_EXPORTER_OTLP_ENDPOINT

    Base URL of an OTLP/HTTP collector to export traces to, such as http://localhost:4318; traces go to /v1/traces under it

More MCP servers