
Chromecast / DLNA casting (catt)
io.github.amineutronPublished by GitHub account amineutronv0.3.0Updated Oct 24, 2026
Cast YouTube videos and media to a Chromecast or DLNA device with catt, and control playback.
Overview
Lets an assistant cast YouTube videos and other media URLs to a Chromecast or DLNA device and control playback.
- What you can do
- Wraps the catt casting tool in about 15 MCP tools. It can cast a YouTube video by URL or ID, cast any media URL, stop, pause, resume, seek and set volume, and report cast status and media info. It also scans the network for Chromecast and DLNA devices, and on Linux with Hyprland it can mirror the active Firefox tab to the TV, including a dual-screen mode that keeps PC and TV playback in sync.
- When to use it
- Useful when you want an assistant to start or steer playback on a TV or Chromecast in the same network, for example casting a YouTube link, pausing or resuming, or adjusting volume by voice or chat. The Firefox mirroring and dual-screen tools only make sense on a Linux desktop running Hyprland with Firefox.
- Requirements
- Local process, run with uvx from the PyPI package catt-mcp, or installed with pip. Needs Python 3.10+, the catt and yt-dlp packages, and a Chromecast or DLNA device on the same network. Set CATT_DEVICE to the device name or IP; TV_HOST is optional for waking an Android TV over ADB, and ADB_PATH if adb is not on PATH. The dual-screen tools additionally need Hyprland with hyprctl, playerctl, Firefox and lz4.
Installation
In SourceWeft
- Open Chromecast / DLNA casting (catt) in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
catt-mcp
[tests] [License: MIT] [Python 3.10+]
MCP server for casting YouTube videos and media to Chromecast/DLNA devices via catt.
Exposes 15 tools covering YouTube casting, playback control, dual-screen sync, and device discovery.
Demo
[MCP client: the 15 tools, then cast_scan finding the TV]
Recorded on the real network with docs/demo/record.sh: a minimal MCP client (docs/demo/mcp_demo.py) starts the server over stdio with CATT_DEVICE in the environment, lists the tools and calls cast_scan (read-only). Private IP addresses are replaced with documentation addresses.
Tools
YouTube ID extraction
_extract_video_id (URL watch?v=, youtu.be/, shorts/ or a bare 11-character ID, anything else rejected before it reaches catt/ADB) is deliberately duplicated in pylips-mcp (youtube_video, TV app with Premium account). 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+
- catt:
pip install catt - yt-dlp:
pip install yt-dlp - A Chromecast or DLNA-compatible device on the same network
lz4(optional, for cache compression):pip install lz4
Dual cast (Linux + Hyprland)
cast_browser, cast_browser_dual, cast_dual_resync, cast_dual_stop and
cast_dual_offset drive Firefox from the running desktop session. They are
advertised only when the required binaries are present:
- Hyprland with
hyprctlinPATH playerctlfor MPRIS playback control- Firefox holding the video to mirror
lz4(Python) to read Firefox's session cache
Without them the server starts normally and simply does not expose these five tools, instead of failing when they are called.
Installation en une ligne
Configuration Claude Desktop / Claude Code (mcpServers) :
Setup
1. Install dependencies
2. Discover your device
Note the device name (e.g. 55OLED705/12, Living Room TV).
3. Configure
Copy config.example.yaml to config.yaml:
4. Run
Or with environment variable:
The code lives in the catt_mcp package (catt_mcp/server.py, catt_mcp/sync_watcher.py),
so it can be installed next to other MCP servers without module name clashes.
The dual-screen tools (dual_cast, dual_resync, dual_offset) drive the TV through
ADB and need its IP address. Set it with TV_HOST (or tv.host in config.yaml),
for example TV_HOST="192.0.2.10"; the built-in default is only a placeholder.
Claude Desktop Configuration
License
MIT
Part of the Lyra ecosystem
Source: README.md at commit 9709a1e
Tools
0Version history
2- v0.3.0LatestSep 25, 2026
- v0.2.1Sep 24, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts