Twitch MCP Server

by mtane0412

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 Server

A Model Context Protocol (MCP) server that interacts with the Twitch API. This server utilizes the Twitch Helix API to retrieve channel information, stream details, game data, and more.

Features

  • Get channel information (profile, description, creation date, etc.)
  • Get stream information (title, game, viewer count, start time, etc.)
  • Get list of top games
  • Search categories/games
  • Search channels
  • Get live streams (filterable by game and language)
  • Get global emotes
  • Get global chat badges
  • Get user information
  • Get clips from a channel
  • Get chat settings
  • Get videos from a specified channel
  • Get comments from archived videos (using GraphQL API)

Prerequisites

  • Node.js (v18 or higher recommended)
  • Twitch Developer Account
  • Twitch API Client ID and Client Secret
  • Twitch GraphQL Client ID (for video comments feature)

Installation

Install the package using npm:

npm install @mtane0412/twitch-mcp-server

Configuration

  1. Create a new application in the Twitch Developer Console
  2. Set the following environment variables:
# 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"

Alternatively, you can create a .env file:

TWITCH_CLIENT_ID=your_client_id TWITCH_CLIENT_SECRET=your_client_secret

Usage

After installation, you can start using the server by running:

npx @mtane0412/twitch-mcp-server

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspect

The Inspector will provide a URL to access debugging tools in your browser.

License

MIT License

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.

Enables interaction with the Twitch API, allowing users to retrieve comprehensive information about channels, streams, games, and more, with additional support for searching and accessing chat elements like emotes and badges.

  1. Features
    1. Prerequisites
      1. Installation
        1. Configuration
          1. Usage
            1. Debugging
          2. License

            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 -
              59
              135
              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

            ID: 1pub2f29fy