nightbot-mcp
nightbot-mcp
An MCP (Model Context Protocol) server for Nightbot: manage custom chat commands, timers, regulars, and spam-protection filters — including the blacklist (banned words/phrases for live chat) — through the official Nightbot API.
Every mutating tool accepts
dry_run=trueand returns a preview.add_banned_phrasesappends to the blacklist without clobbering it (fetch → merge → update).No secrets in this repo or logged at runtime.
Quick start
Create an app at nightbot.tv/account/applications and generate an access token (scopes:
channel commands timers regulars spam_protection channel_send).Provide the token:
export NIGHTBOT_ACCESS_TOKEN=... # or NIGHTBOT_MCP_SECRETS=vaultproxyAdd to your MCP client:
# Claude Code
claude mcp add nightbot -s user -- uvx nightbot-mcpTools
Area | Tools |
Channel |
|
Commands |
|
Timers |
|
Regulars |
|
Spam protection |
|
Meta |
|
Filters: blacklist, links, caps, symbols, repetitions, emotes.
Blacklist entries support Nightbot's * wildcards.
Development
pip install -e '.[dev]'
ruff check src tests && pytestTests are fully offline (fake HTTP opener).
License
MIT