An MCP server that integrates with Discord to enable AI assistants to interact with the Discord platform. The published description frames it as a “Discord MCP (Model Context Protocol) server” for AI-powered features, with documentation presented under the MCP-Discord heading.
🛠️ Key Features
Integrates with Discord via Model Context Protocol (MCP)
Provides AI-powered features for interacting with Discord
Server metadata includes a GitHub-repo style listing with badges (Smithery, mcpx.dev, Docker Hub)
🚀 Use Cases
Let AI assistants perform actions or retrieve information through Discord
Bridge AI-driven workflows with Discord as the interaction platform
⚡ Developer Benefits
Uses MCP to connect AI tooling with the Discord platform
Includes distribution information via Docker Hub and server badges
⚠️ Limitations
Available source data does not list specific tools, permissions, or supported capabilities beyond Discord integration.
Note:
According to Discord's security model, a bot can only access information from servers it has been explicitly added to.
If you want to use this MCP server to access a specific Discord server, you must add the bot to that server first.
Use the invite link below to add the bot to your target server.
Installation
Installing via NPM
You can use it with the following command:
bash
npx mcp-discord --config ${DISCORD_TOKEN}
For more details, you can check out the NPM Package.
# Pull the latest image
docker pull barryy625/mcp-discord:latest
# Run with environment variable
docker run -e DISCORD_TOKEN=your_discord_bot_token -p 8080:8080 barryy625/mcp-discord:latest
# Or run with command line config
docker run -p 8080:8080 barryy625/mcp-discord:latest --config "your_discord_bot_token"
Available Tags:
latest - Latest stable version from main branch
v1.3.3, etc. - Specific version releases
Manual Installation
bash
# Clone the repository
git clone https://github.com/barryyip0625/mcp-discord.git
cd mcp-discord
# Install dependencies
npm install
# Compile TypeScript
npm run build
Configuration
A Discord bot token is required for proper operation. The server supports two transport methods: stdio and streamable HTTP.
Transport Methods
stdio (Default)
Traditional stdio transport for basic usage
Suitable for simple integrations
streamable HTTP
HTTP-based transport for more advanced scenarios
Supports stateless operation
Configurable port number
Configuration Options
You can provide configuration in two ways:
Environment variables:
bash
DISCORD_TOKEN=your_discord_bot_token
Using command line arguments:
bash
# For stdio transport (default)
node build/index.js --config "your_discord_bot_token"# For streamable HTTP transport
node build/index.js --transport http --port 3000 --config "your_discord_bot_token"
Usage with Claude/Cursor
Docker
You can use Docker containers with both Claude and Cursor: