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.1.tar.gz (81.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.1-py3-none-any.whl (93.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 81.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.1.tar.gz
Algorithm Hash digest
SHA256 a79b43755e4f8461b4f9a6333c27ce30d92144a29a05d4c3969495085a515352
MD5 f7f5f65fcd59436b647fe389e5ae1973
BLAKE2b-256 3d40ff73f4685f741993707bd0640ff75a34c9fc278de6c20910e76f686eca71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discord_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 93.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe82b00ae753dc5833e0497ed4e58a0340e92edd598f4a511fafa6cac660f0b6
MD5 4e872f29c385d0eac0e1d924ceb05208
BLAKE2b-256 49d60f7f7f78fd00d8588aa74ee8a1d09f5a254b69867a56c5086797a2a7ed03

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