@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: Discord MCP Server
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
Available Tools
6 toolsget_channelsA
List all channels in a Discord server
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | The Discord server (guild) ID | |
| channel_type | No | Filter by channel type (default: text) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden for behavioral disclosure. It does not mention the channel_type default of 'text', which conflicts with the claim of listing 'all channels'. This is a meaningful gap because a caller relying on the description may expect voice/category channels by default.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that immediately conveys the tool's purpose. There is no wasted wording, and the main action and target resource are front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple, but the description omits the fact that channel_type defaults to 'text', making 'all channels' potentially misleading. Without an output schema, a bit more detail about the default filtering behavior would make the description fully self-sufficient.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters and the enum values. The description adds no additional semantic detail beyond what the schema provides, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific verb ('List'), resource ('all channels'), and scope ('in a Discord server'). It clearly distinguishes get_channels from sibling tools like get_messages, send_message, get_dms, and get_servers, which target different resources.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The intended use case is clear: retrieve channels for a server. It does not explicitly say when not to use this tool, but the resource-based separation from sibling tools makes the appropriate context unambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_dmsB
Get recent direct message conversations the bot has had
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of messages to fetch per conversation (1-50, default: 20) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It only says 'recent', which hints at ordering/limiting but does not clarify return format, pagination, whether conversations are sorted, whether message content is included, or side effects (e.g., marking as read). An agent cannot anticipate the behavior beyond a basic read operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single efficient sentence that front-loads the core purpose. It contains no fluff or repetition. It could arguably include more context, but as far as conciseness and structure, it earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has no output schema and minimal annotations, so the description should compensate by explaining what a returned conversation looks like or any relevant edge cases. It does not. An agent knows it gets recent DM conversations and can pass an optional limit, but has no idea of the response shape, ordering, or whether it includes metadata or content. This is a meaningful gap for a simple tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already fully documents the only parameter (limit) with type and default value, so schema coverage is 100%. The description does not mention or explain any parameters, but the baseline of 3 applies because the schema does the heavy lifting. No additional semantic meaning is added.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Get'), a resource ('direct message conversations'), and a scope ('recent', 'bot has had'). The term 'conversations' distinguishes it from sibling get_messages (which likely returns individual messages) and other sibling tools like get_servers/get_channels. Purpose is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives such as search_messages or get_messages. There is no mention of which use cases this serves or when a sibling would be more appropriate. Usage context must be inferred entirely from the tool name and description.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_messagesC
Get recent messages from a Discord channel
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of messages to fetch (1-100, default: 50) | |
| channel_id | Yes | The Discord channel ID | |
| before_message_id | No | Fetch messages before this message ID (for pagination) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, but it only says 'get recent messages.' It does not disclose ordering, pagination behavior, channel access requirements, rate limits, or what the response contains.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is one short, front-loaded sentence with no filler or redundancy. It efficiently states the core purpose without repeating the tool name verbatim.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Without annotations or an output schema, the description leaves out important context about return values, message ordering, pagination implications, and how this tool relates to search_messages or get_dms. An agent has enough to attempt the call but not enough to use it confidently in varied scenarios.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema covers all three parameters with descriptions and defaults, so the schema carries the parameter-semantics load. The description adds no additional meaning beyond what the schema already provides, which matches the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific resource (Discord channel) and action (get recent messages), which clearly distinguishes it from send_message and get_servers. It does not explicitly contrast with search_messages, but 'recent messages' gives a usable scope.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided about when to use get_messages versus search_messages or get_dms. The word 'recent' implies a usage context, but there are no exclusions, alternatives, or conditions such as pagination scenarios.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_serversA
List all Discord servers (guilds) the bot is a member of
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It does communicate scope by limiting results to servers the bot is a member of, and 'List' implies a read-only operation, but it does not address return format, pagination, rate limits, or potential side effects. This is adequate but minimal.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, tight sentence with no filler. The core action and scope are front-loaded, and every word contributes to understanding the tool's purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a zero-parameter, no-output-schema tool, the description is nearly complete: it names the resource, the scope, and the operation. It could mention what the returned server objects contain, but that omission does not block correct invocation for a simple list-all tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters and the schema documents 100% coverage by declaring an empty properties object. The baseline for zero-parameter tools is 4 because there is no parameter-level meaning for the description to add.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description is specific and unambiguous: it names the exact action ('List all') and the exact resource ('Discord servers (guilds) the bot is a member of'). It is clearly distinct from siblings like get_messages, get_channels, and get_dms, which operate on different Discord entities.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description states what the tool does but gives no explicit guidance about when to choose it over alternatives, nor any conditions for use. Sibling tools are not mentioned, and there are no exclusions or contextual hints beyond the resource itself.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_messagesA
Search for messages containing specific text in a server's channels
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (1-100, default: 25) | |
| query | Yes | Text to search for in messages | |
| server_id | Yes | The Discord server (guild) ID to search in | |
| channel_id | No | Optional: limit search to a specific channel |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral burden. 'Search' implies a read-only operation, but it does not explicitly confirm that, nor does it mention access restrictions, match behavior, or what happens when no matches are found.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no filler. Every word contributes to the core purpose, making it easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The core purpose and required parameters are clear enough to invoke the tool, but with no annotations and no output schema, the return value and behavioral details are left implicit. The optional channel_id filtering is only discoverable in the schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Since the input schema has 100% coverage for its four parameters, the baseline is 3. The description adds no meaningful parameter detail beyond evoking server_id and query with 'server's channels' and 'specific text.'
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Search'), identifies the resource ('messages'), and clearly scopes the action to 'a server's channels' and 'specific text.' This distinguishes it from siblings like get_messages and send_message.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The usage context is implied: use when you need messages containing specific text in a server. However, there is no explicit guidance on when not to use it or which sibling tool to prefer in other situations.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
send_messageB
Send a message to a Discord channel
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The message content to send | |
| channel_id | Yes | The Discord channel ID to send the message to | |
| reply_to_message_id | No | Optional: message ID to reply to |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the full behavioral burden. It only states that a message is sent and does not disclose side effects, permission requirements, rate limits, delivery guarantees, or return behavior, which are important for a mutation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence with no filler. It is front-loaded with the action and resource, making it easy to scan and understand.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations, no output schema, and a write operation, the description is thin. It tells the agent what the tool does but not when to prefer it, what to expect after invocation, or what constraints apply, so context is incomplete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the parameters are already well documented. The description adds no extra detail about parameter semantics, but also does not need to compensate much beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Send') and resource ('a message to a Discord channel'), making the tool's purpose immediately clear. It also distinguishes this from the sibling read/search tools such as get_messages, get_dms, and search_messages.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The intended use is implied by the word 'send' rather than explicitly contrasted with the get/search siblings. There is no stated when-to-use or when-not-to-use guidance, but the description makes it understandable that this is the tool for posting a message.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
6 tool updates
v1.0.0- First observed
get_channels - First observed
get_dms - First observed
get_messages - First observed
get_servers - First observed
search_messages - First observed
send_message
TDQS
The tools are mostly distinct: get_servers, get_channels, get_messages, send_message, get_dms, and search_messages each target a different resource. There is minor overlap between get_messages and search_messages, and get_dms could be confused with channel message retrieval, but descriptions clarify the intended use.
Most tools follow a consistent get_* pattern, with send_message and search_messages being logical action-based exceptions. The use of 'dms' instead of 'direct_messages' is a minor inconsistency but does not hurt readability.
Six tools is a well-scoped set for a Discord MCP server covering server discovery, channel listing, message reading, searching, sending, and DM access. No tool feels redundant or unnecessary.
The core read/send workflows for Discord are covered: list servers, list channels, fetch messages, search messages, send messages, and read DMs. Minor gaps exist such as no direct message sending or message editing/deletion, but the main use cases are supported.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
MCP server for AI dialogue using various LLM models via AceDataCloud
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
Related MCP Servers
- AlicenseBqualityDmaintenanceA Discord MCP server that enables AI assistants to interact with Discord platforms, providing functionalities like sending messages, managing channels, creating forum posts, and handling webhooks.211,0621MIT
- AlicenseNot gradedqualityDmaintenanceA Discord bot server based on Model Context Protocol (MCP), enabling AI models to interact with Discord through the MCP protocol.2MIT
- AlicenseBqualityDmaintenanceA Discord MCP server that enables AI assistants to interact with the Discord platform, providing features like message sending, channel management, forum operations, reactions, and webhook management.221,062MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to manage Discord servers, including roles, channels, members, messages, and moderation, via natural language commands.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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