Movie Recommendation MCP
Movie Recommendation MCP
围绕 Rust 电影推荐 API 的 FastMCP 包装器。
该仓库是从 movie-reservation-platform-lab/movie-recommendation-service/axum-tools-mcp 中提取的,以便 MCP 组件可以拥有独立的 CI 和制品流水线。
运行
uv run movie-recommendation-mcp生产容器以 UID 10001 运行,并监听端口 8092:
docker build --tag movie-recommendation-mcp:local .
docker run --rm --network host movie-recommendation-mcp:local演示假设 MCP 和推荐 API 容器共享同一个 ECS 任务网络命名空间,因此默认下游地址保持为 127.0.0.1:8082。在独立运行容器时,覆盖下游 URL。
默认值:
MCP 端点:
http://127.0.0.1:8092/mcp健康端点:
http://127.0.0.1:8092/health下游 API:
http://127.0.0.1:8082
有用的环境变量:
MOVIE_RECOMMENDATION_API_URLAXUM_TOOLS_API_URL,用于与原始演示提取保持兼容PORTHOSTOTEL_SERVICE_NAMEOTEL_EXPORTER_OTLP_ENDPOINTOTEL_EXPORTER_OTLP_PROTOCOLOTEL_RESOURCE_ATTRIBUTES
Related MCP server: Weather Info MCP Server
工具
recommendation_get_movies输入:
limit、可选的preference、可选的fault、可选的traceparent、可选的tracestate、可选的correlation_id、可选的request_id和可选的demo_fault。调用 Rust
GET /recommendations。成功响应体:
{"ok": true, "service_name": "movie-recommendation-mcp", "fault": "<fault-or-none>", "recommendations": [...]}下游错误响应体:
{"ok": false, "service_name": "movie-recommendation-mcp", "fault": "<fault-or-none>", "status_code": <int>, "error": "recommendation_dependency_failed"}
recommendation_health输入:可选的
traceparent、可选的tracestate、可选的correlation_id、可选的request_id和可选的demo_fault。调用 Rust
GET /health。成功响应体:
{"ok": true, "service_name": "movie-recommendation-mcp", "health": {...}}
两个工具都会转发:
traceparenttracestateX-Correlation-IdX-Request-IdX-Demo-Fault
提取决策
对于此提取切片,保持内部 Python 导入路径为
axum_tools_mcp。公共包、控制台脚本、服务名称、镜像和仓库均已命名为movie-recommendation-mcp;重命名导入路径只会增加无谓的改动,而不会改变代理所消费的外部 MCP 契约。保留工具名称
recommendation_get_movies和recommendation_health。经过验证的 reservation-agent 演示将recommendation_get_movies列入白名单,并使用limit、preference、fault和传播参数调用它。保留
AXUM_TOOLS_API_URL作为兼容性回退,但在新的运行时配置中优先使用MOVIE_RECOMMENDATION_API_URL。
制品契约
平台基础设施将此组件作为不可变的应用制品来消费,而非源代码:
从该仓库的
Dockerfile构建的 OCI 镜像。由摘要固定的私有 ECR 镜像引用:
<account>.dkr.ecr.<region>.amazonaws.com/movie-recommendation-mcp@sha256:<64-hex-digest>。独立的发布标识符(如 Git 提交 SHA 或发布版本),由消费方环境/基础设施仓库随摘要一并记录。
运行时命令:
movie-recommendation-mcp。容器端口及默认
PORT:8092。MCP 端点:
/mcp。健康端点:
/health。所需运行时配置由环境驱动;下游 API URL 通过
MOVIE_RECOMMENDATION_API_URL或兼容性回退AXUM_TOOLS_API_URL提供。部署组成、环境清单、提升状态和 AWS 资源均保留在此仓库之外。
检查
uv sync --frozen
uv run --frozen --no-sync pytest tests
uv run --frozen --no-sync pytest automation/tests
uv run --frozen --no-sync ruff check .
uv run --frozen --no-sync ruff format --check .
uv run --frozen --no-sync python -m compileall src tests automation推送到 main 会将 Linux AMD64 候选版本以 sha-<commit> 的形式发布到 GHCR。CI 禁用 BuildKit 的自动注册表证明,以保持候选版本为单镜像清单,然后针对已发布的摘要记录显式的 GitHub 构建出处,用于环境准入门禁。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityDmaintenanceAn MCP server that allows users to search for movies, get detailed information, receive genre-based recommendations, and discover popular/trending films using OMDb and TMDb APIs.513MIT
- FlicenseNot gradedqualityDmaintenanceProvides weather information through MCP tools integrated with a FastAPI backend, enabling users to query current weather for single or multiple cities and check API health status.
- FlicenseAqualityDmaintenanceAn MCP server that wraps The Movie Database (TMDB) API, enabling search for movies and TV shows, retrieval of movie details, recommendations, similar movies, trending content, streaming providers, and movie discovery.8
- AlicenseAqualityCmaintenanceFastMCP server to interact with the Overseerr API for movie and TV show requests management, enabling users to request media, search, and manage libraries via natural language.81MIT
Related MCP Connectors
performance-review MCP — wraps StupidAPIs (requires X-API-Key)
jargon-translator MCP — wraps StupidAPIs (requires X-API-Key)
OMDb MCP — IMDB-derived movie / TV / episode data (BYO key)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/movie-reservation-platform-lab/movie-recommendation-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server