返回 MCP 目录
public公开dns本地运行

MCP服务器Discord网络钩子

一个MCP服务器,它 enables 发布消息到Discord网络钩子,允许自定义内容、用户名和头像URL。 (注:原句中的“enables”在此处的翻译根据上下文保留了英文,如果需要完全中文表达,可以改为“一个MCP服务器,它可以实现将消息发布到Discord网络钩子,并允许自定义内容、用户名和头像URL。”)

article

README

MCP Server Discord Webhook

An MCP server for posting messages to Discord webhooks.

日本語のREADME

Installation

npm install @genpm/mcp-server-discord-webhook

Configuration

Add the following to your MCP configuration file:

{
  "mcpServers": {
    "discord-webhook": {
      "command": "npx",
      "args": [
        "-y",
        "@genpm/mcp-server-discord-webhook"
      ],
      "env": {
        "DISCORD_WEBHOOK_URL": "your-discord-webhook-url"
      },
      "alwaysAllow": [
        "send_message"
      ]
    }
  }
}

Features

send_message

Sends a message to Discord.

Parameters:

  • content: Message content (required)
  • username: Display name (optional)
  • avatar_url: Avatar URL (optional)

Example:

<use_mcp_tool>
<server_name>discord-webhook</server_name>
<tool_name>send_message</tool_name>
<arguments>
{
  "content": "Test message",
  "username": "Custom Name"
}
</arguments>
</use_mcp_tool>

Development

This project uses GitHub Actions for continuous integration and automated publishing to npm. When you push a new version tag (e.g., v1.0.0), it will automatically:

  1. Build the package
  2. Run tests
  3. Publish to npm
  4. Create a GitHub release

For more details about the release process, see CHANGELOG.md.

License

MIT

Author

genm

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端