remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Uses GraphQL API specifically for retrieving comments from archived Twitch videos.
Utilizes the Twitch Helix API which is the latest version of Twitch's REST API for retrieving various data from Twitch.
Integrates with the Twitch API to retrieve channel information, stream details, game data, and more. Features include getting channel and stream information, top games, searching categories/games and channels, retrieving live streams, emotes, chat badges, user information, clips, chat settings, videos, and comments from archived videos.
Twitch MCP 服务器
与 Twitch API 交互的模型上下文协议 (MCP) 服务器。该服务器利用 Twitch Helix API 检索频道信息、流详情、游戏数据等。
特征
- 获取频道信息(个人资料、描述、创建日期等)
- 获取流信息(标题、游戏、观众数量、开始时间等)
- 获取热门游戏列表
- 搜索类别/游戏
- 搜索频道
- 获取直播(可按游戏和语言过滤)
- 获取全球表情
- 获取全球聊天徽章
- 获取用户信息
- 从频道获取剪辑
- 获取聊天设置
- 获取指定频道的视频
- 从存档视频中获取评论(使用 GraphQL API)
先决条件
- Node.js(建议使用 v18 或更高版本)
- Twitch 开发者账户
- Twitch API 客户端 ID 和客户端密钥
- Twitch GraphQL 客户端 ID(用于视频评论功能)
安装
使用 npm 安装包:
配置
- 在Twitch 开发者控制台中创建新应用程序
- 设置以下环境变量:
或者,您可以创建一个.env
文件:
用法
安装后,您可以通过运行以下命令开始使用服务器:
调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
检查器将提供一个 URL 来访问浏览器中的调试工具。
执照
MIT 许可证
You must be authenticated.
Tools
支持与 Twitch API 交互,允许用户检索有关频道、流、游戏等的综合信息,并额外支持搜索和访问表情和徽章等聊天元素。