Allows sharing of Trakt check-ins to Mastodon social media accounts.
Provides access to Trakt.tv entertainment data, including trending shows/movies, user watch history, and comments. Enables checking in to shows, searching for content, and sharing activity to social platforms.
Enables sharing of Trakt check-ins to Tumblr blogs.
๐ฌ MCP Trakt: Your AI's Gateway to Entertainment Data
A Model Context Protocol (MCP) server that creates a bridge between AI language models and the Trakt.tv API, allowing LLMs to access real-time entertainment data and personal Trakt viewing history. Built with a domain-focused architecture using FastMCP, providing clean separation of concerns across authentication, shows, movies, user data, comments, search, and check-in functionality.
๐ฅ๏ธ An AI Experiment
Other than this paragraph, everything here has been generated by AI, including the code. I had a goal to learn more about MCP and have been playing a lot with Cursor, so it seemed like a natural next move to bring these together. The result was this project. All changes moving forward will also be done by AI.
Related MCP server: FastAPI MCP Server
๐ About MCP & Trakt
Model Context Protocol (MCP) enables AI models to interact with external systems through standardized tools and resources. Trakt.tv is a comprehensive platform for tracking TV shows and movies with 14+ million users and extensive APIs for developers.
๐ Quick Start
Docker Quickstart
Local Installation
Clone this repository
git clone https://github.com/yourusername/mcp-trakt.git cd mcp-traktInstall dependencies
pip install -r requirements.txtSet up your environment
cp .env.example .envThen edit
.envto add your Trakt API credentials:TRAKT_CLIENT_ID=your_client_id TRAKT_CLIENT_SECRET=your_client_secretRun the server
python server.py
Installing in Claude Desktop
Add to your Claude Desktop MCP configuration file:
โจ Features
๐ Public Trakt Data
Access trending and popular shows and movies
Discover the most favorited, played, and watched content
Get real-time data from Trakt's global community
Formatted responses with titles, years, and popularity metrics
View detailed ratings for shows and movies including average scores and distribution
๐ค Personal Trakt Data
View Your Watched Shows: Get a complete list of shows you've personally watched
See your exact last-watched dates for each series
Track how many times you've watched each show
Check in to shows you're currently watching to mark them as watched
By show ID (more precise) or show title (more convenient)
Include custom messages with your check-ins
See when you watched the episode in human-readable format
Search for shows to find their details and IDs
Manage your ratings: View, add, and remove personal ratings for movies, shows, seasons, and episodes with pagination support
Manage your watchlist: View, add, and remove items from your watchlist with pagination and sorting support
Filter by type (all, movies, shows, seasons, episodes)
Sort by multiple criteria (rank, added, title, released, runtime, popularity, percentage, votes)
Add optional notes to watchlist items (VIP feature, 500 char limit)
Secure authentication with Trakt through device code flow
Personal data is fetched directly from your Trakt account
๐ฌ Comments & Reviews
View comments for shows and movies: Read what others are saying about your favorite content
See comments for specific seasons and episodes: Get insights about particular parts of a show
View individual comments and their replies: Engage with the community's discussions
Spoiler protection: Comments with spoilers are hidden by default
Toggle spoiler visibility: Choose whether to show or hide spoilers
View reviews: Longer, more detailed comments are marked as reviews
See ratings distribution: View how many users gave each rating from 1-10
๐ General Features
Exposes Trakt API data through MCP resources
Provides tools for fetching real-time entertainment information
Enables AI models to offer personalized entertainment recommendations
Simple authentication and logout process
Pagination support for list endpoints (trending, popular, favorited, played, watched, search, comments, ratings, watchlist) - pass
page: intfor single-page results with metadata (PaginatedResponse), or omitpageto auto-fetch all results as a flat list
๐ฅ Real-Time Trending Data
Access currently trending TV shows with live viewer counts
Get trending movies updated in real-time
See what's popular across Trakt's global community of 14+ million users
Examples: The White Lotus (2021), Daredevil: Born Again (2025), Black Bag (2025)
๐ Available Resources
MCP resources provide static data endpoints that AI models can access. These URIs expose Trakt data through a standardized interface.
Show Resources
Resource | Description | Example Data |
| Most watched shows over the last 24 hours | Show title, year, watchers count |
| Most popular shows based on ratings | Show title, year, popular score |
| Most favorited shows | Show title, year, favorites count |
| Most played shows | Show title, year, play count |
| Most watched shows by unique users | Show title, year, watcher count |
Movie Resources
Resource | Description | Example Data |
| Most watched movies over the last 24 hours | Movie title, year, watchers count |
| Most popular movies based on ratings | Movie title, year, popular score |
| Most favorited movies | Movie title, year, favorites count |
| Most played movies | Movie title, year, play count |
| Most watched movies by unique users | Movie title, year, watcher count |
User Resources
Resource | Description | Example Data |
| Current authentication status | Authentication status, token expiry |
| Shows watched by the authenticated user | Show title, year, last watched date, play count |
| Movies watched by the authenticated user | Movie title, year, last watched date, play count |
๐ ๏ธ Available Tools
MCP tools are interactive functions that AI models can call with parameters. Use these to fetch, search, and manage Trakt data.
๐ Using with Claude
Once installed, Claude can use this MCP server to answer questions about entertainment data. Here are some examples to get you started.
"What shows are trending right now?"
"Show me the shows I've watched" (requires authentication)
"What's the rating for Game of Thrones?"
Public Data (No Authentication Required):
"Can you recommend some popular movies this week?"
"What are the most watched shows of the month?"
"Search for shows like 'Breaking Bad'"
"Search for movies like 'The Godfather'"
"Show me comments for Breaking Bad"
"What are people saying about The Godfather movie?"
"Show me comments for Season 1 of Stranger Things"
"Get comments for Season 2 Episode 5 of Game of Thrones"
"Show me comment #12345 with its replies"
"Show me comments for Breaking Bad but include spoilers"
"Show me the most liked comments for Breaking Bad"
"Get the highest rated comments for The Godfather movie"
"Show me the comments with most replies for Season 1 of Stranger Things"
"Show me the rating distribution for The Godfather"
"How highly rated is Breaking Bad?"
"Show me trailers for TRON: Legacy"
"Get videos for Game of Thrones"
"What trailers are available for The Godfather?"
"Get a detailed summary of Breaking Bad"
"Show me details about The Godfather movie"
"Give me basic info for Game of Thrones"
Personal Data (Requires Authentication):
"What was the last show I watched?"
"Show me the movies I've watched"
"What was the last movie I watched?"
"Show me my 10/10 rated movies"
"Add a 9/10 rating for Breaking Bad"
"Show me my watchlist"
"What movies are on my watchlist?"
"Add The Godfather to my watchlist"
"Add Breaking Bad to my watchlist with a note" (VIP)
"Remove The Dark Knight from my watchlist"
"Show me my watchlist sorted by when I added them"
"Check me in to Season 2 Episode 5 of Breaking Bad"
"Check me in to Season 1 Episode 3 of show ID 1388"
๐ค Personal Data Access
With authentication, you can access:
Your complete watched show and movie history
Last watched dates for each show and movie
Number of times you've watched each show and movie
Check in to shows you're currently watching and track your progress
Personal viewing statistics
Your complete watchlist with filtering and sorting options
Add and remove items from your watchlist
Add personal notes to watchlist items (VIP feature)
All data is fetched directly from your Trakt account in real-time.
๐ Authentication
The server uses Trakt's device authentication flow:
When you request user-specific data, the server will automatically initiate authentication if needed
You'll receive a code and a URL to visit on your browser
After entering the code on the Trakt website and authorizing the app, inform Claude that you've completed the authorization
Claude will check the authentication status and then fetch your personal data
Your authentication token is stored securely in
auth_token.jsonfor future requests
You can log out at any time using the clear_auth tool.
๐ณ Docker Deployment
Using docker run
Using docker compose
This runs the server on http://localhost:8080 and proxies MCP requests over SSE (HTTP transport).
๐งช Development & Testing
For developers working with or extending this MCP server, here are testing tools and development workflows.
๐ AI-Powered Development Experience
This project was built using AI-assisted development tools:
Cursor - AI-powered code editor for rapid development
Aider - AI pair programming tool for code collaboration
Claude Code - Claude's dedicated coding interface
Testing with MCP Inspector
Validate your MCP server implementation and explore available tools, resources, and prompts.
Running Tests
Ensure code quality with pytest, type checking, and linting before making changes.