log-query-mcp
MCP server exposing Discord and Twitch/Chatty chat log query tools to Claude Code.
Setup
npm install
cp .env.example .env
# Edit .env and set DISCORD_BOT_TOKEN
Register with Claude Code (global):
claude mcp add chat-logs -- node /path/to/log-query-mcp/mcp-server.js
Twitch logs
Requires chatty-log-query checked out at ~/Projects/chatty-log-query. Reads Chatty log files from ~/.chatty/logs/.
Tools
Discord
| Tool | Description | |------|-------------| | discord_search | Search messages by content across server or channel | | discord_channel_stats | Message count and top chatters for a channel | | discord_list_channels | List all known channel names and IDs |
Twitch (Chatty logs)
| Tool | Description | |------|-------------| | twitch_search | Regex/string search across channel logs | | twitch_user_messages | All messages from a user in a channel | | twitch_top_chatters | Rank chatters by message count | | twitch_activity_rate | Rank chatters by message count, with msgs/hour vs their first-to-last-seen span | | twitch_events | Query sub/bits/giftsub events |
All Twitch tools accept either days (recent N days) or from/to (YYYY-MM-DD range) — from/to take precedence when both are given.
Environment
| Variable | Description | |----------|-------------| | DISCORD_BOT_TOKEN | Bot token from Discord Developer Portal |











