Skip to main content

Discord MCP Server

Discord MCP Server provides Discord API integration for MCP-compatible AI models through a simple, secure server.

🚀 Quick Start with uvx (Recommended)

The easiest way to use Discord MCP Server is with uvx - no installation required:

# Set your Discord bot token
export DISCORD_TOKEN="your_bot_token_here"

# Run directly with uvx (no installation needed!)
uvx discord-mcp

🛠 Alternative Installation Methods

Using pipx

pipx install discord-mcp
export DISCORD_TOKEN="your_bot_token_here"
discord-mcp

Using pip

pip install discord-mcp
export DISCORD_TOKEN="your_bot_token_here" 
discord-mcp

Development Installation

git clone https://github.com/defi-wonderland/discord-mcp
cd discord-mcp
uv add mcp httpx python-dotenv
cp .env.example .env  # Add your Discord token
uv run python -m discord_mcp

🔧 Discord Bot Setup

  1. Go to https://discord.com/developers/applications
  2. Create a new application and bot
  3. Copy the bot token to your environment or .env file
  4. Invite the bot to your server with these permissions:
    • View Channels
    • Send Messages
    • Read Message History
    • Add Reactions
    • Create Public Threads

🔨 Available Tools (12 Total)

Message Operations

  • send_message - Send messages with mentions, formatting, and replies
  • get_messages - Retrieve message history with pagination
  • add_reaction - Add emoji reactions to messages

Channel Management

  • list_channels - List server channels with type filtering
  • get_channel_info - Get detailed channel information

Thread Discovery & Management

  • create_thread - Create new discussion threads
  • list_threads - Discover active threads in channels
  • list_archived_threads - Find archived threads (public/private)
  • join_thread - Join existing threads
  • get_thread_members - View thread membership

Server Information

  • get_server_info - Get server details and member counts
  • list_servers - List all accessible Discord servers

✨ Features

  • Zero Installation: Run directly with uvx discord-mcp
  • Direct REST API: No persistent bot process required
  • Comprehensive Error Handling: Helpful error messages with permission hints
  • Discord Formatting: Full support for markdown and mentions
  • Thread Management: Complete thread discovery and interaction
  • Secure: Minimal permissions, read-only server access
  • MCP Standard: Compatible with Claude Desktop and other MCP clients

🔗 Integration with MCP Clients

Claude Desktop

Add to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "discord": {
      "command": "uvx",
      "args": ["discord-mcp"],
      "env": {
        "DISCORD_TOKEN": "your_bot_token_here"
      }
    }
  }
}

Other MCP Clients

The server communicates via stdio and follows the MCP protocol standard.

📝 Usage Examples

Send a Message with Mentions

{
  "tool": "send_message",
  "arguments": {
    "channel_id": "123456789",
    "content": "Hello <@987654321>! Check out <#555666777>"
  }
}

Create and Manage Threads

{
  "tool": "create_thread", 
  "arguments": {
    "channel_id": "123456789",
    "name": "Discussion Thread"
  }
}

🤝 Contributing

This project is open source and contributions are welcome! See the repository for development setup and contribution guidelines.

📄 License

MIT License - see LICENSE file for details.

Metadata

Release files for wonderland-discord-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wonderland-discord-mcp 0.1.1
File Size Uploaded Provenance Actions
wonderland_discord_mcp-0.1.1.tar.gz 59.0 kB Without provenance Details for wonderland_discord_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wonderland-discord-mcp 0.1.1
File Interpreter ABI Platform Actions
wonderland_discord_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for wonderland_discord_mcp-0.1.1-py3-none-any.whl

Total release size: 126.0 kB

Release files / wonderland_discord_mcp-0.1.1.tar.gz

Download URL wonderland_discord_mcp-0.1.1.tar.gz
Size 59.0 kB
Tags Source
SHA-256 checksum
How to use checksums
294b339a13e7247b4cd3603279963fdeeb83ff0ad1d65aebc39d59469e2affc9
BLAKE2b-256 checksum
How to use checksums
8d282fafdcbd026da03e2eefb831fddc475f75acc3385a65a34897ce44f834ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Release files / wonderland_discord_mcp-0.1.1-py3-none-any.whl

Download URL wonderland_discord_mcp-0.1.1-py3-none-any.whl
Size 67.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
875805cb30c221eda84a62416d08cc4ede05878caddcbdb398f115ab791555d2
BLAKE2b-256 checksum
How to use checksums
e32bda4f29ff3aac447ebf8969c04b6d559d9f6fcd9534df55b8da5139baeb71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Security for wonderland-discord-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page