Skip to main content
Glama
moviefinder-mcp

moviefinder-mcp

moviefinder-mcp

The Movie Database (TMDB) APIをラップしたMCPサーバーです。@modelcontextprotocol/sdkとstdioトランスポートを使用して構築されています。

ツール

ツール

説明

search_movies

タイトルで映画を検索します(オプションでyearフィルター指定可能)。

search_tv

タイトルでテレビ番組を検索します。

get_movie_details

主要キャスト、監督、予告編を含む映画の詳細情報を取得します。

get_recommendations

TMDBによる映画のおすすめを取得します。

get_similar

指定した映画に類似した映画を取得します。

get_trending

day(日次)またはweek(週次)のmovie / tv / allのトレンドを取得します。

where_to_stream

映画の配信・レンタル・購入プラットフォームを取得します(デフォルトの国はUS)。

discover_movies

ジャンル名、最低評価、年、並び順で映画を検索します。

すべてのツールは要約されたJSON(ID、タイトル、年、概要、評価、ポスターURLなど)を返します。TMDBの冗長な生データフィールドは削除されています。

Related MCP server: wizzy-mcp-tmdb

セットアップ

1. TMDB APIトークンの取得

  1. https://www.themoviedb.org/ で無料アカウントを作成します。

  2. https://www.themoviedb.org/settings/api にアクセスし、API Read Access Token (v4) をコピーします。これは長いJWTであり、v3のAPIキーではありません。

2. インストールとビルド

npm install
npm run build

3. 環境設定

.env.exampleを.envにコピーし、トークンを貼り付けます:

cp .env.example .env
TMDB_API_KEY=eyJhbGciOi...your_v4_read_access_token...

4. サーバーの実行

npm start

このサーバーはstdio経由でMCP通信を行うため、対話形式で実行するのではなく、MCPクライアント(Claude Desktopなど)によって起動されることを想定しています。

Claude Desktopへの登録

claude_desktop_config.jsonにエントリを追加します:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "moviefinder": {
      "command": "node",
      "args": ["/absolute/path/to/moviefinder-mcp/dist/index.js"],
      "env": {
        "TMDB_API_KEY": "eyJhbGciOi...your_v4_read_access_token..."
      }
    }
  }
}

設定を編集した後、Claude Desktopを再起動してください。その後、すべての会話でmoviefinderツールが表示されるようになります。

スクリプト

スクリプト

内容

npm run build

TypeScriptをdist/にコンパイルします。

npm start

コンパイルされたサーバーを実行します (node dist/index.js)。

npm run dev

TypeScriptのウォッチモードを実行します。

エラーハンドリング

サーバーは一般的なTMDBの失敗に対して役立つメッセージを返します:

  • 401 — トークンがない、またはキーの種類が間違っている(v4の読み取り専用トークンである必要があります)。

  • 404 — 要求された映画やリソースが存在しません。

  • 429 — レート制限。存在する場合はRetry-After値が含まれます。

注意事項

  • ジャンルリストは/genre/movie/listから一度だけ取得され、メモリ内にキャッシュされます。

  • ポスターURLはhttps://image.tmdb.org/t/p/w500を使用します。

  • データベースやログフレームワークは使用していません(設計上の仕様です)。

Available Tools

8 tools
discover_moviesC

Discover movies by genre name, minimum rating, year, and sort order. Genre is resolved by name (e.g. 'Action').

Inputs: genre, min_rating, year, sort_by.

get_movie_detailsA

Get full details for a movie, including top cast, directors, and trailer.

Inputs: movie_id (required).

get_recommendationsC

Get TMDB recommendations for a given movie.

Inputs: movie_id (required).

get_similarC

Get movies similar to a given movie.

Inputs: movie_id (required).

search_moviesA

Search TMDB for movies by title. Optionally filter by release year.

Inputs: query (required), year.

search_tvB

Search TMDB for TV shows by title.

Inputs: query (required).

where_to_streamA

Find streaming, rental, and purchase providers for a movie in a given country (default US). Data sourced from JustWatch via TMDB.

Inputs: movie_id (required), country_code.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct action: discover by criteria, get full details, get recommendations, get similar, get trending, search movies, search TV, and find streaming providers. No meaningful overlap exists.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern (e.g., discover_movies, get_movie_details, search_tv). 'where_to_stream' is a minor deviation but still clearly readable.

    Tool Count5/5

    8 tools cover the main use cases for a movie/TV finder: discovery, search, details, trends, recommendations, similar, and streaming info. The scope is well-balanced.

    Completeness4/5

    The set covers most core movie operations, but lacks get_tv_details for TV shows. Other gaps like user ratings or reviews are acceptable for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      D
      quality
      D
      maintenance
      An MCP server that allows users to search for movies, get detailed information, receive genre-based recommendations, and discover popular/trending films using OMDb and TMDb APIs.
      5
      15 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A MCP server for The Movie Database API that enables AI assistants to search and retrieve movie, TV show, and person information.
      23
      10 npm
      4
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      An MCP server that wraps the TMDB API, enabling search of movies and TV shows, retrieval of details, trending titles, recommendations, and streaming provider information.
      8
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A robust MCP server that wraps The Movie Database API, enabling LLMs to search movies, get details, popular movies, and recommendations.
      -