Discord Webhook MCP
Enables sending, editing, and deleting messages on Discord using webhooks, with support for rich embeds, text content, and threads.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Discord Webhook MCP Send 'Build successful' to Discord with a green status embed"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Discord Webhook MCP
Discord Webhook を使用してメッセージの送信、編集、削除を行う Model Context Protocol (MCP) サーバーです。
特徴
メッセージ送信 - テキスト、Embed、スレッド対応
メッセージ編集 - 送信済みメッセージの内容を更新
メッセージ削除 - 送信済みメッセージを削除
Zod バリデーション - 入力パラメータの厳密な検証
Related MCP server: MCP-Discord
使用方法
MCP設定
MCP対応クライアント(例: Gemini CLI)の設定ファイルに以下を追加:
{
"mcpServers": {
"discord-mcp": {
"command": "npx",
"args": ["-y", "@kongyo2/discord-webhook-mcp"],
"env": {
"DISCORD_WEBHOOK_URL": "https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN"
}
}
}
}環境変数
変数名 | 必須 | 説明 |
| ✅ | Discord Webhook URL |
ツール一覧
discord_send_message
メッセージを送信します。
{
"content": "Hello, Discord!",
"embeds": [
{
"title": "タイトル",
"description": "説明文",
"color": 65280
}
]
}discord_edit_message
送信済みメッセージを編集します。
{
"message_id": "123456789",
"content": "更新後のメッセージ"
}discord_delete_message
送信済みメッセージを削除します。
{
"message_id": "123456789"
}制限事項
レート制限: 30メッセージ/分/チャンネル
メッセージ本文: 最大2000文字
Embed: 最大10個、合計6000文字以内
開発
# 依存関係のインストール
npm install
# 開発モード
npm run dev
# ビルド
npm run build
# Lint
npm run lintライセンス
MIT
Available Tools
3 toolsdiscord_delete_messageDelete Discord MessageADestructiveIdempotent
Webhookで送信したメッセージを削除します。
環境変数DISCORD_WEBHOOK_URLに設定されたWebhookを使用します。
⚠️ レート制限: 30リクエスト/分/チャンネル ⚠️ この操作は取り消せません。
Args:
message_id (string, required): 削除するメッセージID
Returns: { "success": boolean, // 削除が成功したか "message_id": string // 削除されたメッセージのID }
Examples:
メッセージ削除: { "message_id": "123456789" }
Error Handling:
"Discord Webhook error: 404 Not Found - Message not found"
"Discord Webhook error: 400 Bad Request - Invalid message ID"
"Discord Webhook error: レート制限に達しました" - 429エラー時、retry-after秒後に再試行
Inputs: message_id (required).
discord_edit_messageEdit Discord MessageAIdempotent
Webhookで送信したメッセージを編集します。
content、embedsのいずれか最低1つが必要です。 環境変数DISCORD_WEBHOOK_URLに設定されたWebhookを使用します。
⚠️ レート制限: 30リクエスト/分/チャンネル
Args:
message_id (string, required): 編集するメッセージID
content (string, optional): 新しいメッセージ内容(1-2000文字)
embeds (array, optional): 新しいEmbedの配列(最大10個、合計6000文字以内)
allowed_mentions (object, optional): 許可されたメンション設定
Returns: { "success": boolean, // 編集が成功したか "message_id": string, // 編集されたメッセージのID "timestamp": string // 編集日時 (ISO 8601形式) }
Examples:
テキストを編集: { "message_id": "123456789", "content": "更新後のメッセージ" }
Embedを編集: { "message_id": "123456789", "embeds": [{ "title": "新しいタイトル", "color": 0xFF0000 }] }
Error Handling:
"Validation error: content/embeds - content、embeds のうち最低1つを指定してください"
"Discord Webhook error: 404 Not Found - Message not found"
"Discord Webhook error: 400 Bad Request - Invalid message ID"
"Discord Webhook error: レート制限に達しました" - 429エラー時、retry-after秒後に再試行
Inputs: message_id (required), content, embeds, allowed_mentions.
discord_send_messageSend Discord MessageA
Discordチャンネルにメッセージを送信します。
content、embedsのいずれか最低1つが必要です。 環境変数DISCORD_WEBHOOK_URLに設定されたWebhookを使用します。
⚠️ レート制限: 30メッセージ/分/チャンネル
Args:
content (string, optional): メッセージ内容(1-2000文字)
username (string, optional): Webhookのユーザー名を上書き(最大80文字)
avatar_url (string, optional): Webhookのアバター画像をURLで指定
tts (boolean, optional): テキスト読み上げ(TTS)メッセージとして送信(デフォルト: false)
embeds (array, optional): Embedの配列(最大10個、合計6000文字以内)
allowed_mentions (object, optional): 許可されたメンション設定
thread_id (string, optional): 送信先スレッドID(指定したスレッドに送信、スレッドは自動アーカイブ解除)
thread_name (string, optional): 作成するスレッド名(フォーラム/メディアチャンネルのみで新しいスレッドを作成、最大100文字)
Returns: { "success": boolean, // 送信が成功したか "message_id": string, // 送信されたメッセージのID "channel_id": string, // 送信先チャンネルID "timestamp": string // 送信日時 (ISO 8601形式) }
Examples:
シンプルなテキスト送信: { "content": "Hello, Discord!" }
Embed付き送信: { "embeds": [{ "title": "タイトル", "description": "説明", "color": 0x00FF00 }] }
スレッドに送信: { "content": "スレッドメッセージ", "thread_id": "123456789" }
Error Handling:
"Validation error: content/embeds - content、embeds のうち最低1つを指定してください"
"Discord Webhook error: 400 Bad Request - Invalid webhook URL"
"Discord Webhook error: 404 Not Found - Webhook not found"
"Discord Webhook error: レート制限に達しました" - 429エラー時、retry-after秒後に再試行
Inputs: content, username, avatar_url, tts, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: send, edit, and delete. There is no overlap or ambiguity.
All tool names follow a consistent pattern: 'discord_verb_noun' (discord_send_message, discord_edit_message, discord_delete_message).
Three tools cover the essential lifecycle for webhook messages (send, edit, delete) without unnecessary extras. The scope is well-scoped.
Covers all core operations for webhook messages. Minor gap: no tool to retrieve or list messages, but webhooks typically don't support listing, so it's acceptable.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
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
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseCqualityBmaintenanceA Discord Model Context Protocol server that enables AI assistants to interact with Discord, providing functionality for sending messages, managing channels, handling forum posts, and working with reactions.46827 npm111MIT
- AlicenseBqualityDmaintenanceA Discord Model Context Protocol server that enables AI assistants to interact with Discord by sending messages, managing channels, handling forum posts, managing webhooks, and processing reactions.2284 npm5MIT
- AlicenseNot gradedqualityBmaintenanceEnables interaction with Discord through the Model Context Protocol, providing access to all Discord features like channels, messages, threads, reactions, and roles. Supports secure Discord bot operations with rate limiting, caching, and comprehensive API coverage for OpenAI, LangChain, and other MCP clients.MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server that enables interaction with Discord for channel management, message searching, and automated communication. It features enterprise-grade security with multi-tenant authentication, rate limiting, and real-time monitoring via a built-in inspector dashboard.19 npmMIT