Skip to main content

Discord Message Context Provider for Claude

Project description

Discord MCP

Discord Message Context Provider for Claude - Enables Claude to search and access Discord messages through the Model Context Protocol (MCP).

Features

  • Connect Claude to your Discord messages using MCP
  • Search messages with BM25 relevance scoring
  • Export Discord channels using DiscordChatExporter
  • Web UI for configuration and monitoring
  • Docker support for containerized deployment

Installation

Using pipx (Recommended)

pipx install discord-mcp

Using pip

pip install discord-mcp

Usage

Setting up Claude Desktop

Configure Claude Desktop to connect to the Discord MCP server by adding the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "discord-mcp": {
      "command": "pipx",
      "args": [
        "run", 
        "discord-mcp"
      ],
      "env": {
        "DISCORD_DATA_URL": "http://your-server-ip:8081"
      }
    }
  }
}

Running the MCP Server

discord-mcp

Running the Web UI

discord-webui

Configuration

Create a .env file with the following variables:

DISCORD_DATA_DIR=/absolute/path/to/discord_data
DISCORD_USER_TOKEN=your_discord_token
DISCORD_WEBUI_PORT=8080
DISCORD_WEBUI_HOST=0.0.0.0

Important: DISCORD_DATA_DIR must be an absolute path, especially when running in read-only environments like Claude Desktop with pipx.

Docker Deployment

docker-compose up -d

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord_mcp-0.1.2.tar.gz (80.6 kB view details)

Uploaded Source

Built Distribution

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

discord_mcp-0.1.2-py3-none-any.whl (92.6 kB view details)

Uploaded Python 3

File details

Details for the file discord_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: discord_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 80.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for discord_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4c934459cec3be7f356200187c04185e58a66203f11d374b5412dca6318aa6de
MD5 977accbf2e8f7770d5805d7fb585b87d
BLAKE2b-256 eb26e23f8d898e34770f410944d0de1eeab18bff6fbc576975c6a4fa07d679af

See more details on using hashes here.

File details

Details for the file discord_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: discord_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 92.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for discord_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb0fae55b713b21b649c21023fae605e989311e74cda2cde8590d9b9cf7e10ee
MD5 e0e779ea711c1bafb20ae4ab6649fa00
BLAKE2b-256 487d2555a4dde6f0659779f1783c7cb5f4bb556fbc61a2fa121b8181dd29e2b9

See more details on using hashes here.

Supported by

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