MCP server exposing Twitch SDK as tools for AI assistants
Project description
twitch-mcp
MCP server exposing the Twitch SDK as tools for AI assistants like Claude Code.
Quick Start
1. Install
pip install twitch-mcp
2. Setup Credentials
Create ~/.twitch-secrets/.env:
mkdir -p ~/.twitch-secrets
cat > ~/.twitch-secrets/.env << 'EOF'
TWITCH_CLIENT_ID=your_client_id
TWITCH_CLIENT_SECRET=your_client_secret
TWITCH_ACCESS_TOKEN=your_access_token
TWITCH_REFRESH_TOKEN=your_refresh_token
EOF
Get credentials from:
- Client ID/Secret: Twitch Developer Console
- Access/Refresh Tokens: Use Twitch CLI or an OAuth app
3. Configure Claude Code
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"twitch": {
"command": "twitch-mcp"
}
}
}
4. Restart Claude Code
Run /mcp to verify the twitch server is connected.
Available Tools
Chat
twitch_send_chat_message- Send a message to chattwitch_get_chatters- Get list of users in chattwitch_send_announcement- Send an announcementtwitch_send_shoutout- Shoutout another broadcastertwitch_get_chat_settings- Get chat settingstwitch_update_chat_settings- Update chat settings
Streams
twitch_get_streams- Get live streamstwitch_get_followed_streams- Get followed live streamstwitch_create_stream_marker- Create a stream marker
Channels
twitch_get_channel_info- Get channel informationtwitch_modify_channel_info- Update title, game, etc.twitch_get_channel_followers- Get followerstwitch_get_vips/twitch_add_vip/twitch_remove_vip
Clips
twitch_create_clip- Create a cliptwitch_get_clips- Get clips
Polls & Predictions
twitch_create_poll/twitch_get_polls/twitch_end_polltwitch_create_prediction/twitch_get_predictions/twitch_end_prediction
Moderation
twitch_ban_user/twitch_unban_usertwitch_warn_usertwitch_delete_chat_messagestwitch_get_moderators/twitch_add_moderator/twitch_remove_moderatortwitch_get_blocked_terms/twitch_add_blocked_termtwitch_get_shield_mode_status/twitch_update_shield_mode
Channel Points
twitch_get_custom_rewards/twitch_create_custom_reward/twitch_update_custom_reward/twitch_delete_custom_rewardtwitch_get_redemptions/twitch_update_redemption_status
And More...
- Ads, Analytics, Bits, Charity, EventSub, Games, Goals, Guest Star, Hype Train, Raids, Schedule, Search, Subscriptions, Teams, Users, Videos, Whispers
Usage Examples
Ask Claude Code:
- "Send a chat message saying hello"
- "Create a poll asking what game to play next"
- "Get the list of chatters"
- "Start a raid to xQc"
- "Create a clip"
- "Update my stream title to 'Coding Session'"
Dependencies
- twitch-sdk (API layer)
- mcp (MCP protocol)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
twitch_mcp-0.1.1.tar.gz
(22.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twitch_mcp-0.1.1.tar.gz.
File metadata
- Download URL: twitch_mcp-0.1.1.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.7 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d6f7769cb069725039fbf4b25817af95686c1befdbb69ae90f6f03c743af3e0
|
|
| MD5 |
d24f1739709599a2fc47305287c565ad
|
|
| BLAKE2b-256 |
2e631da21a56dcf2cc5ad1d9c595bf36791d9ac158a17d2824ec204b382e035f
|
File details
Details for the file twitch_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: twitch_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.7 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db097a10ee6220947deb952ed68917126670602a495e94437818692964543bf1
|
|
| MD5 |
79536e0f6bb0081e8650e2def0577529
|
|
| BLAKE2b-256 |
0111f427b930e536ecb433d087e9198f8c53229ef59a3053ea63588da8e01735
|