1. Conduid
  2. Communication
  3. Discord Conversation Logger
MCP server · Communication

Discord Conversation Logger

MCP server that enables AI assistants to log conversations to Discord for audit trails, review, and team collaboration

Unclaimed comms
34Low

Scored 6 months ago · breakdown

About Discord Conversation Logger

Discord Conversation Logger is an MCP server in the Communication category: mCP server that enables AI assistants to log conversations to Discord for audit trails, review, and team collaboration.

Install

From source
git clone https://github.com/SH11235/discord-conversation-logger

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Discord Conversation Logger

Powered by Claude · Grounded in docs

I know everything about Discord Conversation Logger. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Discord Conversation Logger MCP Server

An MCP (Model Context Protocol) server that allows AI assistants to log conversations to Discord for review and history tracking.

スクリーンショット 2025-07-02 235804

Overview

This MCP server provides a simple way for AI assistants to maintain conversation logs in Discord. It's useful for:

  • Audit Trail: Keep a record of important interactions and decisions
  • Review: Easily review past conversations and context
  • Collaboration: Share conversation history with team members
  • Debugging: Track issues and their resolutions

Features

  • Log messages with different roles (human, assistant, system)
  • Color-coded Discord embeds for easy identification
  • Automatic thread creation for organized logs
  • Timestamps on all messages
  • Optional context metadata

Requirements

  • Rust (1.70 or higher)
  • Discord account and bot
  • MCP-compatible AI client (Claude Desktop, Claude Code, etc.)

Setup

1. Create Discord Bot

  1. Go to Discord Developer Portal
  2. Create a new application
  3. Create a bot in the Bot section and obtain the token
  4. Set required permissions:
    • Send Messages
    • Create Public Threads
    • Read Message History
    • Embed Links
  5. Enable privileged gateway intents in Bot section:
    • Message Content Intent

2. Install

cargo install --git https://github.com/SH11235/discord-conversation-logger.git

Or clone and build locally:

git clone https://github.com/SH11235/discord-conversation-logger.git
cd discord-conversation-logger
cargo install --path .

Configuration

Quick Setup for Claude Code

  1. Run the setup script from the repository directory:

    ./setup-discord-env.sh
    
  2. Edit ~/.claude/discord-config.json with your Discord credentials:

    {
      "bot_token": "YOUR_DISCORD_BOT_TOKEN",
      "channel_id": "YOUR_CHANNEL_ID",
      "thread_name": "Conversation Log"  // Optional, defaults to "Conversation Log"
    }
    
  3. Load environment variables (optional for testing):

    source ./load-discord-env.sh
    
  4. Add the MCP server to Claude Code:

    # First, load the environment variables (if using discord-config.json):
    source ./load-discord-env.sh
    
    # For global use (available in all projects):
    claude mcp add -s user discord-conversation-logger discord-conversation-logger \
      -e DISCORD_TOKEN="$DISCORD_TOKEN" \
      -- --log-channel-id "$LOG_CHANNEL_ID" --log-thread-name "$LOG_THREAD_NAME"
    
    # Or manually specify values:
    claude mcp add -s user discord-conversation-logger discord-conversation-logger \
      -e DISCORD_TOKEN="your-actual-discord-bot-token" \
      -- --log-channel-id "123456789012345678" --log-thread-name "Conversation Log"
    
    # For local project use (default):
    claude mcp add discord-conversation-logger discord-conversation-logger \
      -e DISCORD_TOKEN="$DISCORD_TOKEN" \
      -- --log-channel-id "$LOG_CHANNEL_ID" --log-thread-name "$LOG_THREAD_NAME"
    

    Note: The MCP server reads configuration from environment variables or command-line arguments, not directly from ~/.claude/discord-config.json.

Manual Configuration

Alternatively, you can manually add the following to your MCP configuration file (~/.claude.json):

{
  "mcpServers": {
    "discord-conversation-logger": {
      "command": "discord-conversation-logger",
      "args": [
        "--log-channel-id", "your-channel-id",
        "--log-thread-name", "AI Conversation Log"
      ],
      "env": {
        "DISCORD_TOKEN": "your-discord-bot-token"
      }
    }
  }
}

Environment Variables

  • DISCORD_TOKEN: Your Discord bot token
  • LOG_CHANNEL_ID: Discord channel ID for logs
  • LOG_THREAD_NAME: Thread name (default: "Conversation Log")

Thread Naming

The logger automatically includes the current working directory in the thread name. For example:

  • If LOG_THREAD_NAME is "Conversation Log" and you're working in /home/user/project
  • The actual thread name will be: "Conversation Log [/home/user/project]"

This helps identify which project or context the conversation logs belong to.

Usage

Once configured, AI assistants can use the log_conversation tool:

Assistant: I'll log this important decision.
[Uses log_conversation tool with role="assistant", message="Implemented feature X with approach Y"]

Message Roles

  • human: User messages and requests (blue)
  • assistant: AI responses and actions (green)
  • system: System messages, errors, or metadata (gray)

Example Usage

{
  "role": "human",
  "message": "Please implement a new authentication system",
  "context": "feature-request"
}

Message Format

Logged messages appear in Discord as embedded messages with:

  • Title: Role indicator with emoji (💬 HUMAN, 💬 ASSISTANT, 💬 SYSTEM)
  • Color: Role-specific color coding
  • Content: The message text
  • Timestamp: Automatic timestamp
  • Footer: Optional context information

Finding Discord IDs

Getting Channel ID

  1. Enable Developer Mode in Discord (Settings → Advanced → Developer Mode)
  2. Right-click on channel → "Copy ID"

Development

To contribute or modify:

git clone https://github.com/SH11235/discord-conversation-logger.git
cd discord-conversation-logger
cargo build
cargo run -- --log-channel-id YOUR_CHANNEL_ID

License

MIT License - see LICENSE file for details

CLAUDE.md Configuration Example

When using with Claude Code, you can create a CLAUDE.md file in your project to establish logging rules:

# Discord Conversation Logger Rules

## Important Message Logging Rules

Please use discord-conversation-logger MCP to log messages in the following cases:

### 1. User Messages (human)
- Task start/change/completion instructions
- Important decisions or confirmations
- Error reports or issue identification

### 2. Assistant Messages (assistant)
- Task completion reports
- Important suggestions or solutions
- Error resolution methods
- Summary of significant changes made

### 3. System Messages (system)
- Critical errors or warnings
- Important environment changes
- Security-related notifications

## Logging Format

mcp__discord-conversation-logger__log_conversation( message: "Actual message content", role: "human" | "assistant" | "system", context: "Brief context description" )


## Cases Not Requiring Logs
- Simple acknowledgments
- Intermediate progress reports
- Temporary debug outputs

This configuration helps maintain an audit trail of important project decisions and progress.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Acknowledgments

Built using:

  • rmcp - Rust MCP SDK
  • serenity - Discord API library for Rust

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Discord Conversation Logger

How do I install Discord Conversation Logger?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Discord Conversation Logger safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Discord Conversation Logger still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.