Skip to content
Back to search

tapo

πŸ¦€ Rust API, 🐍 Python API, and πŸ€– MCP Server for TP-Link Tapo smart devices

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/mihai-dinculescu/tapo with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/mihai-dinculescu/tapo'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/mihai-dinculescu--tapo/badge.svg)](/listings/mihai-dinculescu--tapo)

HTML

<a href="/listings/mihai-dinculescu--tapo"><img src="/api/listings/mihai-dinculescu--tapo/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md Β· README Β· 139 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # Tapo
  2. [![License][license_badge]][license]
  3. [![Crates][crates_badge]][crates]
  4. [![Documentation][crates_documentation_badge]][crates_documentation]
  5. [![Crates.io][crates_downloads_badge]][crates]
  6. [![PyPI][pypi_badge]][pypi]
  7. [![Python][pypi_versions_badge]][pypi]
  8. [![PyPI][pypi_downloads_badge]][pypi]\
  9. Unofficial Tapo API Client. Works with TP-Link Tapo smart devices. Tested with light bulbs (L430C, L430P, L510, L520, L530, L535, L610, L630), light strips (L900, L920, L930), plugs (P100, P105, P110, P110M, P115, P125, P125M, TP10), power strips (P300, P304M, P306, P316M), hubs (H100, H110, H200, H500), switches (S200B, S200D, S210), sensors (KE100, T100, T110, T300, T310, T315) and cameras (C120, C210, C220, C225, C325WB, C520WS, TC40, TC70).
  10. [license_badge]: https://img.shields.io/crates/l/tapo.svg
  11. [license]: https://github.com/mihai-dinculescu/tapo/blob/main/LICENSE
  12. [crates_badge]: https://img.shields.io/crates/v/tapo.svg?logo=rust&color=F75101
  13. [crates]: https://crates.io/crates/tapo
  14. [crates_documentation_badge]: https://img.shields.io/docsrs/tapo.svg?logo=rust&color=F75101
  15. [crates_documentation]: https://docs.rs/tapo
  16. [crates_downloads_badge]: https://img.shields.io/crates/d/tapo?logo=rust&label=downloads&color=F75101
  17. [pypi_badge]: https://img.shields.io/pypi/v/tapo.svg?logo=pypi&color=00ADD4
  18. [pypi]: https://pypi.org/project/tapo
  19. [pypi_versions_badge]: https://img.shields.io/pypi/pyversions/tapo.svg?logo=python&color=00ADD4
  20. [pypi_downloads_badge]: https://img.shields.io/pypi/dm/tapo?logo=python&color=00ADD4
  21. ## Supported Devices
  22. See [/SUPPORTED_DEVICES.md][supported_devices] for the supported devices and feature matrix.
  23. ## Rust Library
  24. ### Usage
  25. > Cargo.toml
  26. ```toml
  27. [dependencies]
  28. tapo = "0.11"
  29. ```
  30. > main.rs
  31. ```rust
  32. let device = ApiClient::new("<tapo-username>", "tapo-password")
  33. .p110("<device ip address>")
  34. .await?;
  35. device.on().await?;
  36. ```
  37. ### Examples
  38. ```bash
  39. export TAPO_USERNAME=
  40. export TAPO_PASSWORD=
  41. export IP_ADDRESS=
  42. cargo run --example tapo_l530
  43. ```
  44. See all examples in [/tapo/examples][examples].
  45. ## Python Library
  46. ### Usage
  47. ```bash
  48. pip install tapo
  49. ```
  50. ```python
  51. client = ApiClient("<tapo-username>", "tapo-password")
  52. device = await client.p110("<device ip address>")
  53. await device.on()
  54. ```
  55. ### Examples
  56. ```bash
  57. cd tapo-py
  58. uv venv # On the initial run only
  59. uv sync --group dev --locked
  60. uv run maturin develop # On the initial run and whenever the Rust code is modified
  61. export TAPO_USERNAME=
  62. export TAPO_PASSWORD=
  63. export IP_ADDRESS=
  64. ```
  65. ```bash
  66. uv run python examples/tapo_p110.py
  67. ```
  68. See all examples in [/tapo-py/examples][examples-py].
  69. ## MCP Server
  70. An MCP server that exposes Tapo devices as AI-callable tools and resources via the [Model Context Protocol](https://modelcontextprotocol.io/). See [/tapo-mcp/README.md][tapo_mcp] for setup and usage.
  71. ## Community Projects
  72. - [tapo-rest][tapo_rest] β€” a REST wrapper of this library that can be deployed as a service or serve as an advanced example.
  73. - [tapoviz][tapoviz] β€” audio-reactive and screen-reactive lighting for L920/L930 LED strips, with a local web UI.
  74. ## Troubleshooting
  75. See [/TROUBLESHOOTING.md][troubleshooting] for solutions to common issues.
  76. ## Contributing
  77. Contributions are welcome and encouraged! See [/CONTRIBUTING.md][contributing].
  78. ## Sponsors
  79. A big thank you to the sponsors of this project!
  80. - [abler98][sponsor_abler98]
  81. - [nathanja][sponsor_nathanja]
  82. - [santiago-salas-v][sponsor_santiago_salas_v]
  83. ## Credits
  84. Created and maintained by [Mihai Dinculescu][author].
  85. Inspired by [petretiandrea/plugp100][inspired_by_plugp100] and [python-kasa/python-kasa][inspired_by_kasa].
  86. [supported_devices]: https://github.com/mihai-dinculescu/tapo/blob/main/SUPPORTED_DEVICES.md
  87. [examples]: https://github.com/mihai-dinculescu/tapo/tree/main/tapo/examples
  88. [examples-py]: https://github.com/mihai-dinculescu/tapo/tree/main/tapo-py/examples
  89. [tapo_mcp]: https://github.com/mihai-dinculescu/tapo/tree/main/tapo-mcp
  90. [tapo_rest]: https://github.com/ClementNerma/tapo-rest
  91. [tapoviz]: https://github.com/The-DarkMatter/tapoviz
  92. [troubleshooting]: https://github.com/mihai-dinculescu/tapo/blob/main/TROUBLESHOOTING.md
  93. [contributing]: https://github.com/mihai-dinculescu/tapo/blob/main/CONTRIBUTING.md
  94. [sponsor_abler98]: https://github.com/abler98
  95. [sponsor_nathanja]: https://github.com/nathanja
  96. [sponsor_santiago_salas_v]: https://github.com/santiago-salas-v
  97. [author]: https://mihai.dinculescu.dev
  98. [inspired_by_plugp100]: https://github.com/petretiandrea/plugp100
  99. [inspired_by_kasa]: https://github.com/python-kasa/python-kasa

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.