Getting Started Guide
Welcome to Discord MCP! This guide will help you set up and start using the Discord Model Context Protocol server.
Prerequisites
- Node.js >= 20.11.0
- A Discord Bot Token (Create one here)
- Claude Desktop or another MCP-compatible client
Installation
- Clone the repository:
bash
git clone https://github.com/bennettschwartz/discord-mcp.git
cd discord-mcp
- Install dependencies:
bash
npm install
- Build the project:
bash
npm run build
Configuration
Create a .env
file from the example:
bash
cp .env.example .env
Edit .env
with your Discord bot token:
env
DISCORD_BOT_TOKEN=your_bot_token_here
For more detailed configuration options, see the Configuration Guide.
Running the Server
Development Mode
bash
npm run dev
Production Mode
bash
npm start
Next Steps
- Learn about Tool Packs to enable additional features
- Explore Examples of common use cases
- Understand the Security Model for safe operation
- Set up Gateway Events for real-time Discord data