Twitch Chat MCP server

Integrates with Twitch chat using Apache Camel and Quarkus to enable real-time interaction, moderation, and analysis of live stream conversations.
Back to servers
Setup instructions
Provider
Tom Cools
Release date
Jan 21, 2025
Language
Java
Stats
6 stars

The Twitch MCP Server provides integration between Twitch chat and AI assistants using the Model Context Protocol (MCP). It allows AI assistants to interact with Twitch chat, enabling them to read and send messages through a standardized interface.

Installation

Prerequisites

  • JBang to run the application
  • Maven to build the project
  • An MCP client like Claude Desktop or MCP Inspector

Building from Source

Build and install the MCP server locally:

mvn install

This will compile the project and install it in your local Maven repository (.m2 folder).

Usage

Configuration Parameters

The server requires two configuration parameters:

  • twitch.channel: The Twitch channel to connect to (without the @ symbol)
  • twitch.auth: Your Twitch API key/authentication token

Running with MCP Inspector

  1. Start the MCP Inspector:
npx @modelcontextprotocol/inspector
  1. Create a new MCP configuration with the following settings:

    • command: jbang
    • arguments: ["--quiet", "-Dtwitch.channel=YOUR_CHANNEL_NAME", "-Dtwitch.auth=YOUR_API_KEY", "be.tomcools:twitch-mcp:1.0.0-SNAPSHOT:runner"]
  2. Connect to the server through the Inspector interface and start using the Twitch chat tools.

Running with Claude Desktop

  1. Edit your Claude Desktop configuration file (claude_desktop_config.json):
{
  "mcpServers": {
    "twitch-mcp-tomcools": {
      "command": "jbang",
      "args": [
        "--quiet",
        "-Dtwitch.channel=YOUR_CHANNEL_NAME",
        "-Dtwitch.auth=YOUR_API_KEY",
        "be.tomcools:twitch-mcp:1.0.0-SNAPSHOT:runner"
      ]
    }
  }
}
  1. Replace YOUR_CHANNEL_NAME with the Twitch channel name you want to connect to
  2. Replace YOUR_API_KEY with your Twitch authentication token
  3. Restart Claude Desktop
  4. The Twitch chat tools should now appear in your Claude UI

Troubleshooting

If the tool doesn't appear or doesn't work:

  • Verify your Twitch authentication token is valid
  • Ensure you've correctly specified the channel name
  • Check that the MCP server was built successfully with mvn install
  • Make sure JBang is properly installed and accessible in your PATH

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "twitch-mcp-tomcools" '{"command":"jbang","args":["--quiet","-Dtwitch.channel=YOUR_CHANNEL_NAME","-Dtwitch.auth=YOUR_API_KEY","be.tomcools:twitch-mcp:1.0.0-SNAPSHOT:runner"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "twitch-mcp-tomcools": {
            "command": "jbang",
            "args": [
                "--quiet",
                "-Dtwitch.channel=YOUR_CHANNEL_NAME",
                "-Dtwitch.auth=YOUR_API_KEY",
                "be.tomcools:twitch-mcp:1.0.0-SNAPSHOT:runner"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "twitch-mcp-tomcools": {
            "command": "jbang",
            "args": [
                "--quiet",
                "-Dtwitch.channel=YOUR_CHANNEL_NAME",
                "-Dtwitch.auth=YOUR_API_KEY",
                "be.tomcools:twitch-mcp:1.0.0-SNAPSHOT:runner"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later