Part of our AI Tools guides
Discord with Claude can use Claude Code Channels, an MCP server, or workflow automation. An MCP server is a tool bridge that lets a compatible AI client use services such as Discord through defined actions.
Your best setup depends on what you want Claude to do for your team. A Discord bot usually carries messages between Discord and Claude, but the bot is not Claude itself. Choose a method based on whether you need replies, server management, or automatic updates. This guide helps you match the setup to your tasks and work style.
Key Takeaways
- Claude Code Channels connect Discord to a live coding session.
- An MCP server gives a compatible AI client direct Discord tools.
- Workflow automation can send updates after events or on a schedule.
- A bot carries messages, and its permissions shape what it can reach.
- Choose one low-risk task and one clear channel for your first test.
How to Use Discord With Claude
A Discord bot can carry your message to Claude and return its reply in the channel you choose. With Claude Code Channels, you send a Discord message to a live Claude Code session. The session can use local tools, including files, Git, and MCP tools.
That connection can help with a focused work task. You might ask a live coding session to review a bug report or check a task against project files. A teammate can share a request in an approved channel, then Claude can reply there.
A different setup uses an MCP server to read recent channel messages or send a reply through a tool. That can suit an AI client that needs defined Discord actions, not a live coding chat. A workflow can post a release update when a release event occurs.
The Discord bot is the bridge between Discord and the Claude service or client. It is not Claude itself, and it does not make every channel available by default. Access depends on the connection and the bot’s permissions.
Use the live connection when you want Discord to reach a working session with local context. Treat a live coding session as a remote work surface, not as an always-on service. The session must stay open for the bridge to work.
Choose the Right Connection Method
Pick Claude Code Channels for a live coding session, an MCP server for direct tools, or workflow automation for events. Each option starts work in a different way, so your goal should guide the setup. Use the simplest method that can complete the task.
An MCP server is a tool bridge for compatible AI clients. It gives the client a set of defined actions, such as reading messages or sending one. A Discord MCP server is a fit when tool access matters more than a live chat bridge.
| Method | Setup | What starts the work | Live Claude Code session needed | Best fit |
|---|---|---|---|---|
| Claude Code Channels | Official plugin and bot | Discord message | Yes | Live coding help |
| MCP server | MCP client and bot | AI client tool call | No | Direct Discord tools |
| Workflow automation | Workflow app and connection | Event, schedule, or manual trigger | No | Automatic updates |
| Webhook | Webhook URL | System post request | No | One-way messages |
Claude Code Channels for a live coding session
Claude Code Channels use a live session on your machine. Remote Control can connect through one command and the claude.ai web or mobile interface. Web sessions run in Anthropic’s cloud sandbox, rather than on your local machine.
This is a strong choice when Claude needs local project files or tools during a code review. It can also work for a short team task that needs a human to keep the session active. Claude Code Channels require Claude.ai Pro or Max.
An MCP server for direct Discord tools
An MCP server can work with a compatible AI client and need not rely on Claude Code. Some Discord tools can read recent messages, send messages, or work with threads. Check the tool list before you choose a plugin or server.
You can build a Discord connection with free bot and open-source MCP tools. That does not mean every workflow platform or Claude API use is free. Match the cost to the client and service you plan to use.
Workflow automation for event-based posts
Workflow automation is best when an event should start the work. A release, a new member, or a calendar time can trigger a post without a person messaging Claude. Compare workflow automation tools for small business if you need to connect several apps.
A webhook is narrower: it sends a message but does not listen for replies or events. Use a webhook when a system only needs to post messages and does not need to hear back. A workflow suits tasks that need a trigger and more steps.
Check the Requirements Before Setup
Check your account and server access first, because the official Channels setup needs more than a Discord login. Claude Code Channels require Claude Code v2.1.80 or later, a Claude.ai login, a Pro or Max plan, and Bun. API-key-only or console-only sign-in does not support Channels.
- Claude Code: Install version 2.1.80 or later.
- Claude.ai account: Sign in with a Pro or Max plan.
- Bun runtime: Install Bun so the plugin can run.
- Discord account: Use an account with access to the target server.
- Server access: Confirm you can add a bot to that server.
Bun is a JavaScript runtime, a program that can run JavaScript tools on your computer. Check its version in a terminal after installation. A Team or Enterprise account may need an organization admin to enable the feature.
Plan access and server access are separate checks. You might be able to sign in to Discord but still lack permission to add a bot. Confirm you can add a bot to the target server before starting the build.
Create and Invite a Discord Bot
Create the bot in the Discord Developer Portal, then give it only the access its job needs. Start by creating an application, adding a bot, and copying its private credential. Treat the bot token like a password.
Create the application and protect its token
Open the Discord Developer Portal and create an application for the connection. Add a bot under that application, then copy the token for your setup. Do not share it with teammates who do not manage the connection.
The token lets software act as your bot. If another person gets it, they may be able to use the bot within its granted access. Store it in a protected place, not in chat or a public code file.
Set message and channel permissions
Give the bot only the permissions needed for its job. These settings control access to channels and messages, while Message Content Intent controls whether the bot can read message text.
| Permission or setting | What it lets the bot do | When you need it |
|---|---|---|
| View Channels | See channels it can access | When it must work in a channel |
| Send Messages | Post replies or updates | When it must send text |
| Read Message History | Read earlier messages | When it needs past context |
| Message Content Intent | Receive message text | When it must read text content |
At minimum, grant View Channels, Send Messages, and Read Message History for a bot that must read and reply. Enable Message Content Intent when the bot needs message text. Discord Developer Mode can help you copy a channel ID later, but it does not grant access.
Invite the bot to your server
Use the OAuth2 URL Generator in the portal and select the bot scope. Choose the permissions the bot needs, then use the generated invite link to add it to your Discord server.
Check the selected server before you approve the invite. A bot added to the wrong server will not reach the channel you intended. Store the token in a protected place and never paste it into a public channel or commit it to code.
Install Claude Code Channels and Connect the Bot
Plan for about 10 minutes for the setup, then connect the plugin to your bot. The official Discord plugin works with Claude Code Channels and needs the runtime and account checks listed earlier. Use the commands shown by your installed plugin, since releases and setup methods can differ.
Install Claude Code, sign in, and add Bun
Follow this sequence to get a basic connection ready:
- Install Claude Code and open it in your project folder.
- Sign in with your Claude.ai account.
- Install Bun, then run
bun --versionto check it. - Add or update the official plugin marketplace.
- Install the Discord plugin and reload plugins.
- Configure the bot token and the target channel.
In Claude Code, add the official marketplace with /plugin marketplace add anthropics/claude-plugins-official. Update it with /plugin marketplace update claude-plugins-official when you need the latest listing.
Add the official Discord plugin and configure its token
Install the plugin with /plugin install discord@claude-plugins-official, then run /reload-plugins. If your installed version offers /discord:configure, use it to set up the bot.
One setup example stores the token and channel ID in CLAUDE_DISCORD_TOKEN and CLAUDE_DISCORD_CHANNEL_ID. Use the current plugin instructions for channel flags and configuration commands. Keep the bot token out of shell history, shared notes, and source control.
Pair Your Account and Protect the Session
Pair your own Discord account before letting anyone use the bot to reach your session. Start Claude Code with the Discord channel enabled, then send the bot a direct message to get a pairing code. Set access to an allowlist before you share the connection.
- Keep the Claude Code session running while you use Channels.
- Send the bot a direct message and copy its pairing code.
- Run
/discord:access pairwith that code. - Set
/discord:access policy allowlistfor approved accounts. - Review action prompts before Claude changes files or runs tools.
Closing the Claude Code session takes the bot offline. A persistent terminal or background environment can keep it available for longer periods. Permission prompts may pause an action until you approve it.
Do not start with --dangerously-skip-permissions. That flag removes an important safety check and can let actions run without the usual approval step. Keep normal permission checks in place unless you have a carefully controlled, trusted environment.
Test the Connection and Fix Common Problems
If the bot is online but ignores text, check its message intent before rebuilding the connection. Message Content Intent may be needed for a bot to read the words in a message. Test one issue at a time so you can find the part that failed.
- Plugin not found: Update the official marketplace, then check the plugin name.
- Configuration command unavailable: Reload plugins and check the installed version.
- Bot offline: Check the token, enabled channel, current channel flag, and active session.
- Bot online but not reading text: Check Message Content Intent and channel access.
A plugin can be installed but unavailable until you run /reload-plugins. If a command differs from the setup you saw earlier, check the commands for the installed release. Plugin versions can change their configuration steps.
An offline bot often points to a missing piece in the live connection. Claude Code must have a running session, and the bot needs a valid token and enabled channel. A local test chat can help you separate a Discord bot problem from a Claude Code Channels problem.
Send a short message in the test channel, then check whether the bot receives and answers it. Avoid testing with a request that can alter files or post widely. Test with one approved user and one low-risk request before inviting a team.
Route Messages to the Right Discord Channel
Give the bot one clear channel for its first test so you can see exactly what it sends. A dedicated channel keeps agent activity out of general discussion. Use a channel that fits the work and the people who need to see it.
A channel ID is useful when a setup needs a fixed destination, rather than a channel name. For example, a configuration can use CLAUDE_DISCORD_CHANNEL_ID to tell the bot where to send messages.
To copy an ID, turn on Developer Mode in Discord settings. Then right-click the channel and choose Copy ID. Developer Mode helps you find the value; it does not let the bot enter the channel.
A channel named #claude-updates can hold agent activity and project notices. A focused help workflow could use #support instead. This gives teammates a clear place to review the messages without mixing them with other chat.
A busy general channel can hide an important update among unrelated messages. Keep a narrow task in a narrow place, especially when only one team needs the result. Check the channel name and ID before saving a destination in a configuration file.
Use an MCP Server for More Discord Tools
Choose an MCP server when you want Claude to use specific Discord tools, not only pass chat to a live coding session. Direct tool access can include reading recent messages and sending a reply. Start with the smallest set of actions that supports the task.
Read and send messages with an MCP server
First select a compatible Discord MCP server and check its available tools. Create or reuse a bot, grant the needed permissions, and configure the client to use the server. Environment variables can hold the bot token and a default server ID.
Test a read action and a send action with approval before using the tool for team work. A read tool might fetch recent messages from one channel. A send tool might post a short reply after you review the text.
Manage channels and server items with care
Some MCP servers offer wider actions, such as making channels, roles, webhooks, or threads. These actions can change how a Discord server works for other people. A tool that can edit roles has more impact than one that only reads messages.
Keep the bot’s access limited to the channels it operates in. Avoid giving a tool access to server settings when the task only needs a reply. Start with read-only actions and add changes only after you trust the tool and its permission scope.
Automate Discord Updates With Events and Schedules
Use a workflow trigger when the message should go out because an event happened, not because someone asked Claude. Event-based posts can start from an app event, a schedule, a webhook, an AI chat, or a manual trigger. A simple update may not need AI at all.
- Post release notes in a Discord channel after a release event.
- Welcome a new member when their account joins the server.
- Publish a weekly project update on a set schedule.
- Route a support question to a team member for review.
A workflow can send messages, read recent messages, add reactions, or manage channels and roles. The right action depends on the platform and the access you grant it. A scheduled notice can use a fixed template without an AI step.
Event-triggered automation is not the same as an always-on Claude agent. A workflow runs after a trigger, while a live agent waits for incoming requests during an active session. For help choosing a platform, compare automation tools and business workflows.
Keep sensitive customer cases out of a fully automatic path until someone has reviewed the design. A wrong public post can spread farther than a private draft. Add a human review step when a message could affect a customer or a public announcement.
Add a Separate Discord Bot for Server Operations
Keep server moderation separate from Claude’s access to a coding session. A server-management bot can handle roles, logs, and moderation without using Claude Code Channels. Give each bot a clear job and its own access limits.
These tools can help manage a Discord server, while the Claude connection bot carries messages to an AI session. ProBot, Arcane, Carl-bot, and Dyno appeared often in one server sample. That sample is not a universal ranking for every community.
| Bot | Free-plan features | Paid-plan price when given | Best-fit task |
|---|---|---|---|
| Sapphire | Auto-moderation, roles, logs, custom messages | Not given | Moderation and server tools |
| Dyno | Basic free plan | Premium starts at $5.99 per month | Basic server management |
| Carl-bot | Reaction roles, auto-moderation, suggestions | Premium starts at $7.99 per month | Roles and community input |
| YAGPDB | Auto-moderation with regex filters and strike system | Not given | Custom moderation rules |
| MEE6 | Limited free plan | $11.95 monthly or $89.90 lifetime | Paid server features |
Sapphire’s free plan includes auto-moderation, role and logging tools, and custom messages. Dyno has a free basic plan. Carl-bot’s free plan includes reaction roles, auto-moderation, and suggestions.
YAGPDB’s free core plan includes custom auto-moderation with regex filters and a strike system. MEE6 has a limited free plan, with Premium at $11.95 per month or lifetime access for $89.90. Review the bot’s permissions and paid terms before adding it to a work server.
For a closer look at moderation choices, see this guide to Discord moderation bots and safety tools. Choose based on the server’s needs, not a broad popularity claim.
Understand Discord API Rate Limits
A bot can be correctly configured and still need to pause when it sends too many requests. Discord has several rate-limit layers that control bot activity. After a 429 response, wait for the stated retry interval before trying again.
Four layers can limit bot activity
Discord limits activity across the whole bot, specific routes, invalid requests, and Gateway sends. A route is a kind of request, such as an action for one channel. Each layer helps control a different part of traffic.
| Limit layer | What it controls | What to check |
|---|---|---|
| Global per-bot | Requests from the bot overall | How often the bot sends requests |
| Per-route bucket | Requests to a route group | Route headers and remaining count |
| Invalid-request | Requests Discord rejects | Errors and repeated bad requests |
| Gateway-send | Messages sent over the Gateway | How fast the client sends events |
Read headers and wait after a 429 response
Response headers can show how much room remains in a request bucket. Check X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset-After, and X-RateLimit-Bucket. These values help a client slow down before it hits the same limit again.
A 429 response includes retry_after, the wait time before another request. Do not retry immediately or send a burst of repeats. Let the client wait for that interval, then try again when the window resets.
Repeated failures can point to a loop or an automation that sends too often. Review the route and the timing before changing the bot’s behavior. Log repeated 429 responses so you can reduce the traffic pattern causing them.
Handle Message Intents, Webhooks, and Fast Replies
Give the bot message access only when your workflow needs to read message text. Claude can read messages through a configured connection only when the bot can reach the channel and has the needed access. A webhook can post messages, but it cannot listen for events.
- Enable Message Content Intent when the bot needs message text.
- Get Discord approval when the intent requires approval for your bot.
- Use a webhook for outgoing posts, not for reading incoming messages.
- Reply to a slash-command interaction within three seconds.
- Use a bot or another event listener when the workflow must hear messages.
Message Content Intent is a privileged Gateway intent. A bot that requests it without enabling it, or getting needed approval, can lose its connection with error 4014. This setting matters when the bot needs message text, not just a channel name.
A webhook can post without a bot process or Gateway connection. It cannot hear a new message or run a reply flow by itself. A slash-command interaction has a short response window, so a slow task needs a quick first reply.
Discord channel access and Discord’s own data practices are separate issues. A bot can only work with the channels and permissions it can reach. Use a webhook for one-way posting, not for a two-way conversation.
Scale Image Generation Without Missing the Reply Window
A slow image job should not keep a Discord command waiting for its full result. Move the long task out of the reply path by acknowledging the command first, then processing it in the background. Discord slash-command interactions need a response within three seconds.
A common pattern sends the work to a queue after the bot gives a quick response. A worker handles the job, then sends the finished image back to the channel. This keeps a long process from blocking the first reply.
One AWS example uses API Gateway, Lambda, an SQS FIFO queue, ECS, and GPU-equipped EC2 instances. Its GPU worker uses g4dn.xlarge instances, each with 4 vCPU. This is one architecture, not a rule for every image task.
The queue can hold work until a worker is ready. The worker then runs the code and returns the result when it finishes. The user gets a quick acknowledgment instead of waiting with no sign of progress.
Start with the expected job size and how many requests may arrive together. A small workload may need a simpler worker than a GPU-backed system. Match the worker design to your actual workload instead of copying a GPU architecture by default.
Protect Privacy When Connecting Discord and Claude
Treat every channel you connect as a work data access decision. A bot’s access depends on its permissions and the channels it can reach. Keep sensitive conversations out of the bot’s reach unless your team has approved the use.
Discord’s own data practices are a separate question from what a particular bot can read. Discord says it does not sell personal information. It may use content posted in larger spaces to develop, improve, and power its services.
Discord generally does not access or store the contents of video or voice calls or channels. That statement is not a promise about how every private message is handled. It also does not describe what an AI-connected bot can access in a channel.
Before connecting a work space, decide which messages the bot needs for its task. A project update channel may be suitable, while private staff or customer discussions may not be. Keep each connection limited to the work your team has approved.
Review the data that a workflow sends to Claude and who can see its replies. Do not assume that a private channel makes every use safe by itself. Keep sensitive conversations out of the bot’s reach unless your team has approved the use.
Conclusion
A focused Discord connection can make team updates and coding tasks easier to handle. Claude Code Channels suit a live coding session, an MCP server gives tool access, and automation handles event-driven updates.
Start with one low-risk use case, a dedicated channel, and a narrowly permitted bot. Check that the result helps the people who need it before giving the connection more access. Start with one approved use case, then expand only when the access and results are clear.



