npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@broville/media-search-mcp

v1.1.0

Published

MCP server for movie and TV show search via TMDB API (v3)

Readme

@broville/media-search-mcp

An MCP (Model Context Protocol) server that lets AI agents search movies, TV shows, and people via the TMDB API v3.

npm version License: MIT


What is this?

This package exposes a set of MCP tools that any MCP-compatible client (Claude Desktop, Cline, Cursor, Roo Code, Hermes Agent, etc.) can use to look up movie and TV show information from The Movie Database (TMDB).

Your agent can:

  • Search for movies, TV shows, and people
  • Get full details (cast, crew, budget, runtime, seasons, episodes)
  • Browse trending content
  • List genres and supported languages

Installation

Global install (recommended)

npm install -g @broville/media-search-mcp

No-install (npx)

npx @broville/media-search-mcp

From source

git clone https://github.com/Broville/media_search_mcp.git
cd media_search_mcp
npm install
npm run build

Prerequisites

You need a free TMDB API key.

  1. Create an account at themoviedb.org
  2. Go to Settings → API and request an API key
  3. Copy your API Read Access Token (or v3 API key)

Set it as an environment variable:

export TMDB_API_KEY=your_tmdb_key_here

💡 If you use 1Password CLI, the server will automatically fall back to op item get "TMDB API Key" --vault Server --field api-key if the env var is not set.


Agent Configuration

Below are setup snippets for popular MCP clients.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "media-search": {
      "command": "npx",
      "args": ["-y", "@broville/media-search-mcp"],
      "env": {
        "TMDB_API_KEY": "your_tmdb_key_here"
      }
    }
  }
}

Restart Claude Desktop after editing. The tools will appear in the 🔧 menu.

Cline / Roo Code / Cursor

Add to their MCP settings (usually JSON):

{
  "mcpServers": {
    "media-search": {
      "command": "npx",
      "args": ["-y", "@broville/media-search-mcp"],
      "env": {
        "TMDB_API_KEY": "your_tmdb_key_here"
      }
    }
  }
}

Hermes Agent

Add to ~/.hermes/profiles/<profile>/config.yaml:

mcp:
  media-search:
    command: npx
    args: ["-y", "@broville/media-search-mcp"]
    env:
      TMDB_API_KEY: "your_tmdb_key_here"

Or with a local install:

mcp:
  media-search:
    command: node
    args: ["/home/echo/.npm-global/lib/node_modules/@broville/media-search-mcp/dist/index.js"]
    env:
      TMDB_API_KEY: "your_tmdb_key_here"

Find the global install path with:

npm root -g

Available Tools

| Tool | Description | |------|-------------| | media_search | Multi-search across movies + TV + people | | media_search_movies | Search movies only (with optional year filter) | | media_search_tv | Search TV shows only (with optional first-air-year) | | media_movie_details | Full movie details by TMDB ID — cast, crew, budget, runtime, revenue, etc. | | media_tv_details | Full TV series details by TMDB ID — seasons, networks, status, creators | | media_tv_season | Season details including episode list | | media_tv_episode | Single episode details | | media_trending | Trending movies/TV by day or week | | media_genres | Genre list for movies or TV | | media_languages | All supported TMDB languages |

All search results include:

  • poster_url (optimal w500 size)
  • backdrop_url (optimal w780 size)
  • still_url / profile_url where applicable

Response Format

All tool responses are JSON strings with a consistent shape:

Search results (multi, movies, TV):

{
  "page": 1,
  "total_pages": 10,
  "total_results": 200,
  "results": [
    {
      "id": 550,
      "media_type": "movie",
      "title": "Fight Club",
      "year": "1999",
      "overview": "...",
      "poster_url": "https://image.tmdb.org/t/p/w500/...jpg",
      "backdrop_url": "https://image.tmdb.org/t/p/w780/...jpg",
      "vote_average": 8.4,
      "vote_count": 28000,
      "popularity": 45.2
    }
  ]
}

Details (movie/TV):

{
  "id": 550,
  "title": "Fight Club",
  "poster_url": "https://image.tmdb.org/t/p/w500/...jpg",
  "backdrop_url": "https://image.tmdb.org/t/p/w780/...jpg",
  "genres": [{"id": 18, "name": "Drama"}],
  "runtime": 139,
  "budget": 63000000,
  "revenue": 100853753,
  ...
}

Example Conversations

User: What movies has Christopher Nolan directed?
Agent: (uses media_searchmedia_movie_details with append=credits)

User: Show me the first season of Breaking Bad.
Agent: (uses media_search_tvmedia_tv_season)

User: What's trending this week?
Agent: (uses media_trending with time_window=week)


Troubleshooting

| Symptom | Fix | |---------|-----| | TMDB_API_KEY not set | Export TMDB_API_KEY or configure it in your agent's MCP settings | | 404 on details | Double-check the TMDB ID (use search first) | | Images not loading | TMDB images require a valid poster_path/backdrop_path; some items don't have artwork | | Tools not showing in Claude | Restart Claude Desktop after editing config |


Development

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run dev

# Type check only
npm run typecheck

Documentation

  • AI_AGENTS.md — Structured integration guide for AI agents (tool schemas, usage patterns, pitfalls, response shapes).
  • CONTRIBUTING.md — How to set up, build, and contribute.
  • CHANGELOG.md — Version history.

License

MIT © Broville

See LICENSE for full text.