Skip to main content

MCP Discord Bot Server

A Model Context Protocol (MCP) server that provides tools for automating Discord through a self-hosted Discord Agent Proxy instance.

Overview

The Discord Agent Proxy is a standalone service you deploy on AceDataCloud. It maintains a persistent connection to Discord using your account credentials and exposes both an MCP and REST API interface.

This MCP server wraps the Discord Agent Proxy's REST API, exposing Discord operations as MCP tools for use with Claude, Cursor, and other MCP-compatible AI clients.

⚠️ Warning: Automating a personal Discord account (self-bot) violates Discord's Terms of Service. Use a dedicated account and keep automation frequency reasonable.

Prerequisites

  1. Create a Discord Agent Proxy application at platform.acedata.cloud and activate a subscription. Instance resources are configured automatically; no instance size selection is needed.
  2. Enter your Discord account credentials in the configuration page and deploy.
  3. In the application's Overview tab, confirm the account is connected and copy the MCP endpoint and access token from the Discord account card. A running container does not guarantee a connected Discord account.

The Documentation tab lists all 14 REST operations with request parameters, response schemas, and code examples. Test GET /api/whoami there, or call discord_whoami after configuring this MCP server, to verify the connected account. Instance addresses and access tokens are filled in automatically in the console; tokens are hidden by default. Sending, editing, or deleting messages affects the real account, so confirm the target and content before testing.

Download OpenAPI (JSON) exports the instance address without its access token. To change Discord account credentials, use Redeploy in Overview.

Connect to your Discord Agent Proxy

This package connects to your own deployed Discord Agent Proxy, not to the shared https://<service>.mcp.acedata.cloud/mcp endpoint used by the generation MCPs. The proxy's URL and access token are shown in the application's Overview tab after you deploy and connect the Discord account. The proxy credential is DISCORD_BOT_TOKEN; an AceDataCloud API token or MCP OAuth/DCR setup does not replace it.

Use a dedicated Discord account and follow Discord's current terms and rate limits. Sending, editing, deleting, and reacting affect that real account. Deployment and API documentation.

Local stdio setup

python -m pip install mcp-discord-bot
export DISCORD_BOT_BASE_URL='https://discord-bot-xxxxxxxxxxxx.app.acedata.cloud'
export DISCORD_BOT_TOKEN='YOUR_PROXY_TOKEN'
mcp-discord-bot

Copy the actual URL and token from your own application's Overview; the hostname above is only a shape example. Keep the token in your user's environment or secret store, never in a committed repo. For Claude Desktop, merge this entry into the local MCP file opened from its developer settings (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "discord-bot": {
      "command": "uvx",
      "args": ["mcp-discord-bot"],
      "env": {
        "DISCORD_BOT_BASE_URL": "YOUR_DEPLOYED_PROXY_URL",
        "DISCORD_BOT_TOKEN": "YOUR_PROXY_TOKEN"
      }
    }
  }
}

uvx needs uv on PATH; Claude Code, Cursor and VS Code can also launch this stdio command using their own local MCP configuration formats. Do not copy this local-process JSON into a remote connector screen.

Verify before sending

  1. Confirm the proxy application's Overview shows the Discord account connected. A running container alone is insufficient.
  2. Call the read-only discord_whoami tool and check the account identity. Then use discord_list_guilds or discord_list_channels to inspect the intended target.
  3. Only after confirming the destination, call a mutating tool such as discord_send_message. Review its output and reread the message if available. Keep the destination, content, and rate within the account's permissions.

If discord_whoami fails, check the proxy URL, proxy token and connected-account status. mcp-discord-bot --transport http --port 8000 runs your own HTTP MCP wrapper; it is not the shared hosted OAuth service. Expose that wrapper only with appropriate network and authentication controls.

Available Tools

Tool Description
discord_whoami View the proxied Discord account details
discord_list_guilds List all servers the account has joined
discord_list_channels List channels in a server
discord_create_text_channel Create a new text channel
discord_list_members List server members
discord_send_message Send a message (with optional reply)
discord_read_messages Read recent messages from a channel
discord_edit_message Edit a message you sent
discord_delete_message Delete a message
discord_search_messages Search for messages in a channel
discord_add_reaction Add an emoji reaction to a message
discord_pin_message Pin a message in a channel
discord_create_dm Open a DM channel with a user
discord_send_dm Send a direct message to a user
discord_get_usage_guide Get comprehensive usage documentation

Documentation

Documentation

License

MIT

Metadata

Release files for mcp-discord-bot 2026.11.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-discord-bot 2026.11.7.0
File Size Uploaded Provenance Actions
mcp_discord_bot-2026.11.7.0.tar.gz 20.5 kB Without provenance Details for mcp_discord_bot-2026.11.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-discord-bot 2026.11.7.0
File Interpreter ABI Platform Actions
mcp_discord_bot-2026.11.7.0-py3-none-any.whl Python 3 none any Details for mcp_discord_bot-2026.11.7.0-py3-none-any.whl

Total release size: 39.1 kB

Release files / mcp_discord_bot-2026.11.7.0.tar.gz

Download URL mcp_discord_bot-2026.11.7.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a66e1bf28d9a5d690d37a21f852dd6e6e07eba43df8b8bc819477b75351d558b
BLAKE2b-256 checksum
How to use checksums
9033b8f0e3781db72fca392dd1f9b0d66229526d6c3ff315037f2dcb9e2ef6b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / mcp_discord_bot-2026.11.7.0-py3-none-any.whl

Download URL mcp_discord_bot-2026.11.7.0-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd5e361dc7b3bddb5c0f5b133676e228b6f69aa2e0a510726a13e39dc80760c6
BLAKE2b-256 checksum
How to use checksums
8d87cf62d9551a5194d907834404c81c4d9837c201d42253dee57f85ce235d81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for mcp-discord-bot 2026.11.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page