Provides AI assistants with comprehensive access to a Plex Media Server.
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to your Plex Media Server. Query your libraries, get viewing statistics, and manage your media through natural language interactions.
This MCP server transforms your Plex Media Server into an AI-queryable database. Ask your AI assistant questions like:
# Clone the repository
git clone https://github.com/niavasha/plex-mcp-server.git
cd plex-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
Get your Plex token (see instructions below)
Create environment file:
# Copy the example environment file
cp .env.example .env
# Edit with your details
PLEX_URL=http://localhost:32400
PLEX_TOKEN=your_plex_token_here
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"plex": {
"command": "node",
"args": ["/path/to/plex-mcp-server/build/index.js"],
"env": {
"PLEX_URL": "http://localhost:32400",
"PLEX_TOKEN": "your_plex_token_here"
}
}
}
}
Once configured, you can ask your AI assistant:
š¬ "What movies did I watch last week?"
šŗ "Show me my most popular TV shows this month"
š "Give me viewing statistics for the past 30 days"
š "Search for Christopher Nolan movies in my library"
ā¶ļø "What's on my continue watching list?"
š "List all my Plex libraries"
Function | Description | Example Usage |
---|---|---|
get_libraries | List all Plex libraries | "What libraries do I have?" |
search_media | Search across all media | "Find movies with Tom Hanks" |
get_recently_added | Recently added content | "What's new on my server?" |
get_on_deck | Continue watching list | "What should I continue watching?" |
get_media_details | Detailed media info | "Tell me about The Matrix" |
get_recently_watched | Recently watched content | "What did I watch yesterday?" |
get_fully_watched | Completed content | "Show me all watched movies" |
get_watch_history | Detailed watch sessions | "Show my viewing history" |
get_watch_stats | Viewing analytics | "My watching statistics" |
get_user_stats | User activity data | "Who watches the most?" |
get_library_stats | Library information | "Tell me about my movie library" |
get_popular_content | Most popular media | "What's trending on my server?" |
Alternative method:
http://YOUR_PLEX_IP:32400/web/index.html#!/settings/account
plex-mcp-server/
āāā src/
ā āāā index.ts # Main MCP server implementation
āāā build/ # Compiled JavaScript output
āāā package.json # Node.js dependencies and scripts
āāā tsconfig.json # TypeScript configuration
āāā .env.example # Environment variables template
āāā README.md # This file
āāā LICENSE # MIT License
# Development mode with auto-reload
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Run tests (if implemented)
npm test
# Clone and setup
git clone https://github.com/niavasha/plex-mcp-server.git
cd plex-mcp-server
npm install
# Development
npm run dev
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)Connection refused:
PLEX_URL
in your .env
fileAuthentication errors:
Empty responses:
MCP client issues:
build/index.js
is correctThis project is licensed under the MIT License - see the LICENSE file for details.
Built with ā¤ļø for the Plex and AI community
Connects Large Language Models (LLMs) with Guild Wars 2 data sources. Requires a Guild Wars 2 API key for wallet functionality.
MCP to interface with multiple blockchains, staking, DeFi, swap, bridging, wallet management, DCA, Limit Orders, Coin Lookup, Tracking and more.
A 3D Printing MCP server that allows for querying for live state, webcam snapshots, and 3D printer control.
Interact with EduBase, a comprehensive e-learning platform with advanced quizzing, exam management, and content organization capabilities
generate lyrics, song and background music(instrumental)
PiAPI MCP server makes user able to generate media content with Midjourney/Flux/Kling/Hunyuan/Udio/Trellis directly from Claude or any other MCP-compatible apps.
A virtual travel environment for an avatar on Google Maps, utilizing various Google Maps and optional AI image generation APIs.
MCP Server for DealX platform
Enable AI Agents to purchase anything in a secure way using Fewsats
Fulcra Context MCP server for accessing your personal health, workouts, sleep, location, and more, all privately. Built around Context by Fulcra.