此 MCP 服务器集成了 The Movie Database (TMDB) API,可提供电影信息、搜索功能和推荐服务,为用户带来丰富的电影数据体验。
在安装和运行 TMDB MCP 服务器之前,需确保满足以下先决条件。
Node.js
node --version
,若显示版本号则安装成功。npm(Node 包管理器)
npm --version
,若显示版本号则安装成功。TypeScript
npm install -g typescript
。tsc --version
,若显示版本号则安装成功。npm install
node index.js --get-popular-movies
node index.js --get-movieById [movieId]
该服务器具备全面的错误处理机制,可处理以下错误情况:
错误信息将以用户友好的格式通过 Claude Desktop 返回。
"Search for movies about artificial intelligence"
"What are the trending movies today?"
"Show me this week's trending movies"
"Tell me about the movie with ID 550"
开发此服务器时,可使用以下命令进入开发模式:
npm run watch
此 MCP 服务器根据 MIT License 分发。详细内容请参阅 LICENSE 文件。
欢迎大家贡献代码!请随意提交 Pull Request。
⚠️ 重要提示
以上所有内容均为翻译结果,若需使用,请确保内容的准确性和适用性。