- Explore MCP Servers
- tautulli-mcp
Tautulli Mcp
What is Tautulli Mcp
Tautulli-MCP is a FastMCP server that enables interaction with a Tautulli instance through the Model Context Protocol (MCP) to retrieve statistics and activity from a Plex media server.
Use cases
Use cases for Tautulli-MCP include tracking real-time activity on Plex servers, analyzing user watch history, generating statistics for media consumption, and integrating with other applications for enhanced media management.
How to use
To use Tautulli-MCP, ensure you have a running Tautulli instance and obtain the API Key. Clone the repository, activate the virtual environment, and set the necessary environment variables including TAUTULLI_URL and TAUTULLI_API_KEY. Then, you can utilize the exposed MCP tools for various functionalities.
Key features
Key features of Tautulli-MCP include the ability to connect to a Tautulli instance using an API Key, a custom asynchronous HTTP client for API interactions, and various MCP tools such as retrieving current Plex activity, homepage statistics, watch history, and listing known users.
Where to use
Tautulli-MCP is primarily used in environments where Plex media servers are deployed, particularly for monitoring and managing media server activities and statistics.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Tautulli Mcp
Tautulli-MCP is a FastMCP server that enables interaction with a Tautulli instance through the Model Context Protocol (MCP) to retrieve statistics and activity from a Plex media server.
Use cases
Use cases for Tautulli-MCP include tracking real-time activity on Plex servers, analyzing user watch history, generating statistics for media consumption, and integrating with other applications for enhanced media management.
How to use
To use Tautulli-MCP, ensure you have a running Tautulli instance and obtain the API Key. Clone the repository, activate the virtual environment, and set the necessary environment variables including TAUTULLI_URL and TAUTULLI_API_KEY. Then, you can utilize the exposed MCP tools for various functionalities.
Key features
Key features of Tautulli-MCP include the ability to connect to a Tautulli instance using an API Key, a custom asynchronous HTTP client for API interactions, and various MCP tools such as retrieving current Plex activity, homepage statistics, watch history, and listing known users.
Where to use
Tautulli-MCP is primarily used in environments where Plex media servers are deployed, particularly for monitoring and managing media server activities and statistics.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Tautulli MCP Server
A FastMCP server that allows interaction with a Tautulli instance via the Model Context Protocol (MCP) to retrieve Plex media server statistics and activity.
Features
- Connects to a specified Tautulli instance using an API Key.
- Uses a custom asynchronous HTTP client for API interactions.
- Exposes MCP tools:
get_tautulli_activity(): Retrieves current Plex activity.get_tautulli_home_stats(time_range=None, stats_count=None): Gets homepage statistics.get_tautulli_history(user_id=None, section_id=None, length=25): Retrieves watch history with optional filters.get_tautulli_users(): Lists users known to Tautulli.
Setup
-
Prerequisites:
- A running Tautulli instance.
- The API Key from your Tautulli instance (Settings -> Web Interface -> API -> API Key).
- Python 3.10+.
uv(recommended for package management).
-
Installation (as part of the
yarr-mcpproject):
Dependencies (fastmcp,python-dotenv,httpx) are managed by the mainyarr-mcpproject’spyproject.toml.Clone the repository (if not already done):
git clone https://github.com/jmagar/yarr-mcp.git cd yarr-mcpEnsure you have activated the main project’s virtual environment:
# From the yarr-mcp project root source .venv/bin/activate # If dependencies are not installed: uv pip install -r requirements.txt (or similar) -
Configuration:
Set the following environment variables (e.g., in a.envfile in theyarr-mcpproject root):TAUTULLI_URL: The full base URL of your Tautulli instance (e.g.,http://localhost:8181).TAUTULLI_API_KEY: Your Tautulli API Key.TAUTULLI_MCP_TRANSPORT: (Optional)sse(default) orstdio.TAUTULLI_MCP_HOST: (Optional) Host for SSE transport, defaults to0.0.0.0.TAUTULLI_MCP_PORT: (Optional) Port for SSE transport, defaults to8002in the script.TAUTULLI_LOG_LEVEL: (Optional) Logging level (e.g.,INFO,DEBUG). Defaults toINFO.
An example
.env.exampleis insrc/tautulli-mcp/.
Running the Server
Make sure your virtual environment is activated. The server script is src/tautulli-mcp/tautulli-mcp-server.py.
Run the server directly:
```bash
python src/tautulli-mcp/tautulli-mcp-server.py
This will start the server using SSE by default (or as configured by `TAUTULLI_MCP_TRANSPORT`). ## Claude Desktop Configuration For Claude Desktop (primarily with STDIO transport): **MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` **Windows**: `%APPDATA%\Claude\claude_desktop_config.json` **Linux**: `~/.config/Claude/claude_desktop_config.json` ```json { "mcpServers": { "tautulli-mcp": { "command": "python", "args": [ "/absolute/path/to/yarr-mcp/src/tautulli-mcp/tautulli-mcp-server.py" ], "env": { "TAUTULLI_URL": "YOUR_TAUTULLI_URL", "TAUTULLI_API_KEY": "YOUR_TAUTULLI_API_KEY", "TAUTULLI_MCP_TRANSPORT": "stdio" // Recommended for Claude Desktop } } } }
Important: Replace paths and credentials as needed.
Note on SSE Transport:
Claude Desktop doesn’t directly manage SSE servers. For SSE:
- Run
tautulli-mcp-server.pymanually (it defaults to SSE). - Connect SSE clients (e.g., Cline) to
http://<TAUTULLI_MCP_HOST>:<TAUTULLI_MCP_PORT>/mcp.
Usage Examples
- Get current activity:
get_tautulli_activity - Get Tautulli users:
get_tautulli_users - Get recent history for user 123:
get_tautulli_history user_id=123 length=10
Troubleshooting
Common Issues
- Server not in Claude Desktop (STDIO): Check path, Python,
TAUTULLI_MCP_TRANSPORT="stdio"in config, and Claude logs. - SSE Connection Issues: Ensure server script is running,
TAUTULLI_MCP_TRANSPORTissse, check host/port/path in server logs, and firewalls. - Tautulli API Auth Errors: Verify
TAUTULLI_URLandTAUTULLI_API_KEY. - Tool Failures: Check server logs (
tautulli_mcp.logand console).
FastMCP Implementation Notes
- Uses a
lifespanmanager for theTautulliApiClient. - Logging is to console and a rotating file (
tautulli_mcp.log). - Transport defaults to SSE, configurable via
TAUTULLI_MCP_TRANSPORT. - A custom
client.pyhandles HTTP calls to the Tautulli API. # tautulli-mcp
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










