
一个用于Discord集成的MCP服务器。让你的AI助手能够无缝与Discord互动。通过强大的自动化功能提升你的Discord体验。
概览
一个用于Discord API的模型上下文协议(MCP)服务器,使用JDA,设计用来将Discord机器人与兼容MCP的应用程序(如Claude、ChatGPT等)集成。它允许AI助手通过管理频道、发送消息和获取服务器信息来与Discord交互。非常适合构建强大的Discord自动化和AI驱动的工作流程。 需要安装 Docker 。完整说明可在 docker.com 上找到。 创建Discord机器人及取回令牌的说明可以在这里找到。 DISCORD_GUILD_ID env 变量是可选的。如果提供了,它会设置默认的 Discord 服务器 ID,这样任何接受 guildId 参数的工具都可以省略。 默认MCP端点URL(HTTP配置文件):http://localhost:8085/mcp 你不需要手动设置LOGGING_PATTERN_CONSOLE。日志在 http 和传统标准模式下都会自动配置。
概述(AI 翻译)
📖 描述
一个用于Discord API的模型上下文协议(MCP)服务器,使用(JDA), 设计用于将 Discord 机器人与兼容 MCP 的应用程序(如 Claude、ChatGPT 等)集成。它允许 AI 助手与 Discord通过管理频道、发送消息和获取服务器信息。非常适合构建强大的Discord自动化和AI驱动的工作流程。
🔬 安装
► 🐳 Docker 安装(推荐)
[!注] 安装 Docker 是必需的。完整说明可在 docker.com 上找到。
1) 设置局部环境变量
[!重要] 创建 Discord 机器人及取回令牌的说明可以在这里找到。
[!提示]
DISCORD_GUILD_IDenv 变量是可选的。当提供时,它会设置默认的 Discord 服务器 ID,任何接受
guildId参数的工具都可以省略。
2) 运行 Docker 容器
默认MCP端点URL(HTTP配置文件):http://localhost:8085/mcp
🐋 Docker Compose 安装
1)克隆仓库
2)进入项目目录
3) 创建本地运行环境
4) 启动一个共享的MCP服务器容器
5)验证
[!提示]
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
📖 Description
A Model Context Protocol (MCP) server for the Discord API using (JDA), designed to integrate Discord bots with MCP-compatible applications such as Claude, ChatGPT etc. It allows AI assistants to interact with Discord by managing channels, sending messages, and retrieving server information. Ideal for building powerful Discord automation and AI-driven workflows.
🔬 Installation
► 🐳 Docker Installation (Recommended)
[!NOTE] Docker installation is required. Full instructions can be found on docker.com.
1) Set local env variables
export DISCORD_TOKEN="YOUR_DISCORD_BOT_TOKEN"
export DISCORD_GUILD_ID="OPTIONAL_DEFAULT_SERVER_ID"
export SPRING_PROFILES_ACTIVE=http
[!IMPORTANT] Instructions for creating a Discord bot and retrieving its token can be found here.
[!TIP] The
DISCORD_GUILD_IDenv variable is optional.When provided, it sets a default Discord server ID so any tool that accepts a
guildIdparameter can omit it.
2) Run the Docker container
docker run -d -i \
--name discord-mcp \
--restart unless-stopped \
-p 8085:8085 \
-e SPRING_PROFILES_ACTIVE \
-e DISCORD_TOKEN \
-e DISCORD_GUILD_ID \
saseq/discord-mcp:latest
Default MCP endpoint URL (HTTP profile): http://localhost:8085/mcp
1) Clone the repository
git clone https://github.com/SaseQ/discord-mcp
2) Go to the project directory
cd discord-mcp
3) Create local runtime env
cat > .env <<EOF
SPRING_PROFILES_ACTIVE=http
DISCORD_TOKEN=
DISCORD_GUILD_ID=
EOF
4) Start one shared MCP server container
docker compose up -d --build
5) Verify
安装
docker run --rm -i -e DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN> -e DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID> saseq/discord-mcp:latest配置
{
"mcpServers": {
"discord-mcp": {
"url": "http://localhost:8085/mcp"
}
}
}