Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A Model Context Protocol (MCP) server for Discord-based AI agent-user communication. Enables AI agents to communicate with users through Discord instead of IDE chat interfaces.
Fetched from the repository for this visit.
A Model Context Protocol (MCP) server for Discord-based AI agent-user communication. Enables AI agents to communicate with users through Discord instead of IDE chat interfaces.
# Using uvx (recommended - no install needed)
uvx discord-mcp-agent
# Or install via pip
pip install discord-mcp-agent
# For screenshot support
pip install discord-mcp-agent[screenshot]
Add to .vscode/mcp.json:
{
"servers": {
"discord": {
"type": "stdio",
"command": "uvx",
"args": ["discord-mcp-agent"],
"env": {
"DISCORD_TOKEN": "your-bot-token",
"DISCORD_GUILD_ID": "your-server-id",
"DISCORD_CHANNEL": "general"
}
}
}
}
Add to claude_desktop_config.json:
{
"mcpServers": {
"discord": {
"command": "uvx",
"args": ["discord-mcp-agent"],
"env": {
"DISCORD_TOKEN": "your-bot-token",
"DISCORD_GUILD_ID": "your-server-id",
"DISCORD_CHANNEL": "general"
}
}
}
}
botSend Messages, Read Message History, Add Reactions, Attach Files⚠️ Security Warning: Never commit your bot token to version control! Use environment variables or
.envfiles.
discord_askSend a question and wait for user response. Supports reaction-based interactions.
| Parameter | Type | Required | Description |
|---|---|---|---|
question | string | ✅ | The question to ask user |
Reactions automatically added:
Response format:
{
"text": "User's response text",
"attachments": [{ "filename": "...", "url": "..." }],
"cancelled": false
}
discord_notifySend a notification (no response expected).
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | ✅ | The message to send |
discord_send_fileSend a file to the user.
| Parameter | Type | Required | Description |
|---|---|---|---|
file_path | string | ✅ | Absolute path to the file |
message | string | ❌ | Optional message with the file |
discord_screenshotTake and send a desktop screenshot.
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | ❌ | Optional message with the screenshot |
Requires
pip install discord-mcp-agent[screenshot]
discord_embedSend a rich embed message with full formatting.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | ❌ | Embed title |
description | string | ❌ | Main content |
color | integer | ❌ | Hex color (default: 0x5865F2) |
fields | array | ❌ | Array of {name, value, inline} objects |
footer | string | ❌ | Footer text |
thumbnail_url | string | ❌ | Small image (top-right) |
image_url | string | ❌ | Large image (bottom) |
author_name | string | ❌ | Author name (top) |
url | string | ❌ | Title link URL |
Every message from the bot includes interactive reaction buttons:
| Emoji | Action | Description |
|---|---|---|
| 📷 | Screenshot | Takes a screenshot and sends it to Discord |
| ❌ | Cancel | Cancels the current discord_ask and returns control |
| ⏳ | Timeout | Added automatically when a request times out |
"cancelled": true| Variable | Required | Default | Description |
|---|---|---|---|
DISCORD_TOKEN | ✅ | - | Your Discord bot token |
DISCORD_GUILD_ID | ✅ | - | Your Discord server ID |
DISCORD_CHANNEL | ❌ | general | Channel name to use |
DISCORD_REMINDER | ❌ | - | Custom text appended to all responses |
DISCORD_ASK_TIMEOUT | ❌ | 300 | Seconds to wait for user response |
DISCORD_HTTP_TIMEOUT | ❌ | 30 | Seconds for HTTP operations |
DISCORD_CONNECTION_TIMEOUT | ❌ | 30 | Seconds to establish connection |
Inject custom instructions into every tool response:
{
"env": {
"DISCORD_REMINDER": "Remember: Always confirm with the user before completing tasks."
}
}
Adjust timeouts for your use case:
{
"env": {
"DISCORD_ASK_TIMEOUT": "600",
"DISCORD_HTTP_TIMEOUT": "60"
}
}
{
"name": "discord_ask",
"arguments": {
"question": "What color theme would you like for the dashboard?"
}
}
Response:
{
"text": "I'd prefer a dark theme with blue accents",
"attachments": [],
"cancelled": false
}
{
"name": "discord_embed",
"arguments": {
"title": "Build Complete ✅",
"description": "Your project has been successfully built.",
"color": 5763719,
"fields": [
{ "name": "Duration", "value": "2m 34s", "inline": true },
{ "name": "Size", "value": "1.2 MB", "inline": true }
],
"footer": "Built with discord-mcp-agent"
}
}
When users send images in response to discord_ask, they're automatically:
ImageContent for AI model consumption| Error | Cause | Solution |
|---|---|---|
DISCORD_TOKEN environment variable is required | Missing token | Set DISCORD_TOKEN in your MCP config |
Guild with ID X not found | Bot not in server | Invite bot using OAuth2 URL |
Channel 'X' not found in guild | Wrong channel name | Check DISCORD_CHANNEL matches exactly |
Failed to connect within 30 seconds | Network/token issue | Verify token and network connectivity |
PIL not installed | Screenshot dep missing | Run pip install discord-mcp-agent[screenshot] |
⏳ No response received within X seconds | User didn't respond | Increase DISCORD_ASK_TIMEOUT or user can click ❌ |
Bot appears offline:
Message Content Intent is enabled in Discord Developer PortalBot can't see messages:
Message Content Intent in bot settingsRead Message History permissionScreenshots not working:
pip install discord-mcp-agent[screenshot]mcp >= 1.0.0discord.py >= 2.0.0pydantic >= 2.0.0aiohttp >= 3.8.0Pillow >= 10.0.0 (optional, for screenshots)⚠️ Never commit your Discord bot token to version control!
.env files.env to .gitignoreContributions are welcome!
git clone https://github.com/zebbern/discord-mcp-agent.git
cd discord-mcp-agent
pip install -e ".[dev]"
pytest tests/ -v
Made with ❤️ for the MCP community
GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.