Skip to main content
Glama
Discord MCP Server

Discord MCP Server

by RossH121

Discord MCP 서버

Claude와 Discord API 통합을 위한 MCP(Model Context Protocol) 서버입니다. 이 서버를 통해 Claude는 메시지 전송, 메시지 읽기, 서버 리소스 관리 등의 작업을 수행하는 도구를 통해 Discord 서버와 상호 작용할 수 있습니다.

필수 조건

  • Node.js 16 이상

  • Discord 봇 토큰( Discord 개발자 포털 에서 생성)

  • 적절한 봇 권한:

    • 메시지 읽기/채널 보기

    • 메시지 보내기

    • 메시지 기록 읽기

    • (선택 사항) 필요한 기능에 따라 역할 관리, 채널 관리 등

Related MCP server: Discord Bridge MCP Server

설치

  1. 이 저장소를 복제하세요

  2. 종속성 설치:

    지엑스피1

  3. 프로젝트를 빌드하세요:

    npm run build

구성

다음을 사용하여 루트 디렉토리에 .env 파일을 만듭니다.

DISCORD_TOKEN=your_discord_bot_token_here

용법

  1. 서버를 시작합니다:

    npm start
  2. Claude Desktop 구성:

    • Claude Desktop의 구성 파일에 추가: GXP5

사용 가능한 도구

  • send-message : Discord 채널에 메시지 보내기

  • read-messages : Discord 채널의 최근 메시지를 읽습니다.

  • list-channels : 서버에서 사용 가능한 채널을 나열합니다.

  • list-servers : 봇이 액세스할 수 있는 서버 목록

  • get-user-info : 특정 사용자에 대한 정보를 가져옵니다.

보안 고려 사항

  • Discord 봇 토큰은 Discord 봇에 대한 접근 권한을 부여합니다. 안전하게 보관하세요.

  • 봇은 초대받은 서버에만 액세스할 수 있습니다.

  • 각 서버의 봇 권한에 따라 작업이 제한됩니다.

특허

MIT

Available Tools

19 tools
discord_add_friendB

Send a friend request to a user

Inputs: no named parameters.

discord_add_reactionC

Add a reaction to a message

Inputs: channelId (required), messageId (required), emoji (required).

discord_cleanup_downloadC

Clean up a previously downloaded Discord attachment file

Inputs: path (required).

discord_clear_presenceB

Clear your Discord presence/activity

Inputs: no named parameters.

discord_create_dmC

Create or get existing DM channel with a user

Inputs: userId (required).

discord_delete_messageC

Delete a message

Inputs: channelId (required), messageId (required).

discord_download_attachmentB

Download a Discord attachment and return it as MCP file reference

Inputs: url (required).

discord_edit_messageC

Edit a previously sent message

Inputs: channelId (required), messageId (required), content (required).

discord_get_channelB

Get information about a Discord channel

Inputs: channelId (required).

discord_get_dm_channelsB

Get list of DM channels for the current user

Inputs: no named parameters.

discord_get_friendsB

Get list of friends for the current user

Inputs: no named parameters.

discord_get_messageB

Get a specific message by ID with full attachment details

Inputs: channelId (required), messageId (required).

discord_get_message_historyC

Get message history from a Discord channel with optional filtering

Inputs: channelId (required), limit, before, after, +1 more.

discord_list_attachmentsC

List all attachments in a Discord channel from recent messages

Inputs: channelId (required), limit, imageOnly, minSize, +1 more.

discord_remove_friendC

Remove a friend or cancel a friend request

Inputs: userId (required).

discord_remove_reactionC

Remove a reaction from a message

Inputs: channelId (required), messageId (required), emoji (required), userId.

discord_search_messagesC

Search for messages in a Discord channel with text query and filters

Inputs: channelId (required), query (required), limit, authorId, +5 more.

discord_send_messageC

Send a message to a Discord channel, optionally with up to 10 files

Inputs: channelId (required), content, files, tts, +1 more.

discord_update_presenceB

Update your Discord presence/status

Inputs: status, activity, afk.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 19 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no ambiguity. Tools are well-defined by their specific actions (e.g., add_friend vs. remove_friend, send_message vs. edit_message vs. delete_message), and even similar-sounding tools like get_message and get_message_history serve different functions (single message retrieval vs. channel history).

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern prefixed with 'discord_', such as discord_send_message, discord_get_channel, and discord_remove_reaction. This uniformity makes the tool set predictable and easy to navigate, with no deviations in naming conventions.

    Tool Count4/5

    With 19 tools, the count is slightly high but reasonable for a comprehensive Discord integration. It covers a wide range of functionalities from messaging and reactions to friend management and presence updates, though it might be borderline for some use cases, leaning toward a heavier but well-justified set.

    Completeness5/5

    The tool set provides complete coverage for Discord interactions, including CRUD operations for messages (send, edit, delete, get), friend management (add, remove, list), channel handling (get, create DM, list DMs), and auxiliary functions like reactions, attachments, and presence. No obvious gaps are present, supporting full agent workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers