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
This server cannot be deployed
Maintenance
Related MCP Connectors
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
- ZapierOAuthcom.zapier
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
- mcpOAuthnet.todoist
Official Todoist MCP server for AI assistants to manage tasks, projects, and workflows.
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.21768 npm1MIT
- AlicenseNot gradedqualityDmaintenanceAn 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.4MIT
- 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.184 npm1MIT
- 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.22768 npmMIT