Discord MCP Server
Discord MCP Server
Управляйте Discord-сервером прямо из вашего AI-ассистента для программирования. Создавайте каналы, категории, роли, настраивайте права, назначайте роли и многое другое — всё через естественный язык.
virustotal: https://www.virustotal.com/gui/file/56fafed35e2734debed600e585741c53f456148da257065e9ea8c9fcb62c798d
Инструменты
Инструмент | Описание |
| Создать новую категорию |
| Создать текстовый или голосовой канал в категории |
| Создать новую роль с цветом, отдельным отображением и упоминаемостью |
| Изменить название, цвет, отдельное отображение или упоминаемость роли |
| Удалить роль (не управляемую, ниже иерархии бота) |
| Назначить роль участнику по имени пользователя |
| Снять роль с участника по имени пользователя |
| Настроить права канала (разрешить/запретить роли, режим только для чтения, управление тредами) |
| Создать канал и ограничить его одним вызовом |
| Переименовать текстовый или голосовой канал |
| Удалить категорию |
| Удалить текстовый или голосовой канал |
| Перечислить все каналы с их названиями, типами и категориями |
| Перечислить все роли с их названиями, цветами и количеством участников |
| Создать вебхук в текстовом канале |
| Отправить сообщение через существующий вебхук |
| Установить задержку медленного режима (в секундах) в текстовом канале |
Related MCP server: discord-mcp
Настройка
1. Создайте Discord-бота
Перейдите на https://discord.com/developers/applications
Нажмите New Application → дайте ему имя → Create
Перейдите в Bot → Add Bot
В разделе Privileged Gateway Intents включите:
Server Members IntentMessage Content Intent
Скопируйте Token
Перейдите в OAuth2 → URL Generator
Scopes:
botBot Permissions:
Administrator(или выберите вручную: Manage Channels, Manage Roles, Kick Members, Manage Webhooks, Send Messages, Read Messages, View Channels)
Откройте сгенерированный URL в браузере, чтобы пригласить бота на ваш сервер
2. Настройка окружения
cp .env.example .envОтредактируйте .env и вставьте токен бота:
DISCORD_TOKEN=your_token_hereНеобязательно: привяжите бота к конкретному серверу по имени (по умолчанию — Monolith). Все инструменты работают только с этим сервером (guild):
DISCORD_GUILD_NAME=Monolith3. Установите зависимости
pip install -r requirements.txtКонфигурация MCP-хоста
opencode
Добавьте в opencode.json в корне вашего проекта:
{
"mcp": {
"discord": {
"type": "local",
"command": ["python", "/absolute/path/to/discord_mcp_server.py"]
}
}
}Перезапустите opencode, чтобы загрузить сервер.
Claude Desktop
Отредактируйте claude_desktop_config.json (File → Settings → Developer → Edit Config):
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["/absolute/path/to/discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Claude Code
Добавьте в ~/.claude.json или .mcp.json в вашем проекте:
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["/absolute/path/to/discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Cursor
Создайте .cursor/mcp.json в корне проекта (или ~/.cursor/mcp.json для глобального использования):
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["/absolute/path/to/discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Windsurf
Добавьте в ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["/absolute/path/to/discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Codex CLI
Добавьте в ~/.codex/config.toml:
[mcp_servers.discord]
command = "python"
args = ["/absolute/path/to/discord_mcp_server.py"]
[mcp_servers.discord.env]
DISCORD_TOKEN = "your_token_here"Или добавьте через CLI:
codex mcp add discord -- python /absolute/path/to/discord_mcp_server.pyAntigravity (Google)
Добавьте в ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["C:\\path\\to\\discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Откройте Antigravity → панель Agent → ... → MCP Servers → Manage MCP Servers → View raw config.
Примечание: Если вы используете файл
.envвместо встроенногоenv, исключите блокenvи убедитесь, чтоload_dotenv()в скрипте находит ваш.env(рабочая директория зависит от хоста).
Как это работает
Скрипт запускает MCP-сервер через stdio, который подключается к Discord по токену бота. Он регистрирует все инструменты при запуске, а ваш AI-ассистент вызывает их по мере необходимости. Discord-боту достаточно находиться на одном сервере — он автоматически выбирает первую гильдию (guild) при входе.
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.
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
The Canva MCP server connects AI assistants (like Claude, ChatGPT, and Cursor) to Canva's API, enabling them to create and manage designs directly within chat conversations. Key capabilities include generating new designs from prompts, autofilling templates, searching and resizing existing designs, importing files from URLs, exporting designs as PDFs or images, and managing folders and comments without switching between tools.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to manage Discord servers through natural language, offering tools for guilds, channels, messages, roles, members, webhooks, invites, and automations. Includes a conversational agent that responds to @mentions in Discord.8Apache 2.0
- AlicenseNot gradedqualityDmaintenanceControl your Discord server with AI. Lets you manage channels, roles, members, messages, and more through natural language.348MIT
- AlicenseNot gradedqualityDmaintenanceEnables managing a Discord server using natural language through AI clients like Claude, with 139 admin tools across 20 categories for roles, channels, members, messages, threads, moderation, and more.16828MIT
- AlicenseBqualityAmaintenanceGives your AI assistant full control of a Discord server: 148 tools for chat, moderation, automod, events, and administration, up to building a complete community server from one paragraph. Every destructive action previews first and waits for your confirmation.1001547Elastic 2.0
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/hevji/Discord-Bot-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server