Local-first HTTP API and MCP server that lets AI agents read and control TP-Link Tapo smart-home devices
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add tolpo --env TAPO_EMAIL='<TAPO_EMAIL>' --env TAPO_PASSWORD='<TAPO_PASSWORD>' -- npx -y tolpo~/.codex/config.toml
[mcp_servers.tolpo]
command = "npx"
args = ["-y", "tolpo"]
env = { TAPO_EMAIL = "<TAPO_EMAIL>", TAPO_PASSWORD = "<TAPO_PASSWORD>" }
# codex mcp add tolpo --env TAPO_EMAIL='<TAPO_EMAIL>' --env TAPO_PASSWORD='<TAPO_PASSWORD>' -- npx -y tolpo~/.cursor/mcp.json
{
"mcpServers": {
"tolpo": {
"command": "npx",
"args": [
"-y",
"tolpo"
],
"env": {
"TAPO_EMAIL": "<TAPO_EMAIL>",
"TAPO_PASSWORD": "<TAPO_PASSWORD>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tolpo": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tolpo"
],
"env": {
"TAPO_EMAIL": "<TAPO_EMAIL>",
"TAPO_PASSWORD": "<TAPO_PASSWORD>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tolpo": {
"command": "npx",
"args": [
"-y",
"tolpo"
],
"env": {
"TAPO_EMAIL": "<TAPO_EMAIL>",
"TAPO_PASSWORD": "<TAPO_PASSWORD>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tolpo": {
"command": "npx",
"args": [
"-y",
"tolpo"
],
"env": {
"TAPO_EMAIL": "<TAPO_EMAIL>",
"TAPO_PASSWORD": "<TAPO_PASSWORD>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tolpo": {
"command": "npx",
"args": [
"-y",
"tolpo"
],
"env": {
"TAPO_EMAIL": "<TAPO_EMAIL>",
"TAPO_PASSWORD": "<TAPO_PASSWORD>"
}
}
}
}Environment variables
TAPO_EMAILTAPO_PASSWORD
Replace the placeholders with your own credentials and keep them out of version control.