Skip to main content

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=true and returns a preview.
  • add_banned_phrases appends to the blacklist without clobbering it (fetch → merge → update).
  • No secrets in this repo or logged at runtime.

Quick start

  1. Create an app at nightbot.tv/account/applications and generate an access token (scopes: channel commands timers regulars spam_protection channel_send).
  2. Provide the token:
export NIGHTBOT_ACCESS_TOKEN=...     # or NIGHTBOT_MCP_SECRETS=vaultproxy
  1. 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

nightbot_mcp-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

nightbot_mcp-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file nightbot_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: nightbot_mcp-0.1.0.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

Hashes for nightbot_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4381f63eb5abd8a86cb28ff448487cf8dc8d32ba66c5084afd88ede494c31b9
MD5 f0653639008e5c4efaa385bb51bf2e08
BLAKE2b-256 10107b2dbaf2df2714a83afc741110429c2461e6d3a2f5c14d76c0022d10a224

See more details on using hashes here.

Provenance

The following attestation bundles were made for nightbot_mcp-0.1.0.tar.gz:

Publisher: publish.yml on aaronckj/nightbot-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nightbot_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nightbot_mcp-0.1.0-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

Hashes for nightbot_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f35b786959914e5cb2c86e3917eff2f541f97d1ea09a559f5d9849e80031d852
MD5 4eb77120f2e562bcc3ac4cf943b32983
BLAKE2b-256 370cdcec5a0870bd29db0cf297078b42b0630f2f42e1c90e5b367dbb6e4210f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for nightbot_mcp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on aaronckj/nightbot-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

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