
martusha89/discord-claude-full-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
A security-conscious Discord MCP server for Claude and other MCP clients. It can read and send messages, files, stickers, reactions, DMs, and optional ElevenLabs-generated Discord voice messages.
Обзор
A security-conscious Discord MCP server for Claude and other MCP clients. It can read and send messages, files, stickers, reactions, DMs, and optional ElevenLabs-generated Discord voice messages. - Send, read, edit, delete, reply to, and react to messages - Send images/files from validated URLs; optional restricted local files in stdio mode - List allowed servers, channels, emojis, and stickers; send stickers and set presence - Send Direct Messages to explicitly allowed recipients - using ElevenLabs TTS and bounded ffmpeg processing - stdio and authenticated Streamable HTTP transports - Node.js 20 or newer - Discord bot token, with only the permissions needed for enabled tools - Message Content privileged intent if reading other users' message text - Optional ElevenLabs API key and voice ID .env contains secrets and process/network settings. config.json contains Discord policy and limits. Both are loaded from the project root; MCP_CONFIG_PATH can override the config path.
README
Показан фрагмент оригинального README. Открыть оригинал.
discord-claude-full-mcp
A security-conscious Discord MCP server for Claude and other MCP clients. It can read and send messages, files, stickers, reactions, DMs, and optional ElevenLabs-generated Discord voice messages.
Features
- Send, read, edit, delete, reply to, and react to messages
- Send images/files from validated URLs; optional restricted local files in stdio mode
- List allowed servers, channels, emojis, and stickers; send stickers and set presence
- Send Direct Messages to explicitly allowed recipients
- Send Voice Messages using ElevenLabs TTS and bounded ffmpeg processing
- stdio and authenticated Streamable HTTP transports
Requirements and install
- Node.js 20 or newer
- Discord bot token, with only the permissions needed for enabled tools
- Message Content privileged intent if reading other users’ message text
- Optional ElevenLabs API key and voice ID
git clone
cd discord-claude-full-mcp
npm install
npm run build
cp .env.example .env
cp config.example.json config.json
Exact configuration
.env contains secrets and process/network settings. config.json contains Discord policy and limits. Both are loaded from the project root; MCP_CONFIG_PATH can override the config path.
Required: DISCORD_TOKEN. Voice messages additionally require both ELEVENLABS_API_KEY and elevenlabs.voiceId.
Policy fields:
allowedGuildIds: permitted Discord guild IDs. Empty means all guilds only in local stdio mode.allowedChannelIds: optional channel restriction. A direct channel ID is still checked against both channel and guild policy.allowedDmUserIds: exact DM recipient IDs; empty disables DMs.allowLocalFiles: defaults false. Local paths are always rejected in HTTP mode.allowedLocalRoots: required when local files are enabled. Real paths are checked after symlink resolution.
Limits are shown with defaults in config.example.json. Messages and TTS text are bounded, mentions are suppressed by default, replies fail if the referenced message is absent, network work has timeouts/byte limits, and voice work has a concurrency cap. Typing delay defaults off; set min/max milliseconds to enable it.
For the safest setup, copy config.example.json and replace every placeholder snowflake. HTTP mode refuses to start without a non-empty target allowlist and a bearer token of at least 24 characters.
stdio (Claude Desktop/Code)
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["C:\\path\\to\\discord-claude-full-mcp\\build\\index.js"]
}
}
}
The server does not call the Claude API. Claude Desktop/Code supplies the model and invokes MCP tools separately; this project only connects MCP requests to Discord (and ElevenLabs when configured).
Streamable HTTP
Set:
MCP_TRANSPORT=streamable-http
MCP_HOST=127.0.0.1
MCP_PORT=3001
MCP_HTTP_BEARER_TOKEN=
MCP_ALLOWED_ORIGINS=https://claude.ai
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["C:\\path\\to\\discord-claude-full-mcp\\build\\index.js"]
}
}
}