log-query-mcp
Allows searching messages by content across servers or channels, viewing message counts and top chatters, and listing all known channel names and IDs.
Supports regex or string search across channel logs, retrieving all messages from a user, ranking chatters by message count, and querying sub/bits/giftsub events.
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., "@log-query-mcp search discord for 'deploy' in #dev-channel"
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.
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_TOKENRegister with Claude Code (global):
claude mcp add chat-logs -- node /path/to/log-query-mcp/mcp-server.jsRelated MCP server: cc-session-search
Twitch logs
Requires chatty-log-query checked out at ~/Projects/chatty-log-query. Reads Chatty log files from ~/.chatty/logs/.
Tools
Discord
Tool | Description |
| Search messages by content across server or channel |
| Message count and top chatters for a channel |
| List all known channel names and IDs |
Twitch (Chatty logs)
Tool | Description |
| Regex/string search across channel logs |
| All messages from a user in a channel |
| Rank chatters by message count |
| Rank chatters by message count, with msgs/hour vs their first-to-last-seen span |
| 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 |
| Bot token from Discord Developer Portal |
Available Tools
7 toolsdiscord_channel_statsC
Message count and top-chatter stats for a Discord channel.
Inputs: channel, pages.
discord_list_channelsA
List all known Discord channel names and their IDs.
Inputs: no named parameters.
discord_searchB
Search Discord messages by content keyword across the whole server or a specific channel.
Inputs: query (required), channel, limit.
twitch_eventsB
Query Twitch sub/bits/giftsub events in a channel.
Inputs: channel (required), type, user, days, +2 more.
twitch_searchC
Search Twitch chat logs (Chatty) for messages matching a pattern.
Inputs: channel (required), pattern (required), days, user.
twitch_top_chattersB
Rank Twitch chatters by message count in a channel.
Inputs: channel (required), days, limit.
twitch_user_messagesB
Fetch all Twitch chat messages from a specific user in a channel.
Inputs: channel (required), user (required), days.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct platform (Discord or Twitch) and a specific operation (search, list, stats, events), with no overlapping purposes. The platform prefix and clear action verbs make them easily distinguishable.
All tools follow a consistent `platform_action` pattern using snake_case (e.g., discord_list_channels, twitch_search). The naming is uniform and predictable across both platforms.
7 tools is a well-scoped set for a log query server covering two platforms (Discord and Twitch). Each tool provides a meaningful query capability without unnecessary bloat.
The tool set covers the core query operations for both platforms: searching, listing, stats, and user-specific queries. Minor gaps include lacking direct message retrieval by ID or cross-platform search, but the surface is largely complete for a query-focused server.
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA powerful MCP server that extracts, stores, searches, and analyzes Claude.ai conversations with SQLite database, semantic search, and multiple export formats including Obsidian and PDF.101 PyPI1MIT
- FlicenseBqualityDmaintenanceAn MCP server that provides tools for searching and analyzing Claude Code conversation history.84-
- AlicenseNot gradedqualityDmaintenanceA local MCP server that indexes and searches your Claude Code conversation history with both keyword and semantic search, fully private and running locally.MIT
- AlicenseAqualityCmaintenanceA local MCP server that indexes and searches your past Claude sessions using SQLite FTS5. No cloud, runs entirely on your machine.3MIT