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 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 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.214651MIT
- Alicense-qualityDmaintenanceAn 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
- Alicense-qualityDmaintenanceComprehensive 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.1591MIT
- 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.22465MIT
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
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/alive2/discord-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server