Skip to main content
Glama
ShubhanshuSondhiya

TMDB MCP Server

TMDB MCP 服务器

该项目实现了一个与电影数据库 (TMDB) API 集成的模型上下文协议 (MCP) 服务器。它使像 Claude 这样的 AI 助手能够与电影数据交互,提供搜索、检索详细信息以及生成与电影相关的内容的功能。

特征

资源

  • 静态资源

    • tmdb://info - 有关 TMDB API 的信息

    • tmdb://trending - 当前热门电影

  • 资源模板

    • tmdb://movie/{id} - 有关特定电影的详细信息

提示

  • 电影评论:生成具有指定风格和评级的定制电影评论

  • 电影推荐:根据类型和心情获得个性化的电影推荐

工具

  • 搜索电影:按标题或关键字查找电影

  • 获取热门电影:检索当天或当周的热门电影

  • 获取类似电影:查找与指定电影相似的电影

Related MCP server: TMDB MCP Server

设置说明

先决条件

  • Node.js(v16 或更高版本)

  • npm 或 yarn

  • TMDB API 密钥

安装

  1. 克隆此存储库

    git clone https://github.com/your-username/tmdb-mcp.git
    cd tmdb-mcp
  2. 安装依赖项

    npm install
  3. 配置您的 TMDB API 密钥

    • 在项目根目录中创建一个.env文件(或者:直接编辑src/config.ts

    • 添加您的 TMDB API 密钥: TMDB_API_KEY=your_api_key_here

  4. 构建项目

    npm run build
  5. 启动服务器

    npm start

Claude Desktop 的设置

  1. 打开 Claude 桌面

  2. 前往“设置”>“开发者”选项卡

  3. 点击“编辑配置”打开配置文件

  4. 将以下内容添加到您的配置中:

{
  "mcpServers": {
    "tmdb-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/your/tmdb-mcp/build/index.js"]
    }
  }
}
  1. 重启Claude桌面

使用示例

使用静态资源

  • “TMDB 是什么?”

  • “显示当前热门电影”

使用资源模板

  • “获取 ID 为 550 的电影的详细信息”(搏击俱乐部)

  • “跟我讲讲 ID 为 155 的电影吧”(《黑暗骑士》)

使用提示

  • “为《盗梦空间》撰写一份详细的评论,评分为 9/10”

  • “推荐一些适合沉思的科幻电影”

使用工具

  • “搜索有关太空探索的电影”

  • “今天热门的电影有哪些?”

  • “查找与《黑客帝国》类似的电影”

发展

项目结构

tmdb-mcp/
├── src/
│   ├── index.ts                # Main server file
│   ├── config.ts               # Configuration and API keys
│   ├── handlers.ts             # Request handlers
│   ├── resources.ts            # Static resources
│   ├── resource-templates.ts   # Dynamic resource templates
│   ├── prompts.ts              # Prompt definitions
│   ├── tools.ts                # Tool implementations
│   └── tmdb-api.ts             # TMDB API wrapper
├── package.json
├── tsconfig.json
└── README.md

测试

在开发过程中使用 MCP 检查器测试您的服务器:

npx @modelcontextprotocol/inspector node build/index.js

执照

麻省理工学院

致谢

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to search and retrieve movie information from The Movie Database (TMDB) API through the Model Context Protocol interface.
    20
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides integration with The Movie Database (TMDB) API for searching movies, TV shows, and people, accessing detailed information, and discovering popular and trending content. Enables AI assistants to access comprehensive movie and television metadata including ratings, cast, crew, and overviews.
    20
    1
    MIT
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides access to The Movie Database (TMDB) API for searching movies, retrieving movie details, cast information, and browsing current, upcoming, popular, and top-rated films, as well as searching for actors and directors.
    20
  • A
    license
    A
    quality
    C
    maintenance
    Provides access to The Movie Database (TMDB) API, enabling users to search for movies, TV shows, and people, get detailed information, discover content with advanced filters, and retrieve recommendations.
    13
    20
    5
    MIT

View all related MCP servers

Related MCP Connectors

  • Connect Claude to Fathom meeting recordings, transcripts, and summaries

  • 15 media & data tools for AI agents: search, transcribe, subtitles, voiceover, translate & more.

  • Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

View all MCP Connectors

Latest Blog Posts

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/ShubhanshuSondhiya/MCP-TMDB'

If you have feedback or need assistance with the MCP directory API, please join our Discord server