The TMDB MCP Server integrates with The Movie Database (TMDB) API through the Model Context Protocol. This enables AI assistants like Claude to search for movies, retrieve movie details, and generate movie-related content through a structured interface.
Clone the repository and navigate to the project directory:
git clone https://github.com/your-username/tmdb-mcp.git
cd tmdb-mcp
Install dependencies:
npm install
Configure your TMDB API key:
.env
file in the project rootTMDB_API_KEY=your_api_key_here
Build the project:
npm run build
Start the server:
npm start
{
"mcpServers": {
"tmdb-mcp": {
"command": "node",
"args": ["/absolute/path/to/your/tmdb-mcp/build/index.js"]
}
}
}
The server provides several types of resources for interacting with movie data:
Static Resources:
tmdb://info
- Information about TMDB APItmdb://trending
- Currently trending moviesResource Templates:
tmdb://movie/{id}
- Detailed information about a specific movie by IDThe server supports specialized prompts for movie-related content:
Movie Reviews: Generate customized movie reviews with specified style and rating
Movie Recommendations: Get personalized recommendations based on genres and mood
Several tools are available for movie exploration:
Search Movies: Find movies by title or keywords
Get Trending Movies: Retrieve trending movies for day or week
Get Similar Movies: Find movies similar to a specified movie
You can interact with the server using natural language queries:
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.