Install and Setup the Discord MCP Server
mainTo use the Discord MCP server, you must first clone the repository, install dependencies, and provide a Discord bot token.
Prerequisites
- Node.js 16.x or higher
- A Discord bot token
- The bot must have the following permissions in your Discord server:
Read Messages/View ChannelsSend MessagesRead Message History
Installation Steps
- Clone the repository:
git clone https://github.com/yourusername/discordmcp.git cd discordmcp - Install dependencies:
npm install - Create a
.envfile in the root directory and add your token:DISCORD_TOKEN=your_discord_bot_token_here - Build the server:
npm run build
git clone https://github.com/yourusername/discordmcp.git
cd discordmcp
npm install
# Create .env with DISCORD_TOKEN
npm run build