Movie Database is an MCP server that connects large language models to a MongoDB instance hosting movie data, specifically targeting the sample_mflix database collection. Built with FastMCP and PyMongo, this tool enables developers, analysts, and film enthusiasts to query structured cinema records using natural conversational prompts instead of writing complex MongoDB aggregation pipelines. By exposing purpose-built tools, it allows users to search movie catalogues by title, actor, genre, year, and rating thresholds. Users can retrieve granular movie details, fetch top-rated releases for specific periods, or tally films matching specified filters. The server acts as a bridge between an AI assistant and a local or cloud-hosted MongoDB cluster, converting user requests into database operations and returning formatted document data directly into the chat session for immediate analysis.
Category: Data & Analytics
Tags: mongodb, movies, nosql, query
bash git clone https://github.com/patw/movie-mcp-simple.git cd movie-mcp-simple 2. Install the necessary Python packages: bash pip install pymongo fastmcp python-dotenv 3. Create your configuration file and set your MongoDB URI: bash cp sample.env .env 4. Add the server configuration to your Claude Desktop config file: json { "mcpServers": { "Movie Database": { "command": "uv", "args": [ "run", "--with", "fastmcp, pymongo", "fastmcp", "run", "<path to>/movie-mcp-simple/movie-mcp.py" ] } } } Replace <path to> with your actual local repository path.Part of MCP Servers
Movie Database provides tools to query a MongoDB movie collection using natural language. It allows you to search for films by actor, genre, year, and rating, retrieve detailed information for specific titles, calculate total movie counts by criteria, and list top-rated films.
The server requires Python 3.7 or higher, a running MongoDB instance either locally or in the cloud, and the sample_mflix database loaded with a movies collection. It also requires the fastmcp, pymongo, and python-dotenv packages.
Movie Database works with Claude Desktop and other Model Context Protocol clients capable of running local command-line subprocesses configured with uv or Python.
Yes, Movie Database is open source and licensed under the MIT License on GitHub.