DW

drakonkat/wizzy-mcp-tmdb

开发工具

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

4 stars 5 forks 质量 61 趋势 12MIT

The wizzy-mcp-tmdb project is an MCP (Model Context Protocol) server implemented in JavaScript that provides tools to search and retrieve information from The Movie Database (TMDB).

概览

The wizzy-mcp-tmdb project is an MCP (Model Context Protocol) server implemented in JavaScript that provides tools to search and retrieve information from The Movie Database (TMDB). It allows AI clients to access movie, TV show, and person data through a standardized protocol. - : Perform multi-search across movies, TV shows, and people using the search_tmdb tool. - : Fetch detailed information for specific items using the get_tmdb_details tool. - : Retrieve trending content across all media types with the trending_all tool. - Node.js version 18 or higher (required for global fetch support) - A TMDB API key (Bearer token) from your admin, used with the TNL TMDB proxy (production-api.tnl.one) 1. Clone the repository and navigate to the project directory. 3. Set up your TMDB API key as an environment variable: The server communicates over stdio and should be configured in your MCP-compatible client (e.g., IDE or chat client) with the command node mcp-tmdb-server.

README

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

wizzy-mcp-tmdb

Project Overview and Purpose

The wizzy-mcp-tmdb project is an MCP (Model Context Protocol) server implemented in JavaScript that provides tools to search and retrieve information from The Movie Database (TMDB). It allows AI clients to access movie, TV show, and person data through a standardized protocol.

Key Features

  • Search Movies: Perform multi-search across movies, TV shows, and people using the search_tmdb tool.
  • Get Details: Fetch detailed information for specific items using the get_tmdb_details tool.
  • Trending Content: Retrieve trending content across all media types with the trending_all tool.

Installation

Prerequisites

  • Node.js version 18 or higher (required for global fetch support)
  • A TMDB API key (Bearer token) from your admin, used with the TNL TMDB proxy (production-api.tnl.one)

Setup

  1. Clone the repository and navigate to the project directory.

  2. Install dependencies:

    npm install
    
  3. Set up your TMDB API key as an environment variable:

    • On Windows PowerShell:

      $env:TMDB_AUTH_TOKEN="YOUR_TNL_PROXY_BEARER_TOKEN"
      
    • On macOS/Linux:

      export TMDB_AUTH_TOKEN="YOUR_TNL_PROXY_BEARER_TOKEN"
      

Usage

Starting the MCP Server

To start the server:

npm start

The server communicates over stdio and should be configured in your MCP-compatible client (e.g., IDE or chat client) with the command node mcp-tmdb-server.js and the TMDB_AUTH_TOKEN environment variable.

MCP Integration Examples

Here are code snippets showing how to integrate with the MCP tools:

Search for Movies

// Example MCP tool call for searching
{
  "method": "tools/call",
  "params": {
    "name": "search_tmdb",
    "arguments": {
      "query": "dune",
      "page": 1,
      "language": "en-US",
      "include_adult": false
    }
  }
}

Get Movie Details

// Example MCP tool call for getting details
{
  "method": "tools/call",
  "params": {
    "name": "get_tmdb_details",
    "arguments": {
      "type": "movie",
      "id": 438631,
      "append": "credits,images"
    }
  }
}
// Example MCP tool call for trending content
{
  "method": "tools/call",
  "params": {
    "name": "trending_all",
    "arguments": {
      "time_window": "day",
      "page": 1,
      "language": "en-US"
    }
  }
}

MCP Client Integration

Per integrare questo MCP server nel tuo client MCP (come un IDE o un client di chat compatibile), segui questi passi:

  1. Installa il pacchetto npm se necessario:

    npm install -g wizzy-mcp-tmdb
在 GitHub 查看完整 README

安装

npx wizzy-mcp-tmdb
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "tmdb": { "command": "npx", "args": ["wizzy-mcp-tmdb"], "env": { "TMDB_AUTH_TOKEN": "YOUR_TNL_PROXY_BEARER_TOKEN" }, "alwaysAllow": [ "get_watch_providers", "discover_tv", "discover_by_provider" ] } } }