Nika
Nika — Discord-MCP-Server
Ein umfassender Model Context Protocol-Server, der es KI-Assistenten ermöglicht, eine Discord-Community zu verwalten: Nachrichten, Moderation, Rollen, Kanäle, Foren, Webhooks, Einladungen, geplante Events, AutoMod, Onboarding, Emojis/Sticker, Berechtigungsüberschreibungen, Sprachverwaltung — 111 Tools, plus einen rohen REST-Durchgriff (discord_api_request), sodass alles, was die Discord-API kann, erreichbar ist.
Erstellt mit Python + discord.py (persistente Gateway-Verbindung) und FastMCP.
Einrichtung
1. Discord-Bot erstellen (erledigt)
Anwendung: Nika (ID
1538805149865091092)Aktivierte Intents: Server Members, Message Content
Token: in
.envgespeichert (niemals committen —.gitignoreschützt ihn)
2. Den Bot zu deinem Server einladen
Öffne diese URL und wähle deinen Server (vergib Administrator für den vollen Funktionsumfang):
https://discord.com/api/oauth2/authorize?client_id=1538805149865091092&permissions=8&scope=bot%20applications.commands⚠️ Der Bot muss auf einem Server sein, bevor die meisten Tools etwas tun können.
3. Installieren und konfigurieren
python -m venv .venv
.venv\Scripts\pip install -e ".[dev]".env (bereits erstellt):
DISCORD_TOKEN=... # bot token
DISCORD_GUILD_ID= # optional: default server id → makes guildId optional everywhere
MCP_TRANSPORT=stdio # stdio | http
HTTP_HOST=0.0.0.0 # HTTP mode only
HTTP_PORT=8085
LOG_LEVEL=INFORelated MCP server: Cloud Discord
Verwendung
stdio (Standard — Claude Desktop, VS Code, Cursor usw.)
.venv\Scripts\python -m discord_mcpClaude Desktop claude_desktop_config.json:
{
"mcpServers": {
"nika": {
"command": "d:\\Projects\\david\\DiscordMCP\\.venv\\Scripts\\python.exe",
"args": ["-m", "discord_mcp"],
"cwd": "d:\\Projects\\david\\DiscordMCP"
}
}
}HTTP (streamable) — Fernzugriff, n8n, Multi-Client
.venv\Scripts\python -m discord_mcp --transport http --port 8085
# endpoint: http://localhost:8085/mcpClient-Konfiguration:
{
"mcpServers": {
"nika": { "url": "http://localhost:8085/mcp" }
}
}Docker
docker compose up -d # builds + runs HTTP mode on :8085
docker run -i --rm -e DISCORD_TOKEN=$env:DISCORD_TOKEN discord-mcp:latest # stdioTesten mit dem MCP Inspector
npx @modelcontextprotocol/inspector .venv\Scripts\python.exe -m discord_mcpTool-Referenz (111 Tools)
Bereich | Tools |
Server |
|
Kanäle |
|
Nachrichten |
|
Mitglieder |
|
Rollen |
|
DMs |
|
Moderation |
|
Voice |
|
Events |
|
Berechtigungen |
|
Einladungen |
|
Webhooks |
|
Foren |
|
Emojis & Sticker |
|
AutoMod |
|
Onboarding & Audit |
|
Raw API |
|
Design-Notizen
Hybrides Gateway + REST: Eine persistente discord.py-Gateway-Verbindung liefert Live-Zustand (Mitglieds-/Kanal-Lookups, Namen→IDs), während Mutationen über denselben Client laufen. Toolaufrufe werden über
asyncio.run_coroutine_threadsafeauf die Gateway-Schleife gebrückt.Sicherheit: Das Raw-Tool erfordert
confirmDestructive=truefür mutierende Methoden;prune_membersstandardmäßig als Trockenlauf; destruktive Tools akzeptieren einenreason, der im Audit-Log festgehalten wird.Optionaler
guildId: SetzeDISCORD_GUILD_IDin.envund jederguildId-Parameter wird optional.Fehler: Discord-Fehler werden in lesbare Meldungen umgewandelt (z. B.
Missing permissions: ...).
Einschränkungen
Erfordert einen Bot-Token (User-Token-/Self-Bot-Automatisierung verstößt gegen die Discord-ToS).
Zum Lesen von Nachrichten muss der Bot den Kanal sehen und (für Inhalte) den Message Content intent besitzen.
Kein Sprach-Audio-Streaming/-Empfang.
Entwicklung
.venv\Scripts\python -m pytest # 22 unit testsLayout: discord_mcp/bot.py (Gateway-Brücke) · discord_mcp/server.py (FastMCP) · discord_mcp/tools/*.py (ein Modul pro Domäne) · discord_mcp/utils/ (Serializer, Embeds).
Lizenz
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
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
- Discortics - Discord BotDeprecatedcom.discortics
Set up and manage your Discord server from MCP: channels, roles, verification, tickets and security.
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
Official MCP server for subfeed.app — the cloud for agents. 15+ tools for AI agents to register, build, and deploy other agents. Zero human required. Start here: subfeed.app/skill.md
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.211MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that gives AI agents full admin control over Discord servers with 59 tools for messaging, moderation, roles, channels, forums, reactions, files, and more, deployed on Cloudflare Workers.9MIT
- AlicenseNot gradedqualityDmaintenanceComprehensive Discord MCP server with 66 tools that provides rich message context including emoji reactions, thread indicators, and attachment metadata inline. Enables AI assistants to interact with Discord servers for messaging, moderation, roles, channels, and more.1MIT
- 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.22MIT