Docs/Utilities/Cloud Discord

Cloud Discord

Cloud Discord is a full-featured Discord MCP server that gives AI agents complete control over Discord servers. 59 tools across 12 categories, running on Cloudflare Workers.

GitHub   MIT License

Tools (59)

CategoryCountWhat You Can Do
Messaging8Send, edit, delete, bulk delete, read history, embeds, DMs
Moderation4Kick, ban, unban, timeout members
Roles7Create, edit, delete, assign, remove, list member roles
Channels6Create, edit, delete channels, slowmode, permissions
Threads3Create, manage (archive/lock), delete threads
Forums9Create/edit/list posts, manage tags, layout, sort, guidelines
Reactions3Add, remove, get reactions
Pins3Pin, unpin, list pinned messages
Files2Send files to channels or DMs (URL or base64)
Voice1Text-to-speech voice notes via ElevenLabs
Server4Guild info, audit log, list servers, member list
Invites3Create, list, delete invites
Polls1Native Discord polls

Bonus Features

  • /vibe slash command — AI-powered channel vibe check (requires Anthropic API key)
  • Direct file upload endpoint — send files without base64 encoding
  • Rate limit handling — automatic retry on Discord rate limits

Setup

1. Create a Discord Bot

  1. Go to the Discord Developer Portal
  2. Create a new application
  3. Under the Bot tab, reset the token and save it
  4. Enable Message Content Intent
  5. Under OAuth2 > URL Generator, select bot + applications.commands scopes with Administrator permissions
  6. Use the generated URL to invite the bot to your server

2. Clone and Install

git clone https://github.com/codependentai/cloud-discord.git
cd cloud-discord
npm install

3. Configure

Edit wrangler.toml:

[vars]
MCP_SECRET_PATH = "your-random-secret"    # openssl rand -base64 24
DISCORD_PUBLIC_KEY = "your-public-key"     # From Developer Portal

4. Set Secrets

# Required
npx wrangler secret put DISCORD_BOT_TOKEN

# Optional — for /vibe command
npx wrangler secret put ANTHROPIC_API_KEY

# Optional — for voice notes
npx wrangler secret put ELEVENLABS_API_KEY

5. Deploy

npx wrangler deploy

6. Connect to Your MCP Client

Your MCP endpoint is:

https://your-worker.workers.dev/mcp/your-secret-path

Add to Claude Code (.mcp.json):

{
  "mcpServers": {
    "discord": {
      "type": "url",
      "url": "https://your-worker.workers.dev/mcp/your-secret-path"
    }
  }
}

Architecture

Single Cloudflare Worker with:

  • Secret-path authentication — your MCP endpoint is only accessible with your secret URL
  • Discord REST API v10 — all operations go through Discord’s HTTP API
  • Rate limit retry — automatic handling of Discord’s rate limits
  • Multipart form data — for file uploads and voice notes

Use Cases

  • AI server management — let your AI moderate, organise channels, manage roles
  • Automated posting — schedule announcements, cross-post content
  • Community tools — forum management, reaction tracking, audit logging
  • Bot infrastructure — build Discord workflows without writing a traditional bot