
Plex-MCP
Servidor Plex MCP
1
Github Watches
1
Github Forks
0
Github Stars
Plex MCP Server
This is a Python-based MCP server that integrates with the Plex Media Server API to search for movies and manage playlists. It uses the PlexAPI library for seamless interaction with your Plex server.
Setup
Prerequisites
- Python 3.8 or higher
-
uv
package manager - A Plex Media Server with API access
Installation
-
Clone this repository:
git clone <repository-url> cd plex-mcp
-
Install dependencies with
uv
:uv venv source .venv/bin/activate uv sync
-
Configure environment variables for your Plex server:
-
PLEX_TOKEN
: Your Plex authentication token -
PLEX_SERVER_URL
: Your Plex server URL (e.g., http://192.168.1.100:32400)
-
Finding Your Plex Token
You can find your Plex token in this way:
- Sign in to Plex Web App
- Open Developer Tools
- In Console tab, paste and run:
window.localStorage.getItem('myPlexAccessToken')
Usage with Claude
Add the following configuration to your Claude app:
{
"mcpServers": {
"plex": {
"command": "uv",
"args": [
"--directory",
"FULL_PATH_TO_PROJECT/plex-mcp",
"run",
"plex-mcp.py"
],
"env": {
"PLEX_TOKEN": "YOUR_PLEX_TOKEN",
"PLEX_SERVER_URL": "YOUR_PLEX_SERVER_URL"
}
}
}
}
Available Commands
The Plex MCP server exposes these commands:
Command | Description | OpenAPI Reference |
---|---|---|
search_movies |
Search for movies in your library by title | /library/sections/{sectionKey}/search |
get_movie_details |
Get detailed information about a specific movie | /library/metadata/{ratingKey} |
get_movie_genres |
Get the genres for a specific movie | /library/sections/{sectionKey}/genre |
list_playlists |
List all playlists on your Plex server | /playlists |
get_playlist_items |
Get the items in a specific playlist | /playlists/{playlistID}/items |
create_playlist |
Create a new playlist with specified movies | /playlists |
delete_playlist |
Delete a playlist from your Plex server | /playlists/{playlistID} |
add_to_playlist |
Add a movie to an existing playlist | /playlists/{playlistID}/items |
recent_movies |
Get recently added movies from your library | /library/recentlyAdded |
Testing
The repository includes a test script to verify connectivity and functionality:
-
simple-direct-plex-test.py
- A direct PlexAPI test that doesn't use the MCP server
Troubleshooting
If you encounter connection issues, try these steps:
-
Verify your environment variables are set correctly:
echo $PLEX_SERVER_URL echo $PLEX_TOKEN
-
Test direct connectivity to your Plex server:
python simple-direct-plex-test.py
相关推荐
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.
Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)
Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.
Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo
🧑🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.
Reviews

user_c3YQlpIn
I have been using plex-mcp, developed by djbriane, and it has greatly enhanced my experience with Plex. The seamless integration and user-friendly interface make it easy to manage my media content. With the comprehensive documentation provided, setup was a breeze. Highly recommend checking it out: https://github.com/djbriane/plex-mcp.