Skip to main content
Glama
nakanoasaservice

discord-webhook-relay-mcp

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/hono

  • Framework: Hono

  • Language: TypeScript

  • Test: Vitest + @cloudflare/vitest-pool-workers

  • Linter/Formatter: Biome

Related MCP server: notify_me_mcp

Getting Started

bun install
bun run dev

http://localhost:8787/ is the MCP endpoint (Streamable HTTP).

Tool

send_discord_message

Parameter

Type

Description

webhookUrl

string

The destination Discord webhook URL

message

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

bun run dev

Start local dev server

bun run deploy

Deploy to Cloudflare Workers

bun run test

Run tests

bun run check

Lint and format check

bun run check:fix

Auto-fix lint and format issues

bun run cf-typegen

Generate Cloudflare binding types

Project Structure

src/
  index.ts   # MCP server and Hono app entry point
wrangler.jsonc # Wrangler configuration

Notes

  • Cloudflare Workers has no concept of a local bind, so createMcpHonoApp's default localhost-only DNS-rebinding protection is disabled via host: "0.0.0.0" (see src/index.ts). Restrict it further with allowedHosts if 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.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
    8
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables 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.
    3
    TypeScript
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables sending messages to Discord channels directly from Cursor IDE using Discord webhooks. Provides a TypeScript-based integration for posting messages to configured Discord channels.
    101
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
    15
    MIT