- Home
- MCP servers
- Discord Webhook
Discord Webhook
- javascript
0
GitHub Stars
javascript
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"genm-mcp-server-discord-webhook": {
"command": "npx",
"args": [
"-y",
"@genpm/mcp-server-discord-webhook"
],
"env": {
"DISCORD_WEBHOOK_URL": "YOUR_DISCORD_WEBHOOK_URL"
}
}
}
}You can run a dedicated MCP server that posts messages to a Discord webhook. This enables your MCP client tools to push alerts, notifications, or custom messages directly into a Discord channel via a webhook URL you provide.
How to use
To send messages to Discord from your MCP client, you use the send_message tool exposed by this server. You configure your MCP client to target the discord_webhook MCP server, then invoke the tool with the content you want to post. Optional fields let you customize who posts the message and the avatar displayed.
Example usage pattern from an MCP client workflow:
<use_mcp_tool>
<server_name>discord-webhook</server_name>
<tool_name>send_message</tool_name>
<arguments>
{
"content": "Test message",
"username": "Custom Name"
}
</arguments>
</use_mcp_tool>
How to install
Install the MCP server package that enables Discord webhook integration.
npm install @genpm/mcp-server-discord-webhook
Configuration and usage notes
Configure your MCP setup to run the Discord webhook server locally via npx. Provide the Discord webhook URL in the environment. The server exposes a discord-webhook MCP server with the send_message tool.
{
"mcpServers": {
"discord-webhook": {
"command": "npx",
"args": [
"-y",
"@genpm/mcp-server-discord-webhook"
],
"env": {
"DISCORD_WEBHOOK_URL": "your-discord-webhook-url"
},
"alwaysAllow": [
"send_message"
]
}
}
}
Security and key details
Keep your Discord webhook URL private. Only allow trusted MCP clients to invoke the send_message tool. Rotate the webhook URL if you suspect it has been exposed.
Examples and capabilities
Tool: send_message — posts a message to Discord. Parameters: content (required), username (optional), avatar_url (optional). Use this to customize who appears as the sender in Discord.
Available tools
send_message
Sends a message to Discord via the webhook. Required parameter: content. Optional parameters: username to set the display name, avatar_url to set the avatar image.