twitch-mcp
The Twitch MCP Server provides AI-powered tools for Twitch streamers to manage their streams and engage with audiences:
• Chat Management: Send and read messages, retrieve recent chat logs (last 20 messages), and analyze chat for topics and activity • Moderation: Timeout or ban users by username or descriptor, with chat log review available when no specific username is provided • Stream Management: Update stream title and category, and create clips of the current stream • Audience Engagement: Create interactive polls and predictions with customizable titles, choices/outcomes, and durations • Integration: Works seamlessly with coding/chat assistants like Qwen Code, LM Studio, and Claude for enhanced functionality
Enables AI assistants to interact with Twitch channels through chat messaging, stream management (title/category updates), moderation tools (timeouts/bans), content creation (clips), and viewer engagement features (polls/predictions)
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@twitch-mcp timeout user 'toxic_chatter' for 10 minutes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Twitch MCP Server
AI-powered tools for Twitch streamers, exposed via the Model Context Protocol (MCP). Connect your coding/chat assistants (Gemini CLI, Qwen Coder, Claude Code, etc.) to your Twitch chat for moderation, stream management, and engagement.
Quick Start (No Cloning Required)
Prerequisites
Node.js 14+ and Java 11+ available on your system PATH
A Twitch account with appropriate API credentials
Setup Configuration
Create a config file with your Twitch credentials (use bare access token, no "oauth:" prefix):
Windows: C:/Users/<you>/AppData/Roaming/twitch-mcp/config.json
macOS: ~/Library/Application Support/twitch-mcp/config.json
Linux: ~/.config/twitch-mcp/config.json
Example config.json:
{
"channel": "YOUR_TWITCH_USERNAME",
"auth": "YOUR_TWITCH_ACCESS_TOKEN",
"clientId": "YOUR_TWITCH_CLIENT_ID",
"broadcasterId": "YOUR_BROADCASTER_ID",
"showConnectionMessage": true
}Recommended AI CLI Tools
🥇 Primary Recommendation: Gemini CLI
Excellent MCP support with reliable connections
Free tier with generous limits
Great for day-to-day Twitch moderation and chat management
🥈 Secondary Recommendation: Qwen Coder CLI
Strong coding-focused AI with good MCP integration
Particularly good for stream development and technical discussions
Free and open-source
⚡ For Power Users: Claude Code
Most advanced reasoning capabilities
Best for complex moderation decisions and nuanced chat analysis
Note: Limited credits - save for heavy lifting tasks
Configuration Examples
Gemini CLI Configuration
Add to your Gemini settings:
{
"mcpServers": {
"twitch-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"twitch-mcp-server@latest",
"--config",
"C:/Users/<you>/AppData/Roaming/twitch-mcp/config.json"
]
}
}
}Qwen Coder Configuration
Add to your Qwen settings:
{
"mcpServers": {
"twitch-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"twitch-mcp-server@latest",
"--config",
"C:/Users/<you>/AppData/Roaming/twitch-mcp/config.json"
]
}
}
}Related MCP server: Twitch MCP Server
Features
Chat Management: Send and read messages, recent chat log, chat analysis
Moderation: Timeout/ban users (by username or descriptor keywords)
Stream Management: Update title/category, create clips
Interactive Tools: Create polls and predictions for viewer engagement
Installation Options
Option 1: NPX (Recommended)
No installation required - your AI tool will automatically fetch the latest version:
npx twitch-mcp-server@latest --config /path/to/config.jsonOption 2: Global Install
npm install -g twitch-mcp-server
twitch-mcp-server --config /path/to/config.jsonOption 3: Local Development
See README-developers.md for building from source.
Usage Notes
Use a bare access token in
authfield (nooauth:prefix needed)Only one AI client should connect at a time to avoid conflicts
Ensure Node.js and Java are installed on the same system as your AI CLI
The server will automatically handle IRC formatting and API authentication
Troubleshooting
Authentication Issues:
Confirm
authis a bare token (nooauth:prefix)Verify
clientIdand scopes match your generated tokenEnsure
broadcasterIdmatches your channel ID
Connection Problems:
Check that both Node.js and Java are in your system PATH
Try running
java -versionandnode -versionto verify installationFor Windows users: Make sure you're not running from WSL if your AI CLI is on Windows
NPX Prompts in Headless Environments:
The configurations above use
-yflag for non-interactive executionIf you encounter prompts, add
--yesto the npx command
Support
For general usage questions, check the troubleshooting section above
For development and contributions, see README-developers.md
For Claude-specific integration help, see CLAUDE.md
Available Tools
10 toolsanalyzeChatB
Analyze recent Twitch chat messages and provide a summary of topics and activity
Inputs: no named parameters.
banUserC
Ban a user from the Twitch chat. If no username is provided, it will return the recent chat log for LLM review.
Inputs: usernameOrDescriptor (required), reason (required).
createTwitchClipB
Create a Twitch clip of the current stream
Inputs: no named parameters.
createTwitchPollC
Create a Twitch Poll
Inputs: title (required), choices (required), duration (required).
createTwitchPredictionC
Create a Twitch Prediction
Inputs: title (required), outcomes (required), duration (required).
getRecentChatLogB
Get the last 20 chat messages for moderation context
Inputs: no named parameters.
sendMessageToChatC
Send message to the Twitch Chat
Inputs: message (required).
timeoutUserC
Timeout a user in the Twitch chat. If no username is provided, it will return the recent chat log for LLM review.
Inputs: usernameOrDescriptor (required), reason (required).
updateStreamCategoryC
Update the game category of the stream
Inputs: category (required).
updateStreamTitleC
Update the stream title
Inputs: title (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have distinct purposes targeting different Twitch functionalities like chat moderation, stream management, and interactive features. However, 'banUser' and 'timeoutUser' have overlapping descriptions when no username is provided, both returning recent chat logs, which could cause confusion in selection.
The naming is mixed with some tools using camelCase (e.g., 'analyzeChat', 'banUser') and others using more descriptive phrases (e.g., 'createTwitchClip', 'updateStreamTitle'). While readable, the lack of a uniform pattern reduces predictability and consistency across the toolset.
With 10 tools, the count is well-scoped for a Twitch integration server. Each tool addresses a specific aspect of Twitch functionality, such as chat management, stream updates, and content creation, making the set comprehensive without being overwhelming.
The toolset covers key areas like chat moderation, stream configuration, and interactive features (polls, predictions, clips), providing good lifecycle coverage. Minor gaps include missing tools for viewing stream stats or managing followers, but core workflows are adequately supported.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Query your Twitch streams, events, supporters, raids & rankings from an AI assistant via OAuth.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Related MCP Servers
- AlicenseAqualityDmaintenanceA simple MCP server for interacting with OpenAI assistants. This server allows other tools (like Claude Desktop) to create and interact with OpenAI assistants through the Model Context Protocol.939MIT
- AlicenseBqualityDmaintenanceEnables 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.14165 npm4MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive Twitch MCP (Model Context Protocol) server providing chat moderation, stream management, and Twitch API integration for AI systems.4ISC
- FlicenseNot gradedqualityDmaintenanceAn out-of-the-box, zero-dependency Model Context Protocol (MCP) server integration designed specifically for the Godot Engine (4.x).Once connected, your AI agents (Claude, Cursor, Trae, ChatGPT) gain access to a powerful set of tools to interact with your active Godot project directory.4-