WT

wwiens/trakt_mcpserver

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

52 stars 14 forks 质量 83 趋势 34MIT

wwiens/trakt_mcpserver 是一个从 https://github.com/wwiens/trakt_mcpserver. 导入的 MCP 服务器候选服务器。

概览

wwiens/trakt_mcpserver 是一个从 https://github.com/wwiens/trakt_mcpserver. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,连接 AI 语言模型与 Trakt.tv API,使大型语言模型能够访问实时娱乐数据和个人 Trakt 观看历史。采用 FastMCP 构建的领域聚焦架构,提供认证、节目、季节、剧集、电影、人物、用户数据、评论、搜索和签到功能的清晰分离关注点。

🖥️ 一个人工智能实验

除了这段文字,这里的所有内容都是由AI生成的,包括代码。我有一个目标是更多地了解MCP,并且一直在玩Cursor,所以把它们结合起来似乎是自然而然的下一步。结果就是这个项目。今后的所有变动也将由AI完成。

📚 关于MCP和Trakt

模型上下文协议(MCP)使人工智能模型能够通过标准化工具和资源与外部系统交互。Trakt.tv 是一个拥有14+百万用户的综合电视剧和电影追踪平台,并为开发者提供丰富的API。

🚀 快速启动

Docker 快速启动

用 UVX 运行(不克隆,不安装)

需要安装紫外线。

钉在发布标签上以保证可重复性:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

🎬 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, seasons, episodes, movies, people, 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.

📚 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

Create a Trakt API app

You need your own Trakt API app to get a Client ID:

  1. Go to developer.trakt.tv and create an app. Trakt requires a verified GitHub account for this.
  2. App type: choose Development for personal use. Only you and the people you add can sign in.
  3. Redirect URIs: enter http://localhost. The server signs in with the device code flow and never receives a callback, but Trakt requires at least one URI on the app.
  4. Allowed origins: leave blank. They only apply to code running in a web browser.
  5. Copy the Client ID into TRAKT_CLIENT_ID. If Trakt issued your app a Client Secret (older apps have one), set it as TRAKT_CLIENT_SECRET. New apps don’t get one, so leave it unset.

Docker Quickstart

docker run -d --rm --name trakt_mcpserver \
  -e TRAKT_CLIENT_ID=your_client_id \
  -v trakt_auth:/data \
  -p 8080:8080 \
  ghcr.io/wwiens/trakt_mcpserver:latest

Run with uvx (no clone, no install)

Requires uv installed.

The installed package reads credentials from environment variables only. It does not load a .env file, so set TRAKT_CLIENT_ID in the shell or in your MCP client’s env block (see below).

TRAKT_CLIENT_ID=your_client_id uvx trakt-mcp

Pin to a release for reproducibility:

TRAKT_CLIENT_ID=your_client_id uvx [email protected]

Claude Desktop / MCPhub configuration:

{
  "mcpServers": {
    "trakt": {
      "command": "uvx",
在 GitHub 查看完整 README

安装

uvx trakt-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "trakt": { "command": "uvx", "args": ["trakt-mcp"], "env": { "TRAKT_CLIENT_ID": "your_client_id" } } } }