Skip to main content
Glama

Twitch MCP Server

by mtane0412

Twitch MCP 服务器

与 Twitch API 交互的模型上下文协议 (MCP) 服务器。该服务器利用 Twitch Helix API 检索频道信息、流详情、游戏数据等。

特征

  • 获取频道信息(个人资料、描述、创建日期等)
  • 获取流信息(标题、游戏、观众数量、开始时间等)
  • 获取热门游戏列表
  • 搜索类别/游戏
  • 搜索频道
  • 获取直播(可按游戏和语言过滤)
  • 获取全球表情
  • 获取全球聊天徽章
  • 获取用户信息
  • 从频道获取剪辑
  • 获取聊天设置
  • 获取指定频道的视频
  • 从存档视频中获取评论(使用 GraphQL API)

先决条件

  • Node.js(建议使用 v18 或更高版本)
  • Twitch 开发者账户
  • Twitch API 客户端 ID 和客户端密钥
  • Twitch GraphQL 客户端 ID(用于视频评论功能)

安装

使用 npm 安装包:

npm install @mtane0412/twitch-mcp-server

配置

  1. Twitch 开发者控制台中创建新应用程序
  2. 设置以下环境变量:
# macOS/Linux export TWITCH_CLIENT_ID="your_client_id" export TWITCH_CLIENT_SECRET="your_client_secret" # Windows (PowerShell) $env:TWITCH_CLIENT_ID="your_client_id" $env:TWITCH_CLIENT_SECRET="your_client_secret"

或者,您可以创建一个.env文件:

TWITCH_CLIENT_ID=your_client_id TWITCH_CLIENT_SECRET=your_client_secret

用法

安装后,您可以通过运行以下命令开始使用服务器:

npx @mtane0412/twitch-mcp-server

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspect

检查器将提供一个 URL 来访问浏览器中的调试工具。

执照

MIT 许可证

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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.

支持与 Twitch API 交互,允许用户检索有关频道、流、游戏等的综合信息,并额外支持搜索和访问表情和徽章等聊天元素。

  1. 特征
    1. 先决条件
      1. 安装
        1. 配置
          1. 用法
            1. 调试
          2. 执照

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              Enables secure access to your YouTube Watch Later playlist, allowing retrieval of video URLs added within a specified timeframe through a simple interface using OAuth2 authentication.
              Last updated -
              3
              JavaScript
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              This server allows AI language models to interact with YouTube content through a standardized interface, providing features such as video and channel information retrieval, transcript management, and playlist operations.
              Last updated -
              169
              179
              TypeScript
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              Enables LLMs to interact with Discord channels by sending and reading messages through Discord's API, with a focus on maintaining user control and security.
              Last updated -
              33
              TypeScript
              • Apple
            • -
              security
              F
              license
              -
              quality
              Enables AI language models to interact with YouTube content through a standardized interface, providing tools for retrieving video information, transcripts, channel analytics, and trend analysis.
              Last updated -
              852
              1
              JavaScript

            View all related MCP servers

            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/mtane0412/twitch-mcp-server'

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