MCP Relay Server
MCP 中继
该 MCP 服务器允许 Claude 向 Discord 频道发送消息和提示并接收回复。
设置说明
1. 创建 Discord 应用程序和机器人
单击“新建应用程序”并为其命名
前往左侧边栏的“机器人”部分
在机器人的令牌部分下,单击“重置令牌”并复制新令牌
妥善保管此令牌!请勿公开分享
在“特权网关意图”下,启用:
消息内容意图
服务器成员意图
存在意图
2. 邀请机器人加入你的服务器
转到左侧边栏中的“OAuth2”部分
选择“URL 生成器”
在“范围”下,选择:
机器人
应用程序命令
在“机器人权限”下,选择:
发送消息
嵌入链接
阅读消息历史记录
复制生成的URL并在浏览器中打开
选择您的服务器并授权机器人
3. 获取频道ID
在 Discord 中,启用开发者模式:
转至用户设置 > 应用程序设置 > 高级
开启“开发者模式”
右键单击要使用的频道
点击“复制频道ID”
4. 配置 MCP 设置
该服务器需要在您的 MCP 设置文件中进行配置。请将以下内容添加到您的配置文件中:
{
"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"
}
}
}
}代替:
/ABSOLUTE/PATH/TO/MCP Relay替换为您的 MCP Relay 项目的实际路径your_bot_token_here是你的 Discord 机器人令牌your_channel_id_here填写你的 Discord 频道 ID
注意:确保在配置中使用绝对路径。
Related MCP server: Discord Notification MCP Server
用法
服务器提供了一个名为send-message的工具,它接受以下参数:
{
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
}消息类型
通知:不需要回复的简单消息
{ "type": "notification", "title": "Hello", "content": "This is a notification" }提示:等待响应的消息
{ "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 }
笔记:
可以通过点击操作按钮或发送短信来回答提示
每个提示仅接受一个响应
如果指定了超时,则超时后提示将失败
通知不会等待响应并立即返回
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
- CanvaOAuthcom.canva.mcp
The Canva MCP server connects AI assistants (like Claude, ChatGPT, and Cursor) to Canva's API, enabling them to create and manage designs directly within chat conversations. Key capabilities include generating new designs from prompts, autofilling templates, searching and resizing existing designs, importing files from URLs, exporting designs as PDFs or images, and managing folders and comments without switching between tools.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.19107MIT
- 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
- AlicenseAqualityDmaintenanceAn MCP server that provides native Discord tools for Claude Code, enabling bidirectional communication with remote agents or humans via the Discord REST API. It allows users to send messages, read channel history, and manage reactions directly from their local environment.6193MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that enables Claude Desktop to interact with Discord through a dedicated bot. It allows users to list channels, read message history, and send messages directly from the AI interface.2-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/emiliobool/MCP-Relay'
If you have feedback or need assistance with the MCP directory API, please join our Discord server