nightbot-mcp
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., "@nightbot-mcp Add the word 'spam' to the blacklist."
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.
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-mcpRelated MCP server: discord-mcp
Tools
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
Available Tools
25 toolsadd_banned_phrasesA
Append phrases to the chat blacklist (fetch-merge-update; no duplicates).
Inputs: phrases (required), dry_run.
add_commandB
Add a custom command (name like !rules). user_level: everyone|subscriber|regular|moderator|owner. cooldown in seconds (5-300).
Inputs: name (required), message (required), dry_run, cooldown, +1 more.
add_regularC
Add a user to regulars by username.
Inputs: name (required), dry_run.
add_timerA
Add a timer that posts a message every interval_minutes (5-60) once chat_lines messages have passed (spam guard).
Inputs: name (required), message (required), dry_run, chat_lines, +1 more.
channel_infoB
The Nightbot channel this token controls, and whether the bot has joined.
Inputs: no named parameters.
delete_commandC
Delete a custom command.
Inputs: command_id (required), dry_run.
delete_timerC
Delete a timer.
Inputs: timer_id (required), dry_run.
get_spam_filterA
Get a spam-protection filter's settings. filter_name: blacklist|links|caps|symbols|repetitions|emotes. blacklist = the banned words/phrases list for live chat.
Inputs: filter_name (required).
health_checkA
Verify the Nightbot token and report the connected channel.
Inputs: no named parameters.
join_channelC
Make Nightbot join the channel's chat.
Inputs: dry_run.
list_commandsB
List custom chat commands.
Inputs: no named parameters. Returns: result
list_default_commandsA
List Nightbot's built-in commands (!commands, !title, etc.) and status.
Inputs: no named parameters. Returns: result
list_regularsA
List regulars (trusted users exempt from spam filters).
Inputs: no named parameters. Returns: result
list_timersA
List timers (scheduled recurring chat messages).
Inputs: no named parameters. Returns: result
part_channelC
Make Nightbot leave the channel's chat.
Inputs: dry_run.
remove_regularB
Remove a regular by id (from list_regulars).
Inputs: regular_id (required), dry_run.
send_chat_messageC
Send a chat message as Nightbot.
Inputs: message (required), dry_run.
song_queueB
List the current song-request queue.
Inputs: limit. Returns: result
song_queue_clearC
Clear the entire song-request queue.
Inputs: dry_run.
song_requests_settingsC
Get song-request settings, or update them when arguments are given. playlist: monstercat|youtube|soundcloud (provider-dependent).
Inputs: dry_run, enabled, playlist, user_level.
song_skipC
Skip the currently playing song request.
Inputs: dry_run.
toggle_default_commandB
Enable or disable a built-in command by name (e.g. 'songs', 'title').
Inputs: name (required), enabled (required), dry_run.
toggle_timerC
Enable or disable a timer.
Inputs: enabled (required), timer_id (required), dry_run.
update_commandC
Update a custom command's message, user level, or cooldown.
Inputs: command_id (required), dry_run, message, cooldown, +1 more.
update_spam_filterC
Update a spam filter. For filter_name=blacklist, blacklist replaces
the banned words/phrases list (supports * wildcards per Nightbot docs).
Inputs: filter_name (required), silent, dry_run, enabled, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Each tool targets a distinct feature: channel management, commands, song requests, timers, regulars, spam filters, and chat. No two tools appear to overlap in purpose.
Most tools follow verb_noun pattern (e.g., add_command, delete_timer), but 'song_requests_settings' uses plural while others use singular, and 'channel_info' breaks the pattern.
25 tools is slightly above the typical range, but the breadth of features (commands, timers, spam, song requests, regulars) justifies the count. Could be slightly condensed.
The tool set covers full lifecycle management for commands, timers, regulars, and spam filters, plus song request controls and channel operations. No obvious gaps for the intended domain.
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
- Discortics - Discord BotDeprecatedcom.discortics
Set up and manage your Discord server from MCP: channels, roles, verification, tickets and security.
The official MCP Server for the Mux API
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for interacting with Discord.1913MIT
- AlicenseAqualityDmaintenanceMCP server for interacting with Discord via REST API, enabling guild, channel, and message operations using a bot token.7MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for the Notion API, enabling management of pages, blocks, databases, data sources, comments, and users through natural language.15 npm3MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server for interacting with Mattermost workspaces, providing tools to manage channels, messages, threads, reactions, and user profiles via the Mattermost REST API.-