other

Twitch

by mtane0412

Unlock Twitch analytics and insights with integrated API: channel info, streams, game data, clips, chat, and user profil

Integrates with Twitch API to provide channel info, stream details, game data, user profiles, clips, chat settings, and video comments for building Twitch-related tools and analytics platforms.

github stars

1

Requires Twitch API credentialsAccess to both Helix API and GraphQL data

best for

  • / Building Twitch analytics dashboards
  • / Creating stream monitoring tools
  • / Developing Twitch chatbots or extensions
  • / Analyzing streamer performance data

capabilities

  • / Get channel information and profiles
  • / Retrieve stream details and viewer counts
  • / Search games and categories
  • / Fetch clips from channels
  • / Access chat settings and badges
  • / Get video comments from archived streams

what it does

Connects to Twitch API to fetch channel information, stream data, user profiles, clips, chat settings, and video comments. Requires Twitch API credentials to access Twitch's data programmatically.

about

Twitch is a community-built MCP server published by mtane0412 that provides AI assistants with tools and capabilities via the Model Context Protocol. Unlock Twitch analytics and insights with integrated API: channel info, streams, game data, clips, chat, and user profil It is categorized under other.

how to install

You can install Twitch in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Twitch is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

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