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=vaultproxy
- Add to your MCP client:
# Claude Code
claude mcp add nightbot -s user -- uvx nightbot-mcp
Tools
| Area | Tools |
|---|---|
| Channel | channel_info, join_channel, part_channel, send_chat_message |
| Commands | list_commands, add_command, update_command, delete_command |
| Timers | list_timers, add_timer, toggle_timer, delete_timer |
| Regulars | list_regulars, add_regular, remove_regular |
| Spam protection | get_spam_filter, update_spam_filter, add_banned_phrases |
| Meta | health_check |
Filters: blacklist, links, caps, symbols, repetitions, emotes.
Blacklist entries support Nightbot's * wildcards.
Development
pip install -e '.[dev]'
ruff check src tests && pytest
Tests are fully offline (fake HTTP opener).
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 nightbot_mcp-0.1.1.tar.gz.
File metadata
- Download URL: nightbot_mcp-0.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97de0450537b0d9e315d593aa1b73ce919350ff009ae5c5914e5650f85dfd3a4
|
|
| MD5 |
55b20834644545c3e9f0b3f6ede50bf9
|
|
| BLAKE2b-256 |
f515cb31220823ab738b2bb369ca97e2a52ecc249d1751bc3b348931e24e12d6
|
Provenance
The following attestation bundles were made for nightbot_mcp-0.1.1.tar.gz:
Publisher:
publish.yml on aaronckj/nightbot-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nightbot_mcp-0.1.1.tar.gz -
Subject digest:
97de0450537b0d9e315d593aa1b73ce919350ff009ae5c5914e5650f85dfd3a4 - Sigstore transparency entry: 2274557083
- Sigstore integration time:
-
Permalink:
aaronckj/nightbot-mcp@1d94d5a47b746342bad4a64da92eba8d0c5173c1 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/aaronckj
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d94d5a47b746342bad4a64da92eba8d0c5173c1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nightbot_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nightbot_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c6d7b2cbe7eda04509a8e36a25e57d3597487d77604f11ef00e830405ebf7c1
|
|
| MD5 |
f91dfab9ebac0bbca829aef9c5a2b112
|
|
| BLAKE2b-256 |
46b77901e2183ef36566f575fdb857f46f23b09dcabcfcf7bd1113685a5a60cf
|
Provenance
The following attestation bundles were made for nightbot_mcp-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on aaronckj/nightbot-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nightbot_mcp-0.1.1-py3-none-any.whl -
Subject digest:
0c6d7b2cbe7eda04509a8e36a25e57d3597487d77604f11ef00e830405ebf7c1 - Sigstore transparency entry: 2274557199
- Sigstore integration time:
-
Permalink:
aaronckj/nightbot-mcp@1d94d5a47b746342bad4a64da92eba8d0c5173c1 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/aaronckj
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d94d5a47b746342bad4a64da92eba8d0c5173c1 -
Trigger Event:
push
-
Statement type: