mcp-discord

mcp-discord

为 MCP 客户端(如 Claude Desktop)提供 Discord 集成功能。

通信
Python
访问服务器

Tools

remove_role

Remove a role from a user

get_server_info

Get information about a Discord server

list_members

Get a list of members in a server

add_role

Add a role to a user

create_text_channel

Create a new text channel

delete_channel

Delete a channel

add_reaction

Add a reaction to a message

remove_reaction

Remove a reaction from a message

send_message

Send a message to a specific channel

read_messages

Read recent messages from a channel

get_user_info

Get information about a Discord user

moderate_message

Delete a message and optionally timeout the user

README

Discord MCP 服务器

smithery badge 一个模型上下文协议 (MCP) 服务器,为像 Claude Desktop 这样的 MCP 客户端提供 Discord 集成功能。

<a href="https://glama.ai/mcp/servers/wvwjgcnppa"><img width="380" height="200" src="https://glama.ai/mcp/servers/wvwjgcnppa/badge" alt="mcp-discord MCP server" /></a>

可用工具

服务器信息

  • 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: 列出频道中的 webhooks
  • 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 Developer Portal 创建一个新的应用程序
    • 创建一个机器人并复制 token
    • 启用所需的 privileged intents:
      • MESSAGE CONTENT INTENT (消息内容意图)
      • PRESENCE INTENT (状态意图)
      • SERVER MEMBERS INTENT (服务器成员意图)
    • 使用 OAuth2 URL Generator 邀请机器人到你的服务器
  2. 克隆并安装包:

# 克隆仓库
git clone https://github.com/hanweg/mcp-discord.git
cd mcp-discord

# 创建并激活虚拟环境
uv venv
.venv\Scripts\activate

### 如果使用 Python 3.13+ - 安装 audioop 库: `uv pip install audioop-lts`

# 安装包
uv pip install -e .
  1. 配置 Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json 在 Windows 上, ~/Library/Application Support/Claude/claude_desktop_config.json 在 macOS 上):
    "discord": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\PATH\\TO\\mcp-discord",
        "run",
        "mcp-discord"
      ],
      "env": {
        "DISCORD_TOKEN": "your_bot_token"
      }
    }

许可证

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

推荐服务器

graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Apple MCP Server

Apple MCP Server

通过 MCP 协议与 Apple 应用(如“信息”、“备忘录”和“通讯录”)进行交互,从而使用自然语言发送消息、搜索和打开应用内容。

精选
本地
TypeScript
DuckDuckGo MCP Server

DuckDuckGo MCP Server

一个模型上下文协议 (MCP) 服务器,通过 DuckDuckGo 提供网页搜索功能,并具有内容获取和解析的附加功能。

精选
Python
YouTube Transcript MCP Server

YouTube Transcript MCP Server

这个服务器用于获取指定 YouTube 视频 URL 的字幕,从而可以与 Goose CLI 或 Goose Desktop 集成,进行字幕提取和处理。

精选
Python
@kazuph/mcp-gmail-gas

@kazuph/mcp-gmail-gas

用于 Gmail 集成的模型上下文协议 (Model Context Protocol, MCP) 服务器。它允许 Claude Desktop(或任何 MCP 客户端)通过 Google Apps Script 与您的 Gmail 帐户进行交互。

精选
JavaScript
MCP Server Trello

MCP Server Trello

通过 Trello API 促进与 Trello 看板的交互,提供速率限制、类型安全、输入验证和错误处理等功能,以实现对卡片、列表和看板活动的无缝管理。

精选
TypeScript
Tavily MCP Server

Tavily MCP Server

使用 Tavily 的搜索 API 提供 AI 驱动的网络搜索功能,使 LLM 能够执行复杂的网络搜索、获得问题的直接答案以及搜索最近的新闻文章。

精选
Python
Linear MCP Server

Linear MCP Server

一个模型上下文协议(Model Context Protocol)服务器,它与 Linear 的问题跟踪系统集成,允许大型语言模型(LLM)通过自然语言交互来创建、更新、搜索和评论 Linear 问题。

精选
JavaScript
Brev

Brev

在云端运行、构建、训练和部署机器学习模型。

官方
本地
Python
Crawlab MCP Server

Crawlab MCP Server

官方
Python