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.5.tar.gz (81.8 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.5-py3-none-any.whl (93.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_mcp-0.1.5.tar.gz
  • Upload date:
  • Size: 81.8 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.5.tar.gz
Algorithm Hash digest
SHA256 c6d1cbb81bb86e69d13e383ca69789c4ce59631e37c9904f03d2c5feef62b1a3
MD5 4165a12cb0e5989ed75764f13aa97d79
BLAKE2b-256 9891eb764f1e5cd66b1fa480e2cc9b0119d8ad3fc6820f83a2543e0e4f287b39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discord_mcp-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 93.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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 39a57aef459a6f835e33fb1f0cd0b51d47ab639da997a189139ba2a8b498647a
MD5 cd94b29c2f47c09772f6e33dc1155667
BLAKE2b-256 c042f29eb6b67b46f0e8aa3b11d3304f7788f7c7ecd1279c32c31e1b93ad2cda

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