Skip to main content
Glama
Movies Search Tool
by Seann0824

🎬 Movies Search Tool

一个智能的电影和电视剧资源搜索工具,基于 Model Context Protocol (MCP) 构建,支持多个视频源搜索和链接验证。

✨ 特性

  • 🔍 多源搜索: 支持多个视频网站资源搜索

  • ✅ 链接验证: 自动验证视频链接的可播放性

  • 🚀 MCP 协议: 完全兼容 Model Context Protocol

  • 📡 双模式支持: STDIO 和 SSE (Server-Sent Events) 两种传输模式

  • 🛠️ 易于集成: 可作为 MCP 工具集成到 AI 应用中

Related MCP server: wizzy-mcp-tmdb

📦 安装

全局安装

npm install -g @acwink/movies-search-mcp

使用 npx (推荐)

# 默认 STDIO 模式
npx @acwink/movies-search-mcp

# SSE 模式
npx @acwink/movies-search-mcp --sse

🚀 使用方法

命令行使用

# 默认 STDIO 模式 (适合 MCP 客户端)
movies-search-mcp

# SSE 模式 (适合 Web 应用)
movies-search-mcp --sse

# 指定端口 (仅 SSE 模式)
PORT=3001 movies-search-mcp --sse

MCP 客户端集成

将此工具添加到你的 MCP 客户端配置中:

{
  "mcpServers": {
    "movies-search-mcp": {
      "command": "npx",
      "args": ["@acwink/movies-search-mcp"]
    }
  }
}

可用工具

1. search_movie

搜索电影或电视剧资源

// 搜索电影
{
  "title": "阿凡达",
  "type": "movie"
}

// 搜索电视剧
{
  "title": "权力的游戏",
  "type": "tv",
  "season": 1,
  "episode": 1
}

2. validate_video_url

验证视频链接的可播放性

// 单个链接验证
{
  "url": "https://example.com/video/123"
}

// 批量验证
{
  "url": [
    "https://example.com/video/123",
    "https://example.com/video/456"
  ]
}

🔧 开发

本地开发

# 克隆项目
git clone https://github.com/Seann0824/movies-search-mcp.git
cd movies-search-mcp

# 安装依赖
npm install

# 开发模式
npm run dev:cli          # STDIO 模式
npm run dev:cli:sse      # SSE 模式

# 构建
npm run build

# 测试
npm test

项目结构

src/
├── cli.ts              # CLI 入口文件
├── mcp-server.ts       # STDIO MCP 服务器
├── mcp-server-sse.ts   # SSE MCP 服务器
├── sources/            # 视频源实现
├── core/              # 验证器实现
├── types/             # 类型定义
└── utils/             # 工具函数

🌐 API 端点 (SSE 模式)

当使用 SSE 模式时,服务器会启动以下端点:

  • GET /sse - 建立 SSE 连接

  • POST /messages - 发送 JSON-RPC 消息

  • GET /health - 健康检查

📄 许可证

MIT License

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📞 支持

如果你遇到任何问题,请:

  1. 查看 Issues

  2. 创建新的 Issue

  3. 联系作者: seanwangjs@example.com


⭐ 如果这个项目对你有帮助,请给个 Star!

Available Tools

2 tools
search_movieA

搜索电影或电视剧资源,返回视频链接列表(不进行验证)

Inputs: type (required), title (required), season, episode.

validate_video_urlB

验证视频链接是否可播放

Inputs: url (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools target clearly separate steps: search_movie retrieves links, validate_video_url checks playability. Their descriptions make the boundary explicit, and there is no realistic way to confuse them.

    Naming Consistency5/5

    Both names follow a consistent snake_case verb_noun convention (search_movie, validate_video_url). The pattern is predictable and readable.

    Tool Count3/5

    Two tools is borderline thin for a media search server; the search+validate pairing is sensible, but the surface feels minimal and offers no room for refinement (filters, detail lookup, pagination).

    Completeness3/5

    The search-then-validate lifecycle is covered, but there is no way to fetch movie details, apply filters/quality criteria, or paginate results. Agents can complete the basic flow but hit dead ends for anything richer.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      An MCP server that provides Hugging Face Hub API and Search endpoints through multiple transport protocols (STDIO, SSE, StreamableHTTP, and StreamableHTTPJson), enabling integration with AI model capabilities.
      325
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A MCP server for The Movie Database API that enables AI assistants to search and retrieve movie, TV show, and person information.
      23
      14 npm
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An intelligent movie and TV series resource search tool based on Model Context Protocol (MCP), supporting multi-source search and link verification.
      2
      2
      Apache 2.0
    • F
      license
      A
      quality
      D
      maintenance
      An MCP server that wraps the TMDB API, enabling search of movies and TV shows, retrieval of details, trending titles, recommendations, and streaming provider information.
      8
      -