MCP server for The Movie Database (TMDB) API
npm install tmdb-mcp-serverA Model Context Protocol (MCP) server that provides access to The Movie Database (TMDB) API. This server enables Claude and other MCP clients to search for movies, TV shows, and people, as well as get detailed information and recommendations.
1. Clone the repository:
``bash`
git clone https://github.com/tcehjaava/tmdb-mcp-server.git
cd tmdb-mcp-server
2. Install dependencies:
`bash`
npm install
3. Create a .env file with your TMDB access token:`bash`
cp .env.example .envEdit .env and add your TMDB_ACCESS_TOKEN
4. Build the server:
`bash`
npm run build
Add the server to your Claude Desktop configuration:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json
Windows:
`json`
{
"mcpServers": {
"tmdb": {
"command": "node",
"args": ["/absolute/path/to/tmdb-mcp-server/build/index.js"],
"env": {
"TMDB_ACCESS_TOKEN": "your_token_here"
}
}
}
}
The server runs on stdio by default, making it compatible with any MCP client that supports stdio transport.
The server also supports Streamable HTTP transport for remote deployment:
`bash`
MCP_TRANSPORT=http PORT=3000 node build/index.js
See TRANSPORT.md for detailed deployment instructions for platforms like Railway.
Run the server in watch mode for development:
`bash`
npm run watch
Use the MCP Inspector for debugging:
`bash`
npm run inspector
The Inspector provides a web interface for testing and debugging MCP tools.
Format code with Prettier:
`bash``
npm run format
Here are some example queries you can try with Claude:
- "Find Japanese sci-fi movies from 2020 onwards with a rating above 7"
- "What are the top trending movies this week?"
- "Get me recommendations based on The Matrix"
- "Search for Christopher Nolan movies"
- "Show me details about the TV show Breaking Bad"
- "Find Korean dramas with high ratings"
TMDB API has rate limits on their free tier:
- 50 requests per second
- Consider implementing caching for production use
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
See CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with the Model Context Protocol SDK
- Data provided by The Movie Database (TMDB)
- This product uses the TMDB API but is not endorsed or certified by TMDB