Remote OpenClaw Blog
Discord MCP Skill: Add AI to Your Server in Minutes
4 min read ·
Discord servers are where communities, dev teams, and creator groups collaborate. The Discord MCP skill on OpenClaw Bazaar brings AI-powered assistance directly into your server -- across channels, threads, DMs, and slash commands -- without building a custom bot from scratch.
What the Discord Skill Does
Instead of creating a Discord application, configuring gateway intents, wiring up discord.js event handlers, and managing permission hierarchies, you install one skill and connect your bot token. The skill handles all the underlying complexity.
Capabilities included with the Discord MCP skill:
- Channel monitoring -- the agent listens and responds in channels you designate
- Slash commands --
/ask,/summarize,/task,/statusare registered automatically, with support for custom commands - Thread context -- multi-turn conversations within threads retain full context
- DM conversations -- private one-on-one chats with the agent
- Role-based access control -- restrict which Discord roles can interact with the bot
- Rich embed responses -- formatted output with headers, fields, and color coding
Creating Your Discord Bot Token
Before installing the skill, you need a bot token from the Discord Developer Portal.
- Click New Application and name it (for example, "OpenClaw Assistant")
- Navigate to Bot and click Add Bot
- Enable Message Content Intent and Server Members Intent under Privileged Gateway Intents
- Copy the bot token
Next, generate an invite link. Go to OAuth2 -> URL Generator, select the bot and applications.commands scopes, and grant these permissions: Send Messages, Read Message History, Embed Links, Attach Files, Use Slash Commands, and Add Reactions. Open the generated URL to invite the bot to your server.
Installing From the Skills Directory
Find the Discord skill in the OpenClaw Bazaar skills directory by searching "Discord." Community ratings show you which version is most reliable. Install it and configure:
mcp_servers:
discord:
bot_token: "YOUR_DISCORD_BOT_TOKEN"
allowed_channels:
- "1234567890"
allowed_roles:
- "admin"
- "team"
slash_commands: true
dm_enabled: true
thread_context: true
Launch your agent and send a message in an allowed channel or use /ask followed by a question. The bot should respond within seconds.
Real-World Discord Workflows
The Discord skill powers a range of use cases across different server types.
Community FAQ automation. For open-source projects or product communities, the agent answers common questions using your knowledge base. New members get instant help instead of waiting for moderators. The agent references documentation, past discussions, and pinned resources.
Team project management. Developers use slash commands to create tasks, update statuses, and check project progress without leaving Discord. The agent connects to other MCP skills (like GitHub or Notion) to pull and push data across tools.
Content moderation support. The agent flags messages that may need admin review, summarizes long threads for moderators, and provides context on repeated issues. It does not replace human moderators but reduces their workload significantly.
Marketplace
Free skills and AI personas for OpenClaw — browse the marketplace.
Browse the Marketplace →Onboarding workflows. When new members join, the agent sends a welcome message with contextual information, links to important channels, and guidance on role assignments. This runs automatically through Discord events.
Meeting and voice channel summaries. After voice discussions, team members paste key points and the agent compiles a formatted summary posted to a designated text channel.
Handling Multiple Servers
A single Discord bot token works across multiple servers. The Discord MCP skill supports per-server configuration, so you can define different allowed channels, role restrictions, and behavior settings for each server:
mcp_servers:
discord:
bot_token: "YOUR_TOKEN"
server_configs:
"server_id_1":
allowed_channels: ["channel_a"]
allowed_roles: ["admin"]
"server_id_2":
allowed_channels: ["channel_b", "channel_c"]
allowed_roles: ["team", "contributor"]
This makes the skill suitable for agencies, consultancies, or organizations managing multiple Discord communities from a single OpenClaw instance.
Fixing Common Discord Skill Issues
Bot is online but silent. The most common cause is a missing Message Content Intent. Without it, the bot cannot read message content even if it has channel access. Enable it in the Developer Portal under Bot -> Privileged Gateway Intents.
Slash commands do not appear. Global command registration can take up to an hour. For instant availability, configure guild-specific commands by adding your server ID to the skill config.
Permission hierarchy problems. Discord permissions are hierarchical. The bot role must be positioned above user roles in your server settings for certain operations to work correctly.
Rate limiting delays. Discord enforces strict rate limits on message sending. The skill handles this with exponential backoff, but heavy concurrent usage across many channels can cause noticeable delays.
Memory issues on large servers. For servers with over 1,000 members, increase the Node.js memory allocation: NODE_OPTIONS="--max-old-space-size=4096".
Why Install vs. Build Custom?
The Discord MCP skill on OpenClaw Bazaar packages reconnection logic, rate limit handling, intent management, and slash command registration into a tested, community-reviewed package. Building equivalent functionality from scratch using discord.js requires significant boilerplate and ongoing maintenance. The skill directory lets you compare alternatives, read reviews, and choose the right fit for your server size and use case.
Browse the Skills Directory
Find the right skill for your workflow. The OpenClaw Bazaar skills directory has over 2,300 community-rated skills -- searchable, sortable, and free to install.
Personas Include MCP Servers
OpenClaw personas come with pre-configured MCP server connections -- no manual setup needed. Pick a persona and the right servers are already wired in. Compare personas ->