Discord Mcp
Discord統合のためのMCPサーバー。あなたのAIアシスタントがDiscordとシームレスに対話できるようにします。強力な自動化機能でDiscord体験を向上させましょう。
概要
Discord-MCPとは?
Discord-MCPは、AIアシスタントとDiscordプラットフォームとのシームレスな相互作用を可能にする強力なサーバーです。このツールは、さまざまなタスクを自動化し、Discordコミュニティ内でのコミュニケーションとエンゲージメントを効率化する高度な機能を提供することで、ユーザー体験を向上させます。
Discord-MCPの特徴
- AI統合:AIアシスタントがDiscordと直接対話できるようにし、リアルタイムでの応答と支援を提供します。
- 自動化機能:繰り返しのタスクを自動化し、ユーザーがDiscordサーバーを管理しやすくします。
- ユーザーフレンドリーなインターフェース:シンプルさを重視して設計されており、すべてのスキルレベルのユーザーがアクセス可能です。
- オープンソース:公開リポジトリであるため、ユーザーはその開発に貢献し、自分のニーズに合わせてカスタマイズできます。
- コミュニティサポート:Discord-MCPを効果的に使用するためのヒントやトリック、サポートを共有するユーザーと開発者の成長するコミュニティ。
Discord-MCPの使い方
- インストール:GitHubからリポジトリをクローンし、READMEファイルに記載されたインストール手順に従います。
- 設定:Discordボットを設定し、サーバーと対話できるように必要な権限を構成します。
- 統合:AIアシスタントをDiscord-MCPに接続し、コマンドやメッセージに応答できるようにします。
- カスタマイズ:必要に応じてコードを修正し、機能を特定の要件に合わせて調整します。
- エンゲージメント:DiscordでAIアシスタントを使用し始め、インタラクションを強化し、タスクを自動化してスムーズな体験を実現します。
よくある質問
Q: Discord-MCPは無料で使用できますか?
A: はい、Discord-MCPはオープンソースプロジェクトであり、無料で使用できます。
Q: プロジェクトに貢献できますか?
A: もちろんです!貢献は大歓迎です。リポジトリをフォークし、変更を加えてプルリクエストを提出できます。
Q: Discord-MCPで使用されているプログラミング言語は何ですか?
A: Discord-MCPは主にJavaScriptとNode.jsで構築されています。
Q: 問題やバグを報告するにはどうすればよいですか?
A: GitHubリポジトリの「Issues」タブで新しいイシューを作成して報告できます。
Q: Discord-MCPのドキュメントはどこにありますか?
A: ドキュメントはリポジトリのREADMEファイルにあり、コミュニティフォーラムやディスカッションを通じても入手できます。
Discord-MCPを利用することで、ユーザーはDiscord体験を大幅に向上させ、インタラクションをより効率的で楽しいものにすることができます。
詳細
📖 Description
A Model Context Protocol (MCP) server for the Discord API (JDA), allowing seamless integration of Discord Bot with MCP-compatible applications like Claude Desktop.
Enable your AI assistants to seamlessly interact with Discord. Manage channels, send messages, and retrieve server information effortlessly. Enhance your Discord experience with powerful automation capabilities.
🔬 Installation
► 🐳 Docker Installation (Recommended)
NOTE: Docker installation is required. Full instructions can be found on docker.com.
{
"mcpServers": {
"mcp-server": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>",
"-e", "DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID>",
"saseq/discord-mcp:latest"
]
}
}
}
<details>
<summary style="font-size: 1.35em; font-weight: bold;">
🔧 Manual Installation
</summary>
Clone the repository
git clone https://github.com/SaseQ/discord-mcp
Build the project
NOTE: Maven installation is required to use the mvn command. Full instructions can be found here.
cd discord-mcp
mvn clean package # The jar file will be available in the /target directory
Configure AI client
Many code editors and other AI clients use a configuration file to manage MCP servers.
The Discord MPC server can be configured by adding the following to your configuration file.
NOTE: You will need to create a Discord Bot token to use this server. Instructions on how to create a Discord Bot token can be found here.
{
"mcpServers": {
"discord-mcp": {
"command": "java",
"args": [
"-jar",
"/absolute/path/to/discord-mcp-0.0.1-SNAPSHOT.jar"
],
"env": {
"DISCORD_TOKEN": "YOUR_DISCORD_BOT_TOKEN",
"DISCORD_GUILD_ID": "OPTIONAL_DEFAULT_SERVER_ID"
}
}
}
}
The DISCORD_GUILD_ID
environment variable is optional. When provided, it sets a default Discord server ID so any tool that accepts a guildId
parameter can omit it.
Install Discord MCP Server automatically via Smithery:
npx -y @smithery/cli@latest install @SaseQ/discord-mcp --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>
</details>
<details>
<summary style="font-size: 1.35em; font-weight: bold;">
🖲 Cursor Installation
</summary>
Go to: Settings
-> Cursor Settings
-> MCP
-> Add new global MCP server
Pasting the following configuration into your Cursor ~/.cursor/mcp.json
file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json
in your project folder. See Cursor MCP docs for more info.
{
"mcpServers": {
"mcp-server": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>",
"-e", "DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID>",
"saseq/discord-mcp:latest"
]
}
}
}
</details>
<details>
<summary style="font-size: 1.35em; font-weight: bold;">
⌨️ Claude Code Installation
</summary>
Run this command. See Claude Code MCP docs for more info.
claude mcp add mcp-server -- docker run --rm -i -e DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN> -e DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID> saseq/discord-mcp:latest
</details>
🛠️ Available Tools
Server Information
get_server_info
: Get detailed discord server information
User Management
get_user_id_by_name
: Get a Discord user's ID by username in a guild for ping usage<@id>
send_private_message
: Send a private message to a specific useredit_private_message
: Edit a private message from a specific userdelete_private_message
: Delete a private message from a specific userread_private_messages
: Read recent message history from a specific user
Message Management
send_message
: Send a message to a specific channeledit_message
: Edit a message from a specific channeldelete_message
: Delete a message from a specific channelread_messages
: Read recent message history from a specific channeladd_reaction
: Add a reaction (emoji) to a specific messageremove_reaction
: Remove a specified reaction (emoji) from a message
Channel Management
create_text_channel
: Create text a channeldelete_channel
: Delete a channelfind_channel
: Find a channel type and ID using name and server IDlist_channels
: List of all channels
Category Management
create_category
: Create a new category for channelsdelete_category
: Delete a categoryfind_category
: Find a category ID using name and server IDlist_channels_in_category
: List of channels in a specific category
Webhook Management
create_webhook
: Create a new webhook on a specific channeldelete_webhook
: Delete a webhooklist_webhooks
: List of webhooks on a specific channelsend_webhook_message
: Send a message via webhook
<hr>If
DISCORD_GUILD_ID
is set, theguildId
parameter becomes optional for all tools above.
A more detailed examples can be found in the Wiki.
サーバー設定
{
"mcpServers": {
"discord-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--saseq--discord-mcp--discord-mcp",
"java -Dserver.port=$PORT $JAVA_OPTS -jar target/*jar"
],
"env": {
"DISCORD_TOKEN": "discord-token"
}
}
}
}