Command Palette

Search for a command to run...

Весь каталог
MCP-сервер № 37239

Discord Bot

Discord bot that provides intelligent assistance through slash commands and direct messages, creating threaded conversations and managing message chunking for c

Бесплатно
GitHubEmbed

Установка Discord Bot

Сборка из исходников

У сервера нет опубликованного npm/PyPI-пакета — склонируй репозиторий и собери по его README, затем добавь получившуюся команду в свой клиент.

Открыть репозиторий
github.com/mastra-ai/discord-mcp-server

Описание

Discord bot that provides intelligent assistance through slash commands and direct messages, creating threaded conversations and managing message chunking for comprehensive support in Discord communities

README

A Discord bot server that integrates with Mastra's MCP Bot component to provide intelligent assistance and answer questions about Mastra.ai.

Overview

This Discord bot server works with the Mastra MCP component to:

  • Handle Discord interactions and message routing
  • Manage bot commands and permissions
  • Provide Discord-specific functionality like threads and DMs
  • Interface with the Mastra component for intelligent responses

Prerequisites

Getting Started

  1. Clone the repository:

    git clone https://github.com/mastra-ai/discord-mcp-server
    cd discord-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file with your Discord credentials:

    DISCORD_BOT_TOKEN=your_discord_bot_token  
    DISCORD_CLIENT_ID=your_discord_client_id
    DISCORD_PUBLIC_KEY=your_discord_public_key
    MASTRA_URL=your_mastra_url
    
  4. Run the server:

    npm start
    

Setting Up a Discord Bot

  1. Create a Discord application:

    • Go to Discord Developer Portal
    • Click "New Application" and give it a name
    • Navigate to the "Bot" tab and click "Add Bot"
  2. Configure bot permissions:

    • Under "Privileged Gateway Intents", enable:
      • Message Content Intent
      • Server Members Intent
      • Direct Message Intent
  3. Get your bot token:

    • In the Bot tab, click "Reset Token" or "Copy" to get your bot token
    • Add this token to your .env file as DISCORD_BOT_TOKEN
  4. Invite the bot to your server:

    • Go to the "OAuth2" tab, then "URL Generator"
    • Select "bot" under scopes
    • Select required permissions:
      • Read Messages/View Channels
      • Send Messages
      • Read Message History
    • Copy the generated URL and open it in your browser
    • Select your server and authorize the bot

Features

  • Direct Message Support: Users can DM the bot to ask questions
  • Slash Commands: Uses Discord's slash commands to interact with the bot
    • /ask: Ask the bot a question
    • /cleardm: Clear the bot messages in the user's DMs
  • Threads: Uses Discord's threads to provide a better user experience
  • Integration: Seamless integration with the Mastra MCP component

Project Structure

  • api/index.ts: Main bot implementation and Discord client setup
  • scripts/register-commands.ts: Register the bot commands
  • scripts/delete-commands.ts: Delete the bot commands
  • scripts/list-commands.ts: List the bot commands

Implementation Notes

The server is built with:

  • Discord.js for Discord integration
  • TypeScript for type safety and better development experience
  • Integration with Mastra MCP component for intelligent responses

For production deployment, consider:

  • Setting up proper logging
  • Implementing rate limiting
  • Adding monitoring and error tracking
  • Setting up a process manager (PM2, etc.)

Related Projects

  • discord-mcp-bot: Handles Mastra-specific functionality and intelligent responses

from github.com/mastra-ai/discord-mcp-server

FAQ

Discord Bot MCP бесплатный?

Да, Discord Bot MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Discord Bot?

Нет, Discord Bot работает без API-ключей и переменных окружения.

Discord Bot — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Discord Bot в Claude Desktop, Claude Code или Cursor?

Открой Discord Bot на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

№ 85205

Gmail

GoogleGoogle

Read, send and search emails from Claude

googleemailinbox
Установить
№ 37159

Slack

SlackSlack

Send, search and summarize Slack messages

slackchatmessaging
Установить
№ 82944

Runbear

Community

No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.

runbearforclients
ПровереноУстановить
№ 03169

Discord Server

Community

A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)

discordserverresources
ПровереноУстановить
№ 48334

Klavis AI

Community

Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.

klavisresources
ПровереноУстановить
№ 42410

Work90210/APIFold

Work90210Work90210

Turn any REST API into a hosted MCP server, with ready-made public servers for GitHub, Stripe, Slack, OpenAI, Notion and more.

work90210apifoldname
Установить
№ 47625

arikusi/deepseek-mcp-server

arikusiarikusi

DeepSeek AI chat and reasoning with multi-turn sessions, function calling, thinking mode and cost tracking.

arikusideepseekmcp
Установить
№ 36170

hashgraph-online/hashnet-mcp-js

hashgraph-onlinehashgraph-online

Discover, register and chat with AI agents on the Hashgraph network via the Registry Broker.

hashgraphonlinehashnet
Установить
№ 76290

profullstack/mcp-server

profullstackprofullstack

Developer utilities: SEO optimization, document conversion, domain lookup, email validation, QR codes, weather data, social media posting and security scanning.

profullstackmcpserver
Установить
№ 61408

WayStation-ai/mcp

waystation-aiwaystation-ai

Connect MCP hosts to apps such as Notion, Slack, Monday and Airtable.

waystationmcpname
Установить

Сравнить Discord Bot с

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории communication