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.
Build and install the MCP server locally:
mvn install
This will compile the project and install it in your local Maven repository (.m2 folder).
The server requires two configuration parameters:
twitch.channel
: The Twitch channel to connect to (without the @ symbol)twitch.auth
: Your Twitch API key/authentication tokennpx @modelcontextprotocol/inspector
Create a new MCP configuration with the following settings:
jbang
["--quiet", "-Dtwitch.channel=YOUR_CHANNEL_NAME", "-Dtwitch.auth=YOUR_API_KEY", "be.tomcools:twitch-mcp:1.0.0-SNAPSHOT:runner"]
Connect to the server through the Inspector interface and start using the Twitch chat tools.
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"
]
}
}
}
YOUR_CHANNEL_NAME
with the Twitch channel name you want to connect toYOUR_API_KEY
with your Twitch authentication tokenIf the tool doesn't appear or doesn't work:
mvn install
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.
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.
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"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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