# discord-mcp

> MCP Server

This repository provides a Model Context Protocol (MCP) server for the Discord API, enabling integration of Discord bots with MCP-compatible applications like Claude Desktop. It allows users to retrieve server

## Overview

- **Category:** Communication
- **Language:** Java
- **Stars:** 447
- **Forks:** 0
- **Owner:** SaseQ
- **GitHub:** https://github.com/SaseQ/discord-mcp
- **Created:** 2025-03-14T21:00:40+00:00
- **Updated:** 2025-03-28T17:25:39+00:00
- **Source:** https://model-context-protocol.com/servers/discord-mcp-server-model-context-protocol

## Setup

## Setup

#### Clone the repository
```
git clone https://github.com/SaseQ/discord-mcp
```

#### Build the project
```
cd discord-mcp
mvn clean package
```

#### Configure Claude Desktop
```
{
  "mcpServers": {
    "discord-mcp": {
      "command": "java",
      "args": [
        "-jar",
        "/absolute/path/to/discord-mcp-0.0.1-SNAPSHOT.jar"
      ],
      "env": {
        "DISCORD_TOKEN": "YOUR_DISCORD_BOT_TOKEN"
      }
    }
  }
}
```

*To get a discord bot token, visit the [Discord Developer Portal](https://discord.com/developers)

## Tools

## Available Tools

		1. [`get_server_info`](): Get detailed discord server information
		2. [`send_message`](): Send a message to a specific channel
		3. [`read_message`](): Read recent message history from a specific channel
		4. [`send_private_message`](): Send a private message to a specific user
		5. [`read_private_message`](): Read recent message history from a specific user
		6. [`find_text_channel`](): Find a text channel (name or link) using an ID or name
