plex mcp for VS Code
io.github.dustinhansen/plex-mcp
Full-library Plex access for AI agents: watched state, all-user watch history, safe curation writes.
client:VS Code
transport:stdio
runtime:npm
Install plex mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "plex-url",
"description": "PLEX_URL",
"password": true
},
{
"type": "promptString",
"id": "plex-token",
"description": "PLEX_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "plex-allow-playback",
"description": "PLEX_ALLOW_PLAYBACK",
"password": true
},
{
"type": "promptString",
"id": "plex-read-only",
"description": "PLEX_READ_ONLY",
"password": true
},
{
"type": "promptString",
"id": "tautulli-url",
"description": "TAUTULLI_URL",
"password": true
},
{
"type": "promptString",
"id": "tautulli-api-key",
"description": "TAUTULLI_API_KEY",
"password": true
}
],
"servers": {
"plex-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dustinhansen/plex-mcp"
],
"env": {
"PLEX_URL": "${input:plex-url}",
"PLEX_TOKEN": "${input:plex-token}",
"PLEX_ALLOW_PLAYBACK": "${input:plex-allow-playback}",
"PLEX_READ_ONLY": "${input:plex-read-only}",
"TAUTULLI_URL": "${input:tautulli-url}",
"TAUTULLI_API_KEY": "${input:tautulli-api-key}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs