mcp server tmdb
Integrates with The Movie Database (TMDB) API to provide movie information, search capabilities, and recommendations.
Integrates with The Movie Database (TMDB) API to provide movie information, search capabilities, and recommendations.
This MCP server integrates with The Movie Database (TMDB) API to provide movie information, search capabilities, and recommendations.
Before installing and running the TMDB MCP server, ensure you have the following prerequisites installed and configured:
Verify installation: node --version
npm (Node Package Manager)
Verify installation: npm --version
TypeScript
npm install -g typescript
tsc --version
API access must be approved by TMDB
Claude Desktop Application
Linux (modern distributions)
Hardware Requirements
For the best development experience, we recommend: - A code editor with TypeScript support (e.g., VS Code) - Terminal access - Git (for version control)
query
(string): Search queryExample: Search for movies about space exploration
get_recommendations
movieId
(string): TMDB movie IDExample: Get recommendations based on movie ID 550 (Fight Club)
get_trending
timeWindow
(string): Either "day" or "week"The server provides access to TMDB movie information:
tmdb:///movie/<movie_id>
)## Getting Started
Request an API key for developer use
Clone and set up the project:
git clone [repository-url]
cd mcp-server-tmdb
npm install
Build the server:
npm run build
Set up your environment variable:
export TMDB_API_KEY=your_api_key_here
To integrate this server with Claude Desktop, add the following to your app's server configuration file (located at ~/Library/Application Support/Claude/config.json
):
{
"mcpServers": {
"tmdb": {
"command": "/full/path/to/dist/index.js",
"env": {
"TMDB_API_KEY": "your_api_key_here"
}
}
}
}
Replace /full/path/to
with the actual path to your project directory.
To install TMDB Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Laksh-star/mcp-server-tmdb --client claude
Once the server is running with Claude Desktop, you can use commands like:
Search for movies:
"Search for movies about artificial intelligence"
Get trending movies:
"What are the trending movies today?"
"Show me this week's trending movies"
Get movie recommendations:
"Get movie recommendations based on movie ID 550"
Get movie details:
"Tell me about the movie with ID 550"
The server includes comprehensive error handling for: - Invalid API keys - Network errors - Invalid movie IDs - Malformed requests
Error messages will be returned in a user-friendly format through Claude Desktop.
To watch for changes during development:
npm run watch
This MCP server is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
[
{
"description": "Search for movies by title or keywords",
"inputSchema": {
"properties": {
"query": {
"description": "Search query for movie titles",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"name": "search_movies"
},
{
"description": "Get movie recommendations based on a movie ID",
"inputSchema": {
"properties": {
"movieId": {
"description": "TMDB movie ID to get recommendations for",
"type": "string"
}
},
"required": [
"movieId"
],
"type": "object"
},
"name": "get_recommendations"
},
{
"description": "Get trending movies for a time window",
"inputSchema": {
"properties": {
"timeWindow": {
"description": "Time window for trending movies",
"enum": [
"day",
"week"
],
"type": "string"
}
},
"required": [
"timeWindow"
],
"type": "object"
},
"name": "get_trending"
}
]