IMDB
БесплатноНе проверенEnables semantic and similarity search across IMDB movie data using vector embeddings and PostgreSQL with pgvector, supporting traditional filters and hybrid se
Описание
Enables semantic and similarity search across IMDB movie data using vector embeddings and PostgreSQL with pgvector, supporting traditional filters and hybrid search.
README
Model Context Protocol (MCP) server for movie data with semantic vector search using embeddings and PostgreSQL with pgvector.
Overview
Provides semantic search, similarity matching, and traditional filtering across IMDB movie data:
- Semantic Search: Find movies by meaning using embeddings
- Similarity Search: Get similar movies based on descriptions
- Hybrid Search: Combine semantic and keyword matching
- Traditional Filters: Genre, country, title, ratings
Setup
Prerequisites
- Python 3.12+
- PostgreSQL 12+ with pgvector extension
- GCP Secret Manager (for credentials)
- ~400MB for embedding model download
Installation
uv sync
Environment
Set required environment variable:
export GCP_PROJECT_ID=your-gcp-project-id
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
GCP Secret Manager must contain:
db-host: PostgreSQL hostdb-port: PostgreSQL portdb-name: Database namedb-user: Database userdb-password: Database passworddb-admin-password: Admin password
Usage - Database
Run the ETL pipeline to set up and seed the database:
python extract.py # Extract from source
python transform.py # Generate embeddings
python load.py # Load into PostgreSQL with pgvector
Place the CSV file in the data/ folder: data/imdb_movies.csv
Usage - MCP
Start the MCP server:
python -m mcp_server
Server runs on port 3000 with tools for:
semantic_search: Search by description meaningsimilarity_search: Find similar movieshybrid_search: Combined semantic and keyword searchget_movie_by_id: Retrieve movie detailssearch_movies: Title-based search- Additional filtering and stats tools
Tests
Run manually via GitHub Actions or locally:
uv run pytest tests/ -v --cov=. --cov-report=term-missing
Future
My next step for this project would be to use a GCP solution for the postgres database and connect the MCP to this rather than a local pgsql database.
Deployment
Currently this project is meant for local use only, but I have added workflows for deployment to GCP, with small modification to the mcp server to read from bigquery or cloud SQL instead of a local postgres database.
Contributing
- Write tests for new features
- Run test suite locally
- Push to feature branch
- Manual test trigger in Actions
- Deploy on approval
Установка IMDB
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/AlexOBarnes/IMDB-MCPFAQ
IMDB MCP бесплатный?
Да, IMDB MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для IMDB?
Нет, IMDB работает без API-ключей и переменных окружения.
IMDB — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить IMDB в Claude Desktop, Claude Code или Cursor?
Открой IMDB на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare IMDB with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
