P

Plex MCP

by dustinhansen · io.github.dustinhansen/plex-mcp

Enables AI assistants to browse an entire media server library—watched and unwatched items, per-user watch history, continue-watching, recommendations, and library statistics—alongside safe curation writes such as playlists, collections, ratings, watched state, and the plex.tv watchlist. Optional playback control and Tautulli statistics extend it, while a read-only mode removes every write.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-dustinhansen-plex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dustinhansen/plex-mcp"
      ],
      "env": {
        "PLEX_URL": "<VALUE>",
        "PLEX_TOKEN": "<YOUR_VALUE>",
        "PLEX_ALLOW_PLAYBACK": "<VALUE>",
        "PLEX_READ_ONLY": "<VALUE>",
        "TAUTULLI_URL": "<VALUE>",
        "TAUTULLI_API_KEY": "<YOUR_VALUE>",
        "PORT": "8627",
        "MCP_HOST": "127.0.0.1",
        "MCP_TRANSPORT": "stdio",
        "MCP_PATH_SECRET": "<VALUE>",
        "MCP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-dustinhansen-plex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dustinhansen/plex-mcp"
      ],
      "env": {
        "PLEX_URL": "<VALUE>",
        "PLEX_TOKEN": "<YOUR_VALUE>",
        "PLEX_ALLOW_PLAYBACK": "<VALUE>",
        "PLEX_READ_ONLY": "<VALUE>",
        "TAUTULLI_URL": "<VALUE>",
        "TAUTULLI_API_KEY": "<YOUR_VALUE>",
        "PORT": "8627",
        "MCP_HOST": "127.0.0.1",
        "MCP_TRANSPORT": "stdio",
        "MCP_PATH_SECRET": "<VALUE>",
        "MCP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-dustinhansen-plex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dustinhansen/plex-mcp"
      ],
      "env": {
        "PLEX_URL": "<VALUE>",
        "PLEX_TOKEN": "<YOUR_VALUE>",
        "PLEX_ALLOW_PLAYBACK": "<VALUE>",
        "PLEX_READ_ONLY": "<VALUE>",
        "TAUTULLI_URL": "<VALUE>",
        "TAUTULLI_API_KEY": "<YOUR_VALUE>",
        "PORT": "8627",
        "MCP_HOST": "127.0.0.1",
        "MCP_TRANSPORT": "stdio",
        "MCP_PATH_SECRET": "<VALUE>",
        "MCP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-dustinhansen-plex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dustinhansen/plex-mcp"
      ],
      "env": {
        "PLEX_URL": "<VALUE>",
        "PLEX_TOKEN": "<YOUR_VALUE>",
        "PLEX_ALLOW_PLAYBACK": "<VALUE>",
        "PLEX_READ_ONLY": "<VALUE>",
        "TAUTULLI_URL": "<VALUE>",
        "TAUTULLI_API_KEY": "<YOUR_VALUE>",
        "PORT": "8627",
        "MCP_HOST": "127.0.0.1",
        "MCP_TRANSPORT": "stdio",
        "MCP_PATH_SECRET": "<VALUE>",
        "MCP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-dustinhansen-plex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dustinhansen/plex-mcp"
      ],
      "env": {
        "PLEX_URL": "<VALUE>",
        "PLEX_TOKEN": "<YOUR_VALUE>",
        "PLEX_ALLOW_PLAYBACK": "<VALUE>",
        "PLEX_READ_ONLY": "<VALUE>",
        "TAUTULLI_URL": "<VALUE>",
        "TAUTULLI_API_KEY": "<YOUR_VALUE>",
        "PORT": "8627",
        "MCP_HOST": "127.0.0.1",
        "MCP_TRANSPORT": "stdio",
        "MCP_PATH_SECRET": "<VALUE>",
        "MCP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-dustinhansen-plex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dustinhansen/plex-mcp"
      ],
      "env": {
        "PLEX_URL": "<VALUE>",
        "PLEX_TOKEN": "<YOUR_VALUE>",
        "PLEX_ALLOW_PLAYBACK": "<VALUE>",
        "PLEX_READ_ONLY": "<VALUE>",
        "TAUTULLI_URL": "<VALUE>",
        "TAUTULLI_API_KEY": "<YOUR_VALUE>",
        "PORT": "8627",
        "MCP_HOST": "127.0.0.1",
        "MCP_TRANSPORT": "stdio",
        "MCP_PATH_SECRET": "<VALUE>",
        "MCP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
PLEX_URL Yes The URL of your Plex Media Server, e.g. http://<plex-host>:32400. Must be an http or https URL.
PLEX_TOKEN secret Yes Your Plex owner/admin X-Plex-Token.
PLEX_ALLOW_PLAYBACK No Set to 1 to register the list_clients and play_item playback tools.
PLEX_READ_ONLY No Set to 1 to register no write or playback tools, regardless of PLEX_ALLOW_PLAYBACK. 0, empty or unset registers them.
TAUTULLI_URL No Tautulli URL. Set together with TAUTULLI_API_KEY to register the Tautulli tools. Must be an http or https URL.
TAUTULLI_API_KEY secret No Tautulli API key. Set together with TAUTULLI_URL to register the Tautulli tools.
PORT No HTTP listen port, an integer from 0 to 65535. Default is 8627. Default: 8627
MCP_HOST No HTTP listen address. Defaults to 127.0.0.1 outside the image, or 0.0.0.0 in the Docker image. Default: 127.0.0.1
MCP_TRANSPORT No Transport mode: stdio (default) or http. Any other value is refused at startup. Default: stdio
MCP_PATH_SECRET No Capability-URL secret for HTTP mode. Required when MCP_TRANSPORT=http. Must be at least 16 characters of letters, digits, -, _, . or ~.
MCP_ALLOW_NO_AUTH No Set to 1 to run HTTP mode without a secret. Intended only for trusted networks.

Similar servers