Movies Search Tool

Movies Search Tool

An MCP server that enables users to search for movie and TV show resources across multiple sources and validate video link playability. It supports both STDIO and SSE transport modes for seamless integration with AI applications.

Category
Visit Server

README

🎬 Movies Search Tool

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

✨ 特性

  • 🔍 多源搜索: 支持多个视频网站资源搜索
  • 链接验证: 自动验证视频链接的可播放性
  • 🚀 MCP 协议: 完全兼容 Model Context Protocol
  • 📡 双模式支持: STDIO 和 SSE (Server-Sent Events) 两种传输模式
  • 🛠️ 易于集成: 可作为 MCP 工具集成到 AI 应用中

📦 安装

全局安装

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!

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured