discord-webhook-relay-mcp
Allows sending messages to a Discord channel via a webhook URL.
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-relay-mcpSend 'Hello from MCP' to the Discord webhook https://discord.com/api/webhooks/123456789/abcdef"
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 Relay MCP
An MCP server that does one thing: takes a Discord webhook URL and a message, and sends the message to Discord. Built with the MCP TypeScript SDK's Hono middleware, running on Cloudflare Workers.
Stack
Runtime: Cloudflare Workers
MCP:
@modelcontextprotocol/server+@modelcontextprotocol/honoFramework: Hono
Language: TypeScript
Test: Vitest +
@cloudflare/vitest-pool-workersLinter/Formatter: Biome
Related MCP server: notify_me_mcp
Getting Started
bun install
bun run devhttp://localhost:8787/ is the MCP endpoint (Streamable HTTP).
Tool
send_discord_message
Parameter | Type | Description |
| string | The destination Discord webhook URL |
| string | The message to send (1–2000 characters) |
webhookUrl is validated to match the shape of a Discord webhook URL, then the server sends
POST { content: message } to it.
Commands
Command | Description |
| Start local dev server |
| Deploy to Cloudflare Workers |
| Run tests |
| Lint and format check |
| Auto-fix lint and format issues |
| Generate Cloudflare binding types |
Project Structure
src/
index.ts # MCP server and Hono app entry point
wrangler.jsonc # Wrangler configurationNotes
Cloudflare Workers has no concept of a local bind, so
createMcpHonoApp's default localhost-only DNS-rebinding protection is disabled viahost: "0.0.0.0"(seesrc/index.ts). Restrict it further withallowedHostsif you need to lock it down to your deployed hostname.The webhook URL is passed in as a tool argument on every call, so the server never stores or needs to hold a secret for it.
This server cannot be deployed
Maintenance
Related MCP Connectors
Control your Discord community: send/read messages, manage channels and forums, and handle webhook…
Let your AI agent notify you by email, Slack, Discord, or webhook. One tool: send_notification.
Connect a Discord bot (bot token from the developer portal) to read/send messages, list guilds and c
- webhook.coOAuthco.webhook
Receive, inspect, replay and deliver webhooks — with signature verification and agent triggers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to send notifications to Discord channels via webhooks when tasks complete, errors occur, or user intervention is needed. Deployed serverlessly on Cloudflare Workers with support for rich message formatting and embeds.8MIT
- AlicenseBqualityDmaintenanceEnables sending rich notifications to Discord and/or Slack webhooks with automatic service detection, retry logic, and support for embeds, blocks, and attachments. Provides secure webhook management with comprehensive input validation and rate limiting.3TypeScriptMIT
- AlicenseNot gradedqualityDmaintenanceEnables sending messages to Discord channels directly from Cursor IDE using Discord webhooks. Provides a TypeScript-based integration for posting messages to configured Discord channels.101MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to send messages and rich embeds to Discord via webhooks, supporting plain text messages, formatted embeds with images and fields, and customizable webhook appearance for AI-powered Discord notifications and integrations.15MIT