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.0The 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_USERNAMEEnv var· required· secretTP-Link Tapo account emailTAPO_MCP_PASSWORDEnv var· required· secretTP-Link Tapo account passwordTAPO_MCP_API_KEYEnv var· required· secretBearer token that clients send in the Authorization header; the image listens on all interfaces and does not start without itTAPO_MCP_DISCOVERY_TARGETEnv var· requiredIP address for device discovery, usually the network's broadcast address (e.g. 192.168.1.255)TAPO_MCP_CAMERA_USERNAMEEnv var· optional· secretOptional camera account username; required for taking camera snapshotsTAPO_MCP_CAMERA_PASSWORDEnv var· optional· secretOptional camera account password; required for taking camera snapshots
Show 6 moreShow fewer
TAPO_MCP_ALLOWED_HOSTSEnv var· optionalOptional comma-separated Host header allowlist; replaces the loopback-only defaultTAPO_MCP_PUBLIC_URLEnv var· optionalOptional base URL clients reach the server at; enables short-lived snapshot linksTAPO_MCP_DISCOVERY_TIMEOUTEnv var· optionalDevice discovery timeout in seconds; must be between 1 and 60Default:5TAPO_MCP_DISCOVERY_INTERVALEnv var· optionalSeconds 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:600OTEL_EXPORTER_OTLP_ENDPOINTEnv var· optionalBase URL of an OTLP/HTTP collector to export traces to, such as http://localhost:4318; traces go to /v1/traces under it--networkArgument· optionalHost networking, so that device discovery can reach the local network
Links
Listed in the official MCP Registry since Nov 12, 2026. Mirrored daily; last checked Nov 26, 2026.