Discord MCP Extended

Discord MCP Extended

A feature-rich MCP server for Discord, giving AI companions full presence in Discord communities — reading, responding, reacting, searching, and speaking.

Category
访问服务器

README

Discord MCP (Extended)

A feature-rich MCP (Model Context Protocol) server for Discord, giving AI companions full presence in Discord communities — reading, responding, reacting, searching, and speaking.

Extended by Digital Haven from the original mcp-discord and Codependent AI fork.


What's New in This Fork

  • Voice Messages — Send audio via ElevenLabs TTS
  • Image Fetching — Retrieve Discord images with auto-scaling for Claude's context window
  • Message Search — Full search across servers with filters (author, content type, date range)
  • Extended Reactions — Add/remove multiple reactions at once
  • Webhook Support — Create, send, edit, and delete webhooks
  • Category Management — Create, edit, delete server categories
  • Forum Support — Full forum channel operations

Features

Core Messaging

Tool Description
discord_send Send a message (with optional reply)
discord_read_messages Read messages from a channel (up to 100)
discord_delete_message Delete a specific message
discord_search_messages Search messages with filters

Voice

Tool Description
discord_send_voice Send voice message via ElevenLabs TTS

Images

Tool Description
discord_fetch_image Fetch and auto-scale Discord images

Reactions

Tool Description
discord_add_reaction Add a single reaction
discord_add_multiple_reactions Add multiple reactions at once
discord_remove_reaction Remove a reaction

Forums

Tool Description
discord_get_forum_channels List forum channels in a server
discord_create_forum_post Create a new forum post
discord_get_forum_post Get forum post details
discord_reply_to_forum Reply to a forum thread
discord_delete_forum_post Delete a forum post

Channels & Categories

Tool Description
discord_create_text_channel Create a text channel
discord_delete_channel Delete a channel
discord_create_category Create a category
discord_edit_category Edit a category
discord_delete_category Delete a category

Webhooks

Tool Description
discord_create_webhook Create a webhook
discord_send_webhook_message Send via webhook
discord_edit_webhook Edit a webhook
discord_delete_webhook Delete a webhook

Server Info

Tool Description
discord_list_servers List all servers the bot is in
discord_get_server_info Get server details and channels
discord_login Log in with bot token

Setup

1. Create a Discord Bot

  1. Go to Discord Developer Portal
  2. Create a new application
  3. Go to Bot section, create a bot
  4. Copy the bot token
  5. Enable Message Content Intent under Privileged Gateway Intents
  6. Go to OAuth2 > URL Generator:
    • Select bot scope
    • Select permissions: Read Messages/View Channels, Send Messages, Add Reactions, Read Message History, Manage Webhooks, Manage Channels, Attach Files
  7. Use the generated URL to invite the bot to your server

2. Install

git clone https://github.com/YOUR_USERNAME/mcp-discord.git
cd mcp-discord
npm install
npm run build

3. Configure Claude Desktop

Add to your claude_desktop_config.json:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "discord": {
      "command": "node",
      "args": ["C:/path/to/mcp-discord/build/index.js"],
      "env": {
        "DISCORD_TOKEN": "your-bot-token-here"
      }
    }
  }
}

4. For Voice Messages (Optional)

Add ElevenLabs credentials:

{
  "mcpServers": {
    "discord": {
      "command": "node",
      "args": ["C:/path/to/mcp-discord/build/index.js"],
      "env": {
        "DISCORD_TOKEN": "your-bot-token-here",
        "ELEVENLABS_API_KEY": "your-elevenlabs-key",
        "ELEVENLABS_VOICE_ID": "your-voice-id"
      }
    }
  }
}

Get your voice ID from ElevenLabs — they have a free tier.


Usage Examples

Once configured, Claude can:

"Read the last 20 messages from #general"
"Send 'Hello everyone!' to channel 123456789"
"React with fire emoji to message 987654321"
"Search for messages containing 'bug report' in the server"
"Send a voice message saying 'Good morning!' to the channel"
"Fetch that image so I can see it"

For AI Companions

See README-AI.md for companion-specific guidance:

  • Multi-room presence (desktop + mobile + Cloudflare)
  • Memory integration patterns
  • Community interaction guidelines
  • Setting up a portable version for mobile Claude

Architecture

Claude Desktop ←→ MCP Server (Node.js) ←→ Discord API ←→ Your Server

The bridge runs locally. Only connects to:

  • Discord (official API)
  • Anthropic (when Claude processes)
  • ElevenLabs (if using voice)

Security

  • Bot token is stored locally in your Claude config — never commit it
  • Bot can only see channels it has permission to view
  • No third-party data storage

If your token leaks, reset it immediately in Discord Developer Portal.


Credits


License

MIT — use it, modify it, share it.


Guides

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

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

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选