A Model Context Protocol (MCP) server for sending messages to Discord via Webhook.
- Send messages to Discord through a webhook
- Communicate via the MCP protocol (for Claude Desktop integration)
npm install
npm run buildDISCORD_WEBHOOK_URL: The Discord Webhook URL to which messages will be sent.
Add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"discordWebhook": {
"command": "node",
"args": [
"<PROJECT_PATH>/build/index.js"
],
"env": {
"DISCORD_WEBHOOK_URL": "<YOUR_DISCORD_WEBHOOK_URL>"
}
}
}
}Sends a message to Discord via webhook.
content(string, required): The message content to send to Discord.
ok(boolean): Whether the operation succeeded.message(string): Result message.discordResponse(object, optional): Discord API response object.error(object, optional): Error information if failed.
- TypeScript
- Model Context Protocol SDK
- discord.js
- Zod (validation)