Back to Home
hyfoxus icon

movieRecsBot

Verified Safe

by hyfoxus

Overview

A FastMCP server providing vector-based movie search and metadata from an IMDb database, designed to be consumed by an LLM-powered movie recommendation bot.

Installation

Run Command
cd apps/mcp-fastmcp && python3 -m venv .venv && source .venv/bin/activate && pip install -e . && DATABASE_URL=postgresql+psycopg://imdb:changeme@localhost:5432/imdb OLLAMA_BASE_URL=http://localhost:11434 OLLAMA_EMBED_MODEL=nomic-embed-text uvicorn mcpmovie.main:app --reload --port 8082

Environment Variables

  • TELEGRAM_WEBHOOK_URL
  • OPENAI_API_KEY
  • DATABASE_URL
  • IMDB_BOOTSTRAP_TOKEN
  • TELEGRAM_BOT_TOKEN
  • OLLAMA_BASE_URL
  • OLLAMA_EMBED_MODEL

Security Notes

The application handles sensitive data (database credentials, API keys) via environment variables and Docker secrets, which is a good practice. Database interactions use parameterized queries, mitigating SQL injection risks. The admin bootstrap endpoint for IMDb data loading is protected by a configurable token. LLM interaction for language detection and translation uses a structured prompt format to extract JSON, and content from LLMs is sanitized before being displayed, reducing risks of cross-site scripting in Telegram. Default placeholder passwords are explicitly marked (`changeme`) and the setup script encourages overriding them. No 'eval' or similar dynamic code execution on user input was identified. Inherent risks related to LLM prompt injection exist due to user-provided text being part of prompts, though the system attempts to guide LLM responses into structured formats.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-11-30

Tags

MCP ServerMovie RecommendationsVector SearchFastAPIIMDb