discord-mcp
Provides tools to list channels, post messages, and read messages in Discord via the REST API, acting as configured bot identities and supporting channel aliases.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
discord-mcp
A small, dependency-light MCP server that lets AI agents (Claude Code and other MCP clients) post and read in Discord as your own bots. Built for running a "virtual team" where each agent has its own Discord identity.
Zero dependencies. Speaks the MCP stdio protocol and Discord's REST API with the Python standard library only, so it runs on any Python 3.8+, including macOS's built-in
python3. Your token stays on your machine.Many bots, one server. Every tool takes a
botname and uses<BOT>_DISCORD_TOKEN, so Scout, Analyst and Editor each post under their own name and avatar.Three tools:
list_channels,post_message,read_messages.
Setup
Create a bot per agent in the Discord Developer Portal: New Application → Bot → Reset Token (copy it) → turn on Message Content Intent.
Invite it: OAuth2 → URL Generator → scope
bot→ permissions View Channels, Send Messages, Send Messages in Threads, Read Message History → open the URL and pick your server.Nothing to install: just clone the repo.
In the folder your agents run from, create
.env(see.env.example) and optionallychannels.json(seechannels.example.json) to name channels.
Related MCP server: discord-mcp
Use with Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"discord": {
"command": "python3",
"args": ["/path/to/discord-mcp/server.py"],
"env": {
"DISCORD_ENV_FILE": "/path/to/your/project/.env",
"DISCORD_CHANNELS_FILE": "/path/to/your/project/channels.json",
"DISCORD_DEFAULT_BOT": "scout"
}
}
}
}Or register it for all your projects:
claude mcp add discord --scope user \
-e DISCORD_ENV_FILE=/path/to/your/project/.env \
-e DISCORD_CHANNELS_FILE=/path/to/your/project/channels.json \
-- python3 /path/to/discord-mcp/server.pyThen in Claude Code, run /mcp to check it is connected, and ask: "Post 'hello' to newsroom as scout."
Configuration
Variable | Default | Meaning |
| — | Token for bot |
|
| Where to read tokens from |
|
| Channel aliases, e.g. |
|
| Bot used when a tool call does not name one |
Notes
The bots post and read through the REST API; they do not stay online or react instantly. Run your agents on a schedule (or poll) to reply.
Keep a human approval step before agents message real people.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage a Discord server from Claude, ChatGPT or any MCP client. Sign in with Discord, no bot token.
Discord MCP server for ChatGPT, Claude and any AI agent: list servers and channels, read channel messages, search messages, send message, reply to message, send DM, read mentions and assign role in your own Discord account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Discord yourself; Cotlet does not store your password and you need no Discord API key. About the official Discord API: Yes, Discord has an official API for bots and OAuth2 apps, but it acts as a bot that a server manager adds, not as you, and Discord has no official MCP server for it (checked 5 Nov 2026). The MCP server on Discord's docs site only searches documentation. Setup and FAQ: https://cotlet.dev/integrations/discord-api-mcp-server
An MCP server that integrates with Discord to provide AI-powered features.
- Discortics - Discord BotDeprecatedcom.discortics
Set up and manage your Discord server from MCP: channels, roles, verification, tickets and security.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceLets any MCP-compatible AI client interact with Discord — send messages, manage channels, create webhooks, assign roles, and more.48 npm2MIT
- AlicenseBqualityDmaintenanceEnables MCP clients to interact with Discord servers, allowing operations such as sending messages and reading message history through the Discord API.23MIT
- AlicenseNot gradedqualityFmaintenanceMCP server that gives AI agents first-class access to Discord, enabling discovery, messaging, channel management, moderation, and arbitrary REST calls through typed, consent-aware tools.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables an MCP client to inspect and manage Discord through a bot account, including channels, roles, messages, members, and moderation actions.1MIT