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
Metadata
Release files for nightbot-mcp 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nightbot_mcp-0.1.2.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nightbot_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / nightbot_mcp-0.1.2.tar.gz
| Download URL | nightbot_mcp-0.1.2.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
690ec0caec3b601cad3fdee3b8e752f5069003fcd4d8ef9a45cd50d3056a02eb
|
|
BLAKE2b-256 checksum How to use checksums |
6f20c0b04002d3c0a29d6185a222cb86a51b699ccde5a0861f80034c1eb28826
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency logRelease files / nightbot_mcp-0.1.2-py3-none-any.whl
| Download URL | nightbot_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af36ea6ce174fb2f7d4071d5482e575a33ece80911455d57e73aad8ca4af30a8
|
|
BLAKE2b-256 checksum How to use checksums |
a7caf784b8c417b41728f0fb6604684cf94e08787e1b534e5b8c730d4bbab095
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency log