Skip to main content
Glama
MCP Movie Assistant

MCP Movie Assistant

by samuel-adjin

MCP Movie Assistant

An MCP server for exploring TMDB movie data. It exposes tools for searching, discovering, and reading movie information over stdio.

Requirements

  • Node.js 18 or newer

  • npm

  • A TMDB credential

Related MCP server: moviefinder-mcp

Install

npm install

Environment

Create a .env file in the project root.

Supported TMDB variables:

# Preferred for TMDB v4 bearer auth
TMDB_API_KEY=your_tmdb_v4_access_token

# Optional fallback used if no bearer token is present
TMDB_API_KEY_V3=your_tmdb_v3_api_key

# Legacy variable names also supported by the code
API_TOKEN_READ_ONLY=your_tmdb_v4_access_token
API_KEY=your_tmdb_v3_api_key

Notes:

  • The server loads .env on startup.

  • If both token styles are present, the bearer token is used first.

  • Do not commit .env; it is already ignored by git.

Build

Compile the TypeScript source into build/:

npm run build

Run the server

After building, start the MCP server with:

npm start

This runs node ./build/index.js.

Open the MCP Inspector

The inspector script builds first, then launches the inspector against the compiled server:

npm run inspector

Available tools

The server currently exposes these MCP tools:

  • search-movies

  • get-movie-details

  • get-trending-movies

  • get-movie-recommendations

  • discover-movies

Troubleshooting

TMDB request failed with status 401

This usually means the token was not loaded or the wrong variable name is being used.

Check that:

  • Your .env file exists at the project root

  • It contains a valid TMDB token or API key

  • The value is assigned to one of the supported variables above

  • You rebuilt after making code changes with npm run build

Inspector says Not connected

This usually means the inspector tried to launch build/index.js before the project was built, or the process exited early.

Fix:

npm run build
npm run inspector

Project structure

src/
  index.ts     # loads env and starts the stdio transport
  server.ts    # MCP server instance
  tools.ts     # TMDB-backed tools
  api.ts       # TMDB fetch helper
build/         # generated output from tsc

Scripts

  • npm run build - compile TypeScript to build/

  • npm start - run the compiled server

  • npm run inspector - build and open the MCP inspector

  • npm test - placeholder test script

License

No license has been declared in this repository yet.

Available Tools

5 tools
discover-moviesC

Discover movies based on various criteria using the TMDB API

Inputs: page, year, sortBy, genreIds, +8 more.

get-movie-detailsC

Get details for a specific movie using the TMDB API

Inputs: movieId (required), language.

get-movie-recommendationsC

Get movie recommendations based on a specific movie using the TMDB API

Inputs: movieId (required), page, language.

search-moviesC

Search for movies using the TMDB API

Inputs: query (required), page, year.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: searching, getting details, trending, recommendations, and discovery. No ambiguity between them.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (search-movies, get-movie-details, get-trending-movies, get-movie-recommendations, discover-movies). The use of 'discover' is a minor deviation but still fits the pattern.

    Tool Count5/5

    With 5 tools, the server is well-scoped for a movie assistant. It covers core functionalities without being too minimal or overwhelming.

    Completeness4/5

    The tool set covers essential movie operations: search, details, trending, recommendations, and discovery. Minor gaps like genre lists or ratings could be added, but the core experience is complete.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      An MCP server that wraps The Movie Database (TMDB) API, enabling search for movies and TV shows, retrieval of movie details, recommendations, similar movies, trending content, streaming providers, and movie discovery.
      8
      -
    • 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
      -
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for The Movie Database (TMDB): search and look up movies, TV shows and people, and read IMDb/Rotten Tomatoes/Metacritic ratings (via OMDb) in the same call.
      2
      33
      373 npm
      7
      MIT