@striderlabs/mcp-discord
Allows AI assistants to interact with Discord servers and channels, including listing servers/channels, fetching and searching messages, sending messages, and managing direct messages via the Discord API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@striderlabs/mcp-discordshow me recent messages in the #general channel"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@striderlabs/mcp-discord
An MCP (Model Context Protocol) server for Discord, enabling AI assistants like Claude to interact with Discord servers and channels via the Discord API.
Prerequisites
You need a Discord Bot Token. This connector uses the Discord.js library to communicate with Discord's official API — not browser automation.
Creating a Discord Bot
Go to the Discord Developer Portal
Click New Application and give it a name
Go to the Bot section and click Add Bot
Under Token, click Reset Token and copy the token
Under Privileged Gateway Intents, enable:
Server Members Intent
Message Content Intent
Go to OAuth2 > URL Generator, select scopes:
botSelect bot permissions:
Read Messages/View Channels,Send Messages,Read Message HistoryUse the generated URL to invite the bot to your server(s)
Related MCP server: MCP-Discord
Installation
npm install @striderlabs/mcp-discordConfiguration
Set the DISCORD_TOKEN environment variable to your bot token:
export DISCORD_TOKEN=your_bot_token_hereUsage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"discord": {
"command": "npx",
"args": ["-y", "@striderlabs/mcp-discord"],
"env": {
"DISCORD_TOKEN": "your_bot_token_here"
}
}
}
}Available Tools
get_servers
List all Discord servers (guilds) the bot is a member of.
No parameters required.
get_channels
List channels in a Discord server.
Parameter | Type | Required | Description |
| string | Yes | Discord server (guild) ID |
| string | No | Filter: |
get_messages
Fetch recent messages from a channel.
Parameter | Type | Required | Description |
| string | Yes | Discord channel ID |
| number | No | Number of messages to fetch (1–100, default: 50) |
| string | No | Fetch messages before this ID (pagination) |
send_message
Send a message to a Discord channel.
Parameter | Type | Required | Description |
| string | Yes | Discord channel ID |
| string | Yes | Message text to send |
| string | No | Reply to a specific message ID |
get_dms
Get direct message conversations the bot has had.
Parameter | Type | Required | Description |
| number | No | Messages per conversation (1–50, default: 20) |
Note: DMs are only available after the bot has received at least one DM from a user.
search_messages
Search for messages containing specific text within a server.
Parameter | Type | Required | Description |
| string | Yes | Discord server ID |
| string | Yes | Text to search for |
| string | No | Limit search to a specific channel |
| number | No | Max results (1–100, default: 25) |
Note: Search scans recent messages (up to 100 per channel). For historical search, use Discord's built-in search.
Getting Channel and Server IDs
Enable Developer Mode in Discord (Settings > Advanced > Developer Mode), then right-click any server or channel to copy its ID.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/markswendsen-code/mcp-discord'
If you have feedback or need assistance with the MCP directory API, please join our Discord server