Philips TV (JointSpace + ADB)

io.github.amineutron由 GitHub 账号 amineutron 发布v0.4.0更新于 Oct 24, 2026

Control a Philips Android TV over JointSpace and ADB: power, volume, apps, keys, screen, Ambilight.

概览

AI 生成的概览

让助手通过 JointSpace 和 ADB 控制飞利浦 Android 电视:电源、音量、Ambilight、应用、遥控按键和 YouTube 播放。

可以做什么
提供 14 个针对飞利浦 Android 电视的工具:power_on、power_off、screen_off 与 screen_on,volume_up、volume_down、volume_set 与 mute,ambilight_on、ambilight_off、ambilight_mode 与 ambilight_color,list_apps、launch_app、youtube_video、get_state 以及 send_key。get_state 返回 powerstate、volume、muted、ambilight_on 和 ambilight_mode。它直接与电视的 JointSpace API 通信,并透明处理 TP Vision 的 SHA1 证书链。配置 Denon 功放后,音量与静音调用会经 HDMI ARC 转发给它。
适用场景
当你希望助手操作同一网络中的飞利浦 Android 电视时使用:开关机、调节音量或静音、更改 Ambilight、启动应用、发送遥控按键,或播放指定 YouTube 视频。适合电视已完成一次性配对、并从桌面 MCP 客户端控制的家庭环境。它不是通用的媒体或 Chromecast 服务器;README 指出功放和 Chromecast 由另外的服务器负责。
运行要求
以本地进程方式运行,通过 uvx(或 pip)安装,需要 Python 3.10+。需要一台启用 JointSpace API 的飞利浦 Android 电视(2016 年及以后机型),为 YouTube 深链启用 ADB,并完成一次性配对以获得 TV_USER 和 TV_PASS。必需环境变量:TV_HOST。可选:TV_USER、TV_PASS、DENON_HOST、DENON_PORT、PYLIPS_TLS_FINGERPRINT。电视需在局域网内可达;Wake-on-LAN 所需的 wakeonlan 包为可选。
安装前请注意
需要一次性配对得到的 JointSpace 凭据 TV_USER 和 TV_PASS,其中 TV_PASS 是机密,应通过环境变量或配置文件提供,不要提交到代码库。服务器会禁用 CA 验证,改用 SHA-256 指纹固定电视证书;设置 PYLIPS_TLS_PIN=0 会关闭固定并仅记录警告,从而削弱防冒充保护。工具会改变设备状态:开关机、音量、静音、Ambilight、启动应用和发送遥控按键。配置 DENON_HOST 后,音量与静音操作会转发到功放。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Philips TV (JointSpace + ADB),将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

pylips-mcp

[tests] [License: MIT] [Python 3.10+]

MCP server for controlling Philips Android TV via the JointSpace API and ADB.

Exposes 14 tools covering power, volume, ambilight, app launching, and YouTube playback. Handles the TP Vision SHA1 certificate chain transparently.

Demo

[MCP client: the 16 tools, then get_state on the real TV]

Recorded against the real TV with docs/demo/record.sh: a minimal MCP client (docs/demo/mcp_demo.py) starts the server over stdio with TV_HOST/TV_USER/TV_PASS in the environment, lists the tools and calls get_state (read-only). Credentials never appear on screen.

Tools

OutilRôle
power_onAllume la TV Philips
power_offEteint la TV Philips (standby)
screen_offEteint l'ecran de la TV tout en gardant le son actif (mode musique). Note: fonctionne principalement en source HDMI/TV, limite en mode Android.
screen_onRallume l'ecran de la TV apres un screen_off
volume_upAugmente le volume de la TV (default +5)
volume_downBaisse le volume de la TV (default -5)
volume_setRegle le volume a un niveau specifique
muteCoupe ou remet le son de la TV
ambilight_onActive l'Ambilight de la TV
ambilight_offDesactive l'Ambilight de la TV
ambilight_modeChange le mode Ambilight
ambilight_colorMet l'Ambilight sur une couleur fixe (RVB 0-255), luminosite optionnelle
list_appsListe les applications disponibles sur la TV
launch_appLance une application sur la TV
youtube_videoLance YouTube sur une video specifique (URL youtube ou ID de video)
get_stateRetourne l'etat actuel de la TV : powerstate (On/Standby), volume, muted, ambilight_on, ambilight_mode
current_appRetourne ce que la TV affiche : kind (app, input = entree HDMI ou antenne, home, other), app (nom pour launch_app) et package
set_sourcePasse la TV sur une entree HDMI (hdmi1 a hdmi4) ou revient au menu d'accueil (home)
send_keyEnvoie une touche de telecommande

YouTube ID extraction

extract_video_id is deliberately duplicated in catt-mcp (cast_youtube, Chromecast with start position and dual-screen sync). Both servers stay installable on their own; each one tests its copy with the same table of cases (tests/test_youtube_id.py). Decision recorded on 2026-09-20.

Requirements

  • Python 3.10+
  • JointSpace credentials (user + password) from a one-time pairing with the TV (see Setup); the server itself talks to the TV API directly and does not need pylips at runtime
  • Philips Android TV with JointSpace API enabled (2016+ models)
  • ADB enabled on the TV (for YouTube deep linking)
  • wakeonlan Python package (optional, for Wake-on-LAN)

Installation en une ligne

bash
uvx pylips-mcp                 # depuis PyPI ; avant publication : uvx --from git+https://github.com/amineutron/pylips-mcp pylips-mcp

Configuration Claude Desktop / Claude Code (mcpServers) :

json
{ "pylips": { "command": "uvx", "args": ["pylips-mcp"], "env": { "TV_HOST": "192.0.2.10", "TV_USER": "...", "TV_PASS": "..." } } }

Setup

1. Pair with your TV

Pairing is done once, to get a JointSpace user and password. Use the pairing tool of eslavnov/pylips from a clone of that repository (the pylips package on PyPI is an unrelated project: do not pip install pylips), and follow its README with your TV's IP. pylips-mcp does not need pylips afterwards.

Keep the user and password the pairing gives you: they go into config.yaml (step 3) or TV_USER / TV_PASS.

2. Install dependencies

bash
pip install pylips-mcp        # or: uvx pylips-mcp

3. Configure

Copy config.example.yaml to config.yaml and fill in your TV credentials:

yaml
tv:  host: "192.168.0.XX"  user: "your_user"  pass: "your_password"

4. Run

bash
pylips-mcp                    # installed (pip, uvx) ; `pylips-mcp --help` lists the settingspython -m pylips_mcp          # same thing, from any environment where the package is installedpython server.py              # from a clone, without installing (thin launcher, code in pylips_mcp/)

Or set via environment variables:

bash
TV_HOST=192.168.0.XX TV_USER=xxx TV_PASS=xxx pylips-mcp

The code lives in the pylips_mcp package (with the TP Vision certificate), so it can be installed next to other MCP servers without module name clashes.

Claude Desktop Configuration

json
{  "mcpServers": {    "philips-tv": {      "command": "python3",      "args": ["/path/to/pylips-mcp/server.py"],      "env": {        "TV_HOST": "192.168.0.XX",        "TV_USER": "your_user",        "TV_PASS": "your_password"      }    }  }}

SSL Note

Philips TVs present a TP Vision certificate chain from 2015 signed with SHA1. Modern OpenSSL and the Fedora/RHEL crypto policy reject SHA1 signatures, so a classic CA verification is impossible, even with the bundled chain and SECLEVEL=0.

What this server does instead, honestly:

  • CA verification is disabled (it cannot succeed);
  • the SHA-256 fingerprint of the certificate presented by the TV must match the leaf certificate shipped in tpvision_ca.pem (checked by urllib3 after the TLS handshake, so a man-in-the-middle cannot impersonate the TV without the private key). Verified against a real 55OLED705 (JointSpace 6, port 1926);
  • PYLIPS_TLS_FINGERPRINT=<sha256 hex> pins another TV, PYLIPS_TLS_PIN=0 disables pinning and logs a warning.

tpvision_ca.pem is the public TP Vision chain (leaf restfultv.tpvision.com, intermediate ca.tpvision.com, root www.tpvision.com, valid until 2042), extracted from a TV with openssl s_client -showcerts. It contains no secret.

License

MIT

Volume en HDMI ARC

Quand la TV est reliee a un ampli en HDMI ARC, le son ne sort pas de la TV : agir sur son volume n'a aucun effet audible. Si denon.host est renseigne dans la configuration, volume_up, volume_down, volume_set et mute sont donc rediriges vers l'ampli Denon ; sinon ils passent par l'API de la TV.

Pour piloter l'ampli directement (entrees, extinction, statut), utiliser denon-mcp.

Part of the Lyra ecosystem

DépôtRôle
lyraassistant DevOps vocal, local par défaut (AGPL-3.0)
fedora-agentsMCP : machines virtuelles KVM et sauvegardes
mcp-trackingMCP + API + tableau de bord des tâches longues
neutroncorehub PWA du homelab
hue-mcpMCP Philips Hue (fork de ThomasRohde/hue-mcp)
pylips-mcpMCP TV Philips
denon-mcpMCP ampli Denon
catt-mcpMCP Chromecast et DLNA

来源:README.md,提交 17eb27f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.4.0最新Sep 26, 2026
  2. v0.3.0Sep 25, 2026
  3. v0.2.1Sep 24, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分