@Striderlabs/ Discord
FreeNot checkedAn MCP server for Discord that enables AI assistants to interact with Discord servers, channels, and messages via the Discord API.
About
An MCP server for Discord that enables AI assistants to interact with Discord servers, channels, and messages via the Discord API.
README
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:
bot - Select bot permissions:
Read Messages/View Channels,Send Messages,Read Message History - Use the generated URL to invite the bot to your server(s)
Installation
npm install @striderlabs/mcp-discord
Configuration
Set the DISCORD_TOKEN environment variable to your bot token:
export DISCORD_TOKEN=your_bot_token_here
Usage 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 |
|---|---|---|---|
server_id |
string | Yes | Discord server (guild) ID |
channel_type |
string | No | Filter: text, voice, category, or all (default: text) |
get_messages
Fetch recent messages from a channel.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel_id |
string | Yes | Discord channel ID |
limit |
number | No | Number of messages to fetch (1–100, default: 50) |
before_message_id |
string | No | Fetch messages before this ID (pagination) |
send_message
Send a message to a Discord channel.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel_id |
string | Yes | Discord channel ID |
content |
string | Yes | Message text to send |
reply_to_message_id |
string | No | Reply to a specific message ID |
get_dms
Get direct message conversations the bot has had.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit |
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 |
|---|---|---|---|
server_id |
string | Yes | Discord server ID |
query |
string | Yes | Text to search for |
channel_id |
string | No | Limit search to a specific channel |
limit |
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
Install @Striderlabs/ Discord in Claude Desktop, Claude Code & Cursor
unyly install striderlabs-mcp-discordInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add striderlabs-mcp-discord -- npx -y @striderlabs/mcp-discordFAQ
Is @Striderlabs/ Discord MCP free?
Yes, @Striderlabs/ Discord MCP is free — one-click install via Unyly at no cost.
Does @Striderlabs/ Discord need an API key?
No, @Striderlabs/ Discord runs without API keys or environment variables.
Is @Striderlabs/ Discord hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install @Striderlabs/ Discord in Claude Desktop, Claude Code or Cursor?
Open @Striderlabs/ Discord on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Gmail
Read, send and search emails from Claude
by GoogleSlack
Send, search and summarize Slack messages
by SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Compare @Striderlabs/ Discord with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
