Skip to main content
Glama

Twitch MCP 服务器

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

特征

  • 获取频道信息(个人资料、描述、创建日期等)

  • 获取流信息(标题、游戏、观众数量、开始时间等)

  • 获取热门游戏列表

  • 搜索类别/游戏

  • 搜索频道

  • 获取直播(可按游戏和语言过滤)

  • 获取全球表情

  • 获取全球聊天徽章

  • 获取用户信息

  • 从频道获取剪辑

  • 获取聊天设置

  • 获取指定频道的视频

  • 从存档视频中获取评论(使用 GraphQL API)

Related MCP server: Twitch MCP Server

先决条件

  • 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 许可证

Available Tools

14 tools
get_channel_infoC

チャンネル情報を取得します

Inputs: channelName (required).

get_chat_settingsC

チャット設定を取得します

Inputs: channelName (required).

get_clipsC

クリップの情報を取得します

Inputs: channelName (required), limit.

get_gameC

特定のゲームの情報を取得します

Inputs: name (required).

get_global_badgesB

グローバルチャットバッジのリストを取得します

Inputs: no named parameters.

get_global_emotesB

グローバルエモートのリストを取得します

Inputs: no named parameters.

get_stream_infoC

配信情報を取得します

Inputs: channelName (required).

get_streamsC

現在ライブ配信中のストリームを取得します

Inputs: game, language, limit.

get_top_gamesC

人気のゲームのリストを取得します

Inputs: limit.

get_usersC

ユーザーの情報を取得します

Inputs: userNames (required).

get_video_commentsC

アーカイブ動画のコメントを取得します

Inputs: videoId (required), limit, cursor.

get_videosC

チャンネルのビデオを取得します

Inputs: channelName (required), limit.

search_categoriesC

ゲームやカテゴリーを検索します

Inputs: query (required), limit.

search_channelsC

チャンネルを検索します

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 14 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting specific Twitch resources like channels, clips, games, streams, videos, and searches. The naming makes it unambiguous what each tool retrieves, with no functional overlap between tools.

    Naming Consistency5/5

    All tools follow a consistent 'get_' or 'search_' verb prefix with descriptive noun patterns (e.g., get_channel_info, search_channels). This uniform snake_case naming convention makes the tool set predictable and easy to understand.

    Tool Count5/5

    With 14 tools, this server is well-scoped for the Twitch domain, covering key resources like channels, streams, videos, games, and searches. Each tool earns its place by addressing a specific aspect of Twitch's API without being overwhelming.

    Completeness4/5

    The tool set provides comprehensive read-only coverage for retrieving Twitch data, including channels, streams, videos, games, and searches. A minor gap is the lack of write operations (e.g., posting comments or managing streams), but for a retrieval-focused server, it's highly complete.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      This project is a fork and expansion of TomCools' Twitch MCP Server, which implements a Model Context Protocol (MCP) server that integrates with Twitch chat, allowing AI assistants like Claude to interact with your Twitch channel.
      10
      1
      -
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables access to Twitch API data for retrieving channel statistics, viewership information, stream status, and discovering channels and game categories. Provides real-time Twitch data including follower counts, current viewer numbers, and search functionality through natural language interactions.
      -
    • A
      license
      B
      quality
      B
      maintenance
      Provides access to the Internet Game Database (IGDB) API, enabling users to search for video games, retrieve detailed game information including ratings and platforms, and discover trending and anticipated titles.
      4
      5
      MIT