Movie Database
Access a MongoDB movie database using natural language queries.
Movie Database MCP Server (Simplified)
A FastMCP server that provides access to a MongoDB movie database with natural language queries.
Features
- Search movies by title, genre, actor, year, or rating
- Get top-rated movies by year or genre
- Count movies matching criteria
- Get detailed information about specific movies
Prerequisites
- Python 3.7+
- MongoDB (local or cloud)
sample_mflix
database withmovies
collection
Installation
- Clone this repository:
git clone https://github.com/patw/movie-mcp-simple.git
cd movie-mcp-simple
- Install dependencies:
pip install pymongo fastmcp python-dotenv
- Create a
.env
file with your MongoDB connection string:
cp sample.env .env
Edit the .env
file to add your actual MongoDB URI.
Usage
Configure the MCP server in Claude desktop with the following config:
{
"mcpServers": {
"Movie Database": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp, pymongo",
"fastmcp",
"run",
"<path to>/movie-mcp-simple/movie-mcp.py"
]
}
}
}
Example queries you can ask:
- "Find movies with Tom Hanks"
- "How many Comedy movies are there?"
- "What are the top 5 movies from 1994?"
- "Show me details for The Shawshank Redemption"
MCP Tools
The server provides these tools:
find_movies
Search for movies with various filters:
find_movies(title=None, genre=None, actor=None, year=None, min_rating=None, limit=10)
count_movies
Count movies matching criteria:
count_movies(genre=None, year=None, min_rating=None)
get_top_movies
Get highest rated movies:
get_top_movies(year=None, genre=None, limit=5)
get_movie_details
Get full details for a specific movie:
get_movie_details(title)
License
MIT
Related Servers
Cloudera Iceberg MCP Server (via Impala)
Provides read-only access to Apache Iceberg tables using Apache Impala.
Tushare MCP
An intelligent stock data assistant providing financial data using the Tushare API.
Neon MCP Server
Interact with Neon Postgres databases using natural language to manage projects, branches, queries, and migrations via the Neon API.
Chroma MCP Server
An MCP server for the Chroma embedding database, providing persistent, searchable working memory for AI-assisted development with features like automated context recall and codebase indexing.
Uniswap Pools MCP
Query Uniswap pools and pairs by token address for structured data.
Open Census MCP Server
Access and query U.S. Census demographic data using natural language.
CData SAP ByDesign
A read-only MCP server for querying live SAP ByDesign data. Requires a separate CData JDBC Driver for SAP ByDesign.
CData MYOB AccountRight
A read-only MCP server for MYOB AccountRight, enabling LLMs to query live data using the CData JDBC Driver.
Unofficial Human Protein Atlas MCP Server
Access Human Protein Atlas data, including protein expression, localization, and pathology.
Postgres MCP
A remote MCP server for Postgres, deployable on Cloudflare Workers without authentication.