MCP Relay Server

MCP Relay Server

This server allows integration with Discord, enabling message exchanges between Claude and a Discord channel using prompts and notifications.

emiliobool

Communication
Local
TypeScript
Visit Server

README

MCP Relay

This MCP server allows Claude to send messages and prompts to a Discord channel and receive responses.

Setup Instructions

1. Create a Discord Application and Bot

  1. Go to the Discord Developer Portal
  2. Click "New Application" and give it a name
  3. Go to the "Bot" section in the left sidebar
  4. Under the bot's token section, click "Reset Token" and copy the new token
    • Keep this token secure! Don't share it publicly
  5. Under "Privileged Gateway Intents", enable:
    • Message Content Intent
    • Server Members Intent
    • Presence Intent

2. Invite the Bot to Your Server

  1. Go to the "OAuth2" section in the left sidebar
  2. Select "URL Generator"
  3. Under "Scopes", select:
    • bot
    • applications.commands
  4. Under "Bot Permissions", select:
    • Send Messages
    • Embed Links
    • Read Message History
  5. Copy the generated URL and open it in your browser
  6. Select your server and authorize the bot

3. Get Channel ID

  1. In Discord, enable Developer Mode:
    • Go to User Settings > App Settings > Advanced
    • Turn on "Developer Mode"
  2. Right-click the channel you want to use
  3. Click "Copy Channel ID"

4. Configure MCP Settings

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 project
  • your_bot_token_here with your Discord bot token
  • your_channel_id_here with your Discord channel ID

Note: Make sure to use absolute paths in the configuration.

Usage

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<{                 // Optional action buttons
    label: string,                  // Button label
    value: string                   // Value returned when clicked
  }>,
  timeout?: number                  // Optional timeout in milliseconds
}

Message Types

  1. Notification: Simple message that doesn't expect a response

    {
      "type": "notification",
      "title": "Hello",
      "content": "This is a notification"
    }
    
  2. 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:

  • Prompts can be answered either by clicking action buttons or sending a text message
  • Only one response is accepted per prompt
  • If a timeout is specified, the prompt will fail after the timeout period
  • Notifications don't wait for responses and return immediately

Recommended Servers

Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Excel MCP Server

Excel MCP Server

A Model Context Protocol server that enables AI assistants to read from and write to Microsoft Excel files, supporting formats like xlsx, xlsm, xltx, and xltm.

Featured
Local
Go
Playwright MCP Server

Playwright MCP Server

Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
Apple MCP Server

Apple MCP Server

Enables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.

Featured
Local
TypeScript
contentful-mcp

contentful-mcp

Update, create, delete content, content-models and assets in your Contentful Space

Featured
TypeScript
serper-search-scrape-mcp-server

serper-search-scrape-mcp-server

This Serper MCP Server supports search and webpage scraping, and all the most recent parameters introduced by the Serper API, like location.

Featured
TypeScript
The Verge News MCP Server

The Verge News MCP Server

Provides tools to fetch and search news from The Verge's RSS feed, allowing users to get today's news, retrieve random articles from the past week, and search for specific keywords in recent Verge content.

Featured
TypeScript
@kazuph/mcp-gmail-gas

@kazuph/mcp-gmail-gas

Model Context Protocol server for Gmail integration. This allows Claude Desktop (or any MCP client) to interact with your Gmail account through Google Apps Script.

Featured
JavaScript