FILM-FINDER MCP Server

FILM-FINDER MCP Server

A simple MCP server for fetching movie and TV show data from TMDB and OMDB APIs. Provides natural language capability for users to search, compare, and analyze movies through AI assistants.

Category
访问服务器

README

FILM-FINDER MCP Server

A simple MCP (Model Context Protocol) server for fetching movie and TV show data from TMDB and OMDB APIs. Provides natural language capability for users to search, compare, and analyze movies through AI assistants.

What is Model Context Protocol?

MCP allows AI assistants (like Claude in Cursor) to access external tools and data sources. This server exposes movie databases as MCP tools.

  • Official guide: https://modelcontextprotocol.io/docs/getting-started/intro

What it does

  • Get popular movies and TV shows
  • Search movie details by ID or title
  • Compare ratings across TMDB and OMDB
  • Basic caching for faster responses

Setup

  1. Get API keys:

    • TMDB: https://www.themoviedb.org/settings/api
    • OMDB: http://www.omdbapi.com/apikey.aspx
  2. Add keys to .cursor/mcp.json:

{
  "mcpServers": {
    "film-finder": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/film-finder-mcp/tmdb-mcp", "python", "src/server.py"],
      "env": {
        "TMDB_API_KEY": "your_tmdb_key",
        "OMDB_API_KEY": "your_omdb_key"
      }
    }
  }
}
  1. Install dependencies:
uv sync

Testing

Use MCP Inspector for testing:

npx @modelcontextprotocol/inspector uv run python src/server.py

Then open http://localhost:5173 (or the URL shown in terminal).

What is MCP Inspector?
A web-based developer tool for testing MCP servers during development. You can call tools, test prompts, and view resources without needing a full AI assistant setup.

  • Docs: https://modelcontextprotocol.io/docs/tools/inspector

Available Tools

Movies:

  • get_popular_movies - Popular movies by language/page
  • get_top_rated_movies - Highest rated movies
  • get_movie_details - TMDB details by movie ID
  • get_movie_details_by_title - OMDB search by title
  • get_movie_recommendation - Discover movies by genre/language

TV Shows:

  • get_popular_tv_shows - Popular TV shows
  • get_top_rated_tv_shows - Highest rated shows
  • get_tv_show_details - Details for specific show

Other:

  • authenticate_api_key - Validate TMDB API key
  • generate_recommendation_explanation - AI-powered movie recommendations

Prompts

Pre-configured prompts to guide AI responses:

  • movie_recommendation_prompt - Guide for recommending movies
  • tv_show_recommendation_prompt - Guide for TV show suggestions
  • movie_analysis_prompt - Compare and analyze movies
  • compare_movie_sources_prompt - Compare TMDB vs OMDB data

Resources

Static and dynamic data exposed by the server:

  • tmdb://config - TMDB API configuration (languages, genres)
  • omdb://config - OMDB API configuration
  • tmdb://movie/{movie_id} - Dynamic movie details by ID
  • tmdb://movie/top_rated - Top rated movies list

Use MCP Inspector's Resources tab to explore these.

Caching

Results are cached using Python's cachetools with TTL (Time To Live):

Data Type Cache Duration Reason
Popular movies/shows 3 hours Changes daily
Movie details 24 hours Static metadata
Top rated 6 hours Rarely changes

Example Usage in Cursor

Once configured in .cursor/mcp.json, ask Claude or any other LLM:

  • "What are the top rated movies right now?"
  • "Compare The Godfather ratings on TMDB vs OMDB"
  • "Recommend me some movies similar to Inception"

The AI will automatically use your MCP tools to fetch and analyze movie data.

Here is an example

Troubleshooting

Server won't start:

  • Check that API keys are set in .cursor/mcp.json
  • Verify uv sync ran successfully
  • Look for errors in terminal logs
  • Run from terminal uv run python src/server.py and check for logging.

Project Structure

film-finder-mcp/
├── src/
│   ├── server.py           # Main MCP server
│   └── tools/
│       ├── tmdb_client.py  # TMDB API client with caching
│       ├── omdb_client.py  # OMDB API client
│       └── base_config.py  # Configuration and logging
├── test_my_http_client.py  # Test file
├── pyproject.toml           # Dependencies
├── images/                  # Screenshots
└── README.md                # You are here

Notes

This is a learning project to understand MCP server development. The code works but could be improved with better error handling, more comprehensive tests, and additional features!

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选