Skip to main content
Glama

tautulli_activity

Check current Plex streaming activity to see who's watching what, playback status, and quality before restarting Plex or rebooting servers.

Instructions

Get current Plex streaming activity — who's watching what, playback state, progress, and quality.

Use this before restarting Plex or rebooting servers to check for active streams.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the `tautulli_activity` MCP tool. It retrieves streaming activity from Tautulli and formats it into a human-readable string.
    @mcp.tool()
    async def tautulli_activity() -> str:
        """Get current Plex streaming activity — who's watching what, playback state, progress, and quality.
    
        Use this before restarting Plex or rebooting servers to check for active streams.
        """
        data = await _api("get_activity")
        stream_count = int(data.get("stream_count", 0))
        sessions = data.get("sessions", [])
    
        if not sessions:
            return "No active streams on Plex."
    
        lines = [f"{stream_count} active stream(s):\n"]
        for s in sessions:
            lines.append(f"  • {_fmt_session(s)}")
    
        # Bandwidth summary
        total_bw = data.get("total_bandwidth", 0)
        wan_bw = data.get("wan_bandwidth", 0)
        lan_bw = data.get("lan_bandwidth", 0)
        if total_bw:
            lines.append(f"\nBandwidth: {int(total_bw) / 1000:.1f} Mbps total (LAN: {int(lan_bw) / 1000:.1f}, WAN: {int(wan_bw) / 1000:.1f})")
    
        return "\n".join(lines)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lodordev/mcp-tautulli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server