- Discord MCP Server
Discord MCP Server
Content
Discord MCP Server
一个基于 MCP 的 Discord webhook 服务器,用于通过 MCP 接口发送消息到 Discord。
功能特性
- 支持发送文本消息
- 支持发送 Markdown 格式消息
- 通过 MCP 提供标准化的 API 接口
- 支持命令行参数和环境变量配置
- 自动错误处理和重试机制
安装
pip install discord-mcp-server
使用方法
1. 配置 Discord Webhook URL
可以通过以下两种方式设置 Discord webhook URL:
- 环境变量方式:
export DISCORD_WEBHOOK_URL="your-discord-webhook-url"
- 命令行参数方式:
discord-mcp-server "your-discord-webhook-url"
2. 运行服务器
使用 uvx 运行服务器:
uvx discord-mcp-server@latest
3. MCP 接口说明
服务器提供以下 MCP 工具:
send_message: 发送消息到 Discord- 参数:
content: 消息内容(必需)msg_type: 消息类型,支持 "text" 或 "markdown"(可选,默认为 "text")
- 参数:
环境变量
DISCORD_WEBHOOK_URL: Discord webhook URL(必需)
错误处理
服务器会自动处理以下错误情况:
- 无效的 webhook URL
- 网络连接问题
- 消息发送失败
- 无效的消息类型
开发
项目结构
discord-mcp-server/
├── src/
│ ├── __init__.py
│ └── discord_mcp_server.py
├── pyproject.toml
└── README.md
依赖项
- fastapi>=0.68.0
- uvicorn>=0.15.0
- pydantic>=2.0.0
- requests>=2.31.0
- mcp[cli]>=1.6.0
许可证
MIT License
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
CursorThe AI Code Editor
Playwright McpPlaywright MCP server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
DeepChatYour AI Partner on Desktop
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.