Skip to main content
Glama

mcp-discord

by hanweg

Discord MCP 服务器

模型上下文协议 (MCP) 服务器为 Claude Desktop 等 MCP 客户端提供 Discord 集成功能。

可用工具

服务器信息

  • get_server_info :获取详细的服务器信息
  • list_members :列出服务器成员及其角色

消息管理

  • send_message :向频道发送消息
  • read_messages :阅读最近的消息历史记录
  • add_reaction :对消息添加反应
  • add_multiple_reactions :向消息添加多个反应
  • remove_reaction :从消息中删除反应
  • moderate_message :删除消息和超时用户

渠道管理

  • create_text_channel :创建一个新的文本通道
  • delete_channel :删除现有频道

角色管理

  • add_role :为用户添加角色
  • remove_role :从用户中删除角色

Webhook 管理

  • create_webhook :创建一个新的 webhook
  • list_webhooks :列出频道中的 webhook
  • send_webhook_message :通过 webhook 发送消息
  • modify_webhook :更新 webhook 设置
  • delete_webhook :删除 webhook

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 Discord 服务器:

npx -y @smithery/cli install @hanweg/mcp-discord --client claude
  1. 设置你的 Discord 机器人:
    • Discord 开发者门户创建新应用程序
    • 创建机器人并复制令牌
    • 启用所需的特权意图:
      • 消息内容意图
      • 存在意图
      • 服务器成员意图
    • 使用 OAuth2 URL 生成器邀请机器人加入你的服务器
  2. 克隆并安装包:
# Clone the repository git clone https://github.com/hanweg/mcp-discord.git cd mcp-discord # Create and activate virtual environment uv venv .venv\Scripts\activate ### If using Python 3.13+ - install audioop library: `uv pip install audioop-lts` # Install the package uv pip install -e .
  1. 配置 Claude 桌面(Windows 上为%APPDATA%\Claude\claude_desktop_config.json ,macOS 上为~/Library/Application Support/Claude/claude_desktop_config.json ):
"discord": { "command": "uv", "args": [ "--directory", "C:\\PATH\\TO\\mcp-discord", "run", "mcp-discord" ], "env": { "DISCORD_TOKEN": "your_bot_token" } }

执照

MIT 许可证 - 详情请参阅 LICENSE 文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

为 Claude Desktop 等 MCP 客户端提供 Discord 集成功能。

  1. 可用工具
    1. 服务器信息
    2. 消息管理
    3. 渠道管理
    4. 角色管理
    5. Webhook 管理
  2. 安装
    1. 通过 Smithery 安装
  3. 执照

    Related MCP Servers

    • -
      security
      F
      license
      -
      quality
      This server allows integration with Discord, enabling message exchanges between Claude and a Discord channel using prompts and notifications.
      Last updated -
      TypeScript
    • A
      security
      A
      license
      A
      quality
      An MCP server that enables saving and sharing Claude Desktop conversations, allowing users to store chats privately or make them public through a web interface.
      Last updated -
      2
      6
      TypeScript
      MIT License
      • Apple
    • A
      security
      A
      license
      A
      quality
      An MCP server that enables posting messages to Discord webhooks, allowing customization of content, username, and avatar URL.
      Last updated -
      1
      0
      JavaScript
      MIT License
    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol (MCP) server for the Discord integration with MCP-compatible applications like Claude Desktop.
      Last updated -
      22
      MIT License
      • Linux
      • Apple

    View all related MCP servers

    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/hanweg/mcp-discord'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server