Skip to main content

MCP server exposing Twitch SDK as tools for AI assistants

Project description

twitch-mcp

PyPI

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:

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 chat
  • twitch_get_chatters - Get list of users in chat
  • twitch_send_announcement - Send an announcement
  • twitch_send_shoutout - Shoutout another broadcaster
  • twitch_get_chat_settings - Get chat settings
  • twitch_update_chat_settings - Update chat settings

Streams

  • twitch_get_streams - Get live streams
  • twitch_get_followed_streams - Get followed live streams
  • twitch_create_stream_marker - Create a stream marker

Channels

  • twitch_get_channel_info - Get channel information
  • twitch_modify_channel_info - Update title, game, etc.
  • twitch_get_channel_followers - Get followers
  • twitch_get_vips / twitch_add_vip / twitch_remove_vip

Clips

  • twitch_create_clip - Create a clip
  • twitch_get_clips - Get clips

Polls & Predictions

  • twitch_create_poll / twitch_get_polls / twitch_end_poll
  • twitch_create_prediction / twitch_get_predictions / twitch_end_prediction

Moderation

  • twitch_ban_user / twitch_unban_user
  • twitch_warn_user
  • twitch_delete_chat_messages
  • twitch_get_moderators / twitch_add_moderator / twitch_remove_moderator
  • twitch_get_blocked_terms / twitch_add_blocked_term
  • twitch_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_reward
  • twitch_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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twitch_mcp-0.1.1-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

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

Hashes for twitch_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d6f7769cb069725039fbf4b25817af95686c1befdbb69ae90f6f03c743af3e0
MD5 d24f1739709599a2fc47305287c565ad
BLAKE2b-256 2e631da21a56dcf2cc5ad1d9c595bf36791d9ac158a17d2824ec204b382e035f

See more details on using hashes here.

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

Hashes for twitch_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db097a10ee6220947deb952ed68917126670602a495e94437818692964543bf1
MD5 79536e0f6bb0081e8650e2def0577529
BLAKE2b-256 0111f427b930e536ecb433d087e9198f8c53229ef59a3053ea63588da8e01735

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page