emiliobool/MCP-Relay
Built by Metorial, the integration platform for agentic AI.
emiliobool/MCP-Relay
Server Summary
Send messages to Discord channels
Receive messages from Discord
Handle user prompts
Integrate with Discord's API
This MCP server allows Claude to send messages and prompts to a Discord channel and receive responses.
The server requires configuration in your MCP settings file. Add the following to your configuration file:
{
"mcpServers": {
"discord-relay": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/MCP Relay/build/index.js"
],
"env": {
"DISCORD_TOKEN": "your_bot_token_here",
"DISCORD_CHANNEL_ID": "your_channel_id_here"
}
}
}
}
Replace:
/ABSOLUTE/PATH/TO/MCP Relay
with the actual path to your MCP Relay projectyour_bot_token_here
with your Discord bot tokenyour_channel_id_here
with your Discord channel IDNote: Make sure to use absolute paths in the configuration.
The server provides a tool called send-message
that accepts the following parameters:
{
type: 'prompt' | 'notification', // Type of message
title: string, // Message title
content: string, // Message content
actions?: Array,
timeout?: number // Optional timeout in milliseconds
}
Notification: Simple message that doesn't expect a response
{
"type": "notification",
"title": "Hello",
"content": "This is a notification"
}
Prompt: Message that waits for a response
{
"type": "prompt",
"title": "Question",
"content": "Do you want to proceed?",
"actions": [
{ "label": "Yes", "value": "yes" },
{ "label": "No", "value": "no" }
],
"timeout": 60000 // Optional: 1 minute timeout
}
Notes: