movieRecsBot
Verified Safeby 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
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 8082Environment 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
fastapi_mcp
Automatically converts FastAPI endpoints into Model Context Protocol (MCP) tools for seamless integration with LLM agents.
enterprise_mcp_server
Provides a comprehensive Model Context Protocol (MCP) solution, featuring an API Gateway for routing and management, an Enterprise MCP Server for core services like authentication, tool definition management, and audit logging, and dedicated Tool Servers for executing operational tools.
movie-catalog-mcp-server
Provides movie catalog information through a Model Context Protocol (MCP) server, supporting both manual and OpenAPI-driven tool exposure for AI agents.
zc9uVMJHDrT3dpLz
A conversational AI system that answers user queries about movies using the MovieLens dataset and provides weather forecasts/alerts via a multi-agent LangGraph workflow.