Skip to main content
Glama

Twitch MCP Server

by BryanCaves

Twitch MCP Server

A Model Context Protocol (MCP) server that provides access to Twitch API data for channel statistics, viewership, and discovery.

Features

  • Channel Statistics: Get channel information, follower counts, and recent followers
  • Viewership Data: Check stream status, current viewer counts, and stream details
  • Discovery Tools: Search for channels and game categories
  • Real-time Data: All data fetched directly from Twitch's API

Prerequisites

  • Node.js 18 or higher
  • A Twitch Developer Application (for API credentials)

Setup

  1. Create a Twitch Developer Application:
  2. Install dependencies:
    npm install
  3. Configure API credentials:
    cp .env.example .env # Edit .env with your actual credentials
  4. Build the project:
    npm run build

Available Tools

Channel Statistics

  • get_channel_info: Get basic channel information (game, title, language)
  • get_channel_followers: Get follower count and recent followers

Viewership Data

  • get_stream_info: Get current stream status and viewer count

Discovery

  • search_channels: Search for channels by name or keyword
  • search_categories: Search for Twitch game categories

Usage

With Claude Desktop

Add this server to your Claude Desktop MCP settings (usually in ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{ "mcpServers": { "twitch": { "command": "node", "args": ["path/to/twitch-mcp/dist/index.js"], "env": { "TWITCH_CLIENT_ID": "your_actual_client_id", "TWITCH_CLIENT_SECRET": "your_actual_client_secret" } } } }

Command Line Usage

# Start the server TWITCH_CLIENT_ID=your_id TWITCH_CLIENT_SECRET=your_secret npm start # Development mode TWITCH_CLIENT_ID=your_id TWITCH_CLIENT_SECRET=your_secret npm run dev

Example Commands

  • Get channel info: get_channel_info with channel name
  • Check if channel is live: get_stream_info with channel name
  • Get follower stats: get_channel_followers with channel name
  • Search channels: search_channels with search query
  • Find games: search_categories with category name

Testing

You can test the MCP server using the MCP Inspector:

npx @modelcontextprotocol/inspector \ TWITCH_CLIENT_ID=your_id TWITCH_CLIENT_SECRET=your_secret \ node dist/index.js

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the ISC License.

-
security - not tested
F
license - not found
-
quality - not tested

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 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.

  1. Features
    1. Prerequisites
      1. Setup
        1. Available Tools
          1. Channel Statistics
          2. Viewership Data
          3. Discovery
        2. Usage
          1. With Claude Desktop
          2. Command Line Usage
        3. Example Commands
          1. Testing
            1. Contributing
              1. License

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  Facilitates interaction with Ethereum blockchain data via Etherscan's API, providing real-time access to balances, transactions, token transfers, contract ABIs, gas prices, and ENS name resolutions.
                  Last updated -
                  6
                  15
                  22
                  TypeScript
                  MIT License
                • A
                  security
                  F
                  license
                  A
                  quality
                  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.
                  Last updated -
                  14
                  3
                  1
                  TypeScript
                  • Apple
                  • Linux
                • -
                  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 -
                  7,737
                  44
                  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/BryanCaves/twitch-mcp'

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