Ask your AI

Copy this and paste it into ChatGPT, Claude or another assistant to get an answer based on this site.

How do I connect Discord to an AI agent? Please use this URL as a reference:
https://agentok.jp/en/services/discord.md
SNS

How to connect Discord to AI agents

TL;DR

The short answer
VerdictOfficial, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review
Who can use itIndividuals and organizations with a Discord account. Create an app in the Developer Portal and you can add a bot to your own server as an individual, with no review (once a bot is in 100 or more servers, verification and approval of privileged intents are required).
Method公式API(REST/Gateway)
PricingThe API is free to use and has no paid tier. Rate limits are a global limit of 50 requests per second per bot plus per-route buckets (reported via the X-RateLimit-* headers). The Interactions endpoints are exempt from the global limit, and large apps can request a higher limit.
RiskIf a bot token leaks, the bot's permissions can be used to operate the server as-is. A bot granted Administrator is effectively a server takeover waiting to happen. Automating a personal user account (a self-bot) violates the terms and can get the account terminated. If you let an agent read channel history full of other people's messages while also giving it posting and deletion tools, instructions planted in a message could induce unintended actions.

There is no official MCP server, but the official API (REST / Gateway) is publicly available for free. Create an app in the Developer Portal, issue a bot token, and invite the bot to a server over OAuth2, and you can read and write messages and manage channels and roles. For posting only, a webhook is the simplest route. Automating a personal account (a self-bot) is prohibited by the terms.

AuthenticationBot token (per app) / OAuth2 (bot invites and user authorization)
Checked by the operator2026.12.05
How the operator checkedChecked against official documentation

For AI agents: Markdown ・ JSON

Official MCP and AI guides

Official MCP serverNo

Discord 公式の MCP サーバーはない。MCP プロジェクトの参照サーバーにも含まれていない(2026-12-05 確認)。MCP で使う場合は、Bot トークンを使う非公式サーバーになる

Official guide for AI agentsNo

開発者ドキュメントは discord.com/developers/docs にあるが、AI・エージェント向けの専用ガイドではない

Connectors

Official connectors from AI services

Not supported: Claude, ChatGPT, Gemini, Microsoft Copilot

Third-party integration services

  • Zapier

    Discord アプリがあり、チャンネルメッセージの送信やロール付与などのアクションが使える。Zapier MCP 経由でエージェントからも実行できる

  • Make

    Make の Discord アプリ(Make が保守)。メッセージの送受信、ロール管理、メンバーイベントの記録などのモジュールがある。Make の公式 MCP サーバー経由でエージェントからも利用できる

  • n8n

    n8n の公式ノードがあり、チャンネルの作成・削除・取得・更新、メッセージ送信、ロール管理などができる。Bot トークンまたは Webhook で接続する。MCP Server Trigger ノード経由で、Discord ノードをエージェントから呼び出すこともできる

  • Power Automate

    Microsoft の標準コネクタではなく、独立系発行者の Discord コネクタ(Power Automate / Power Apps / Copilot Studio では Premium、Logic Apps では Standard)。アクションは Webhook の実行と、自分のユーザー情報・所属サーバー・連携サービス一覧の取得に限られる

  • IFTTT

    Discord のサービスがあり、IFTTT Bot をサーバーに追加して使う(Manage Server 権限が必要)。トリガーはピン留めされたメッセージ、クエリは招待一覧、アクションはメッセージ投稿・リッチメッセージ投稿

  • Pipedream

    Pipedream には Discord アプリが2種ある。Pipedream 公式 Bot を使う discord(OAuth、メッセージ送信・ファイル付き送信などのアクションと、新規メッセージ等の Instant トリガー)と、自前 Bot トークンを使う discord_bot(ロール・メンバー管理など多数のアクション)。Pipedream のリモート MCP でも利用できる

  • Composio

    Composio には Discord ツールキットがあり、ユーザー OAuth 用と Bot 用で分かれている。メッセージ送信、チャンネル履歴の取得、ロール管理は Bot 側の範囲。Composio 経由の MCP 接続もできる

  • Yoom

    Yoom に Discord のマイアプリ連携があり、テキストチャンネルへのメッセージやファイルの送信などのアクションが使える

Unofficial MCP servers

Published by someone other than the provider. The provider does not guarantee how they work or how safe they are.

  • discord-mcp(tristan-kkim)

    個人開発の MCP サーバー(pip パッケージ discord-mcp、tool 30件超。2026年12月確認)。Bot トークンで、チャンネル・メッセージ・メンバー・ロールの読み書きができる。破壊的操作の tool には確認を挟めるよう annotations が付いている(確認が強制されるかはクライアント実装に依存)。環境変数 DISCORD_BOT_TOKEN が必要

Security assessment

For each available connection method: who provides it, the permissions it requires, how the terms treat it, and the data path. Items we could not confirm are marked Unverified.

Third-party integrationZapierOfficial from the integration service
Permissions requiredRead and write

Zapier に接続した Discord の権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathZapier のサーバーを経由する。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る
Third-party integrationMakeOfficial from the integration service
Permissions requiredRead and write

Make に接続した Discord の権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathMake のサーバーを経由して Discord の API を呼ぶ。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る
Third-party integrationn8nOfficial from the integration service
Permissions requiredRead and write

接続した Bot の権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathn8n の実行環境から Discord の API を呼ぶ
Third-party integrationPower AutomateThird party (unofficial)
Permissions requiredRead and write

Webhook の実行(対象チャンネルへの投稿)と、自分のユーザー情報・所属サーバーの読み取りに限られる

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathPower Automate のサーバーを経由する
Third-party integrationIFTTTOfficial from the integration service
Permissions requiredRead and write

IFTTT Bot を追加したサーバーの範囲。投稿は IFTTT Bot 名義

Terms of serviceNo issues

公式の Bot 経由の利用範囲内

Source: relevant section of the terms

Data pathIFTTT のサーバーを経由する
Third-party integrationPipedreamOfficial from the integration service
Permissions requiredRead and write

Pipedream に接続した Discord の権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathPipedream のサーバーを経由して Discord の API を呼ぶ。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る
Third-party integrationComposioOfficial from the integration service
Permissions requiredRead and write

Composio に接続した Discord の権限の範囲(ユーザー OAuth と Bot では届く範囲が異なる)。トークンの保管は Composio 側に委ねる形になる

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathComposio のサーバーを経由する。OAuth の認可とトークン管理は Composio が代行する。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る
Third-party integrationYoomOfficial from the integration service
Permissions requiredRead and write

Yoom に接続した Discord の権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathYoom のサーバーを経由する
Unofficial MCPdiscord-mcp(tristan-kkim)Third party (unofficial)
Permissions requiredRead and write

自分の Bot のトークンを渡す。できる操作は Bot に付けた権限の範囲

Terms of serviceConditional

公式の Bot API の範囲内であることが前提。加えて、取得したメッセージ内容を学習に使う LLM プランへ流すと開発者ポリシー第21条に触れるため、学習利用のない経路に限る

Source: relevant section of the terms

Data path手元で動き、Discord の API に直接つながる。取得したデータは、接続した LLM プロバイダーのクラウドへ送られ、会話履歴等に残りうる。パッケージ自体も第三者製のため、導入時は出所を確認する

Data you can fetch within the terms of service

Discord API(Bot / OAuth2 / Webhook)とサーバー内のコンテンツ

ScrapingProhibited

利用規約で、書面による同意のないスクレイピングが禁止され、コミュニティガイドラインでもセルフボット・ユーザーボットの使用が禁止されている。開発者ポリシーでは、ユーザーにログイン資格情報(パスワードやアクセストークン)を求めること(第4条)、データのマイニング・スクレイピング(第20条)、API で取得したメッセージ内容を明示的許可なく AI / 機械学習モデルの学習に使うこと(第21条)が禁止され、取得データは明示した機能に必要な範囲でのみ使うこと(第15条)、販売・共有をしないこと(第17・18条)が求められる

Source: relevant section of the terms of service

Fetching with the agent's own browser

There is an official API or MCP server, so we do not recommend having an agent sign in and operate the site in a browser on your behalf.

Usage

How to connect

  1. Create an application in the Developer Portal (discord.com/developers)
  2. Issue a token from the Bot tab with "Reset Token" (the bot user is created automatically when you create the app; manage the token as a secret)
  3. Use the OAuth2 URL generator to choose the bot scope (and applications.commands if needed) with the minimum permissions, and invite the bot to the target server
  4. If you need to read message content, enable the privileged intent (MESSAGE_CONTENT) in the portal
  5. Call the REST API with Authorization: Bot <token>. Receive events through a Gateway connection or an Interactions endpoint

Setup examples

Paste these as they are. Replace the API key, domain and similar values with your own.

Bot としてメッセージを投稿する
curl -X POST "https://discord.com/api/v10/channels/CHANNEL_ID/messages" \
  -H "Authorization: Bot BOT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content": "hello"}'

BOT_TOKEN は Bot タブで発行したトークン、CHANNEL_ID は投稿先チャンネルの ID。Bot がそのチャンネルを見て発言できる権限を持っていることが前提

Official page checked: https://discord.com/developers/docs/intro

Limiting the features

招待時に権限を最小限にする
https://discord.com/oauth2/authorize?client_id=APP_ID&scope=bot%20applications.commands&permissions=2147486720

permissions は招待時に Bot のロールへ初期設定される権限で、後からサーバー管理者がロール編集やチャンネル別設定で変更できる(「上限」ではない)。最初から広く付けないための指定で、2147486720 は「チャンネルを見る」「メッセージを送信」「アプリコマンドを使う」の最小構成。Administrator(8)は付けない

Official page checked: https://discord.com/developers/docs/intro

チャンネルの会話を要約する

Instruction to the agent

#general の昨日のメッセージを読んで、決まったことだけ要約して

Bot が参加しているチャンネルの履歴を読む。メッセージ本文の取得には MESSAGE_CONTENT インテントの有効化が必要で、チャンネル側では「チャンネルを見る」と「メッセージ履歴を読む」権限も要る

告知を投稿する

Instruction to the agent

#announcements に明日のメンテナンス告知を投稿して

送信は Bot 名義になる。できる操作は Bot のロール権限の範囲(招待時の初期値に、管理者による変更が加わる)

Pitfalls and tips

Pitfalls

  • Automating a user account (a self-bot) violates the terms and can get the account terminated. Do not use MCP servers or tools that ask for a user token
  • If a bot token leaks, a third party can abuse every permission granted to the bot. Store tokens in a secrets manager and reset them immediately if one leaks
  • Reading message content requires the privileged MESSAGE_CONTENT intent. Once a bot is in 100 or more servers, verification and intent approval are required (verification can be applied for from 75 servers)
  • Returning 10,000 invalid requests (401 / 403 / 429) within 10 minutes can trigger a temporary IP ban (the Invalid Request Limit). Honor retry_after on 429s and do not keep retrying with an invalid token or insufficient permissions
  • A webhook URL is itself a posting credential. Do not put it in public repositories or shared documents
  • The Developer Policy requires that you not keep message content longer than necessary and not sell or share data you obtained
  • Section 21 of the Developer Policy prohibits using message content obtained through the APIs to train AI / machine learning models without Discord's express permission. Avoid designs that feed messages into LLM plans where training use is enabled

Tips

  • Connect a bot account (or a webhook), never automate a personal account
  • For posting only, a webhook is the fastest route and limits permissions to a single target channel. If its URL leaks, delete the webhook and reissue it. For reading and responding you need a bot; for MCP use, only unofficial servers that take a bot token exist
  • Keep invite permissions minimal. A leaked token for a bot with Administrator is equivalent to a server takeover

Test environment and change history

How it was checkedChecked against official documentation
Clients triedNot yet tried with a real client

開発者ドキュメントと利用規約、開発者ポリシーの整理記事で確認。実機での接続はしていない

Change history

  • 初版

Sources

Official and primary sources

Pages published by the service provider, the integration provider or the MCP author about their own product.

References (third-party write-ups)

Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.

Related articles

How to connect YouTube to AI agents

Official, individuals OK

How to connect Spotify to AI agents

Official, individuals OK

How to connect Reddit to AI agents

Official, individuals OK

How to connect Instagram to AI agents

Business or paid only