Discord MCP serverand Python AI tasks
qbash hosts a Discord MCP server you can use in Claude, ChatGPT, Codex, Cursor, Grok Bot and Muse. Developers use qbash Tasks to write cloud-hosted Python functions that pair Discord with models such as Claude and GPT.
Add the qbash MCP
Use Discord from Claude Code, Codex, Cursor and other MCP clients. Connect Discord in qbash, and your agent can work with its data and build Tasks that call it.
claude mcp add --transport http qbash https://mcp.qbash.com/mcp
Then run /mcp in Claude Code and sign in with qbash.
- List the servers your bot has joined
- Read a server's name, owner, member count and features
- List a server's text, voice, forum and announcement channels
- Read recent messages in a channel, before or after a given message
- Read one message with its embeds, attachments and reactions
- Post a message with text, embeds or a reply to another message
Write a Discord task in Python
A qbash Task is a Python function hosted in the cloud. Python is the runtime and defines the process, and built-in inline prompts run on leading models such as Claude, GPT, Gemini and Grok.
Run a Task on a schedule, from an HTTP request or when a connected app sends an event. Your agents and chat tools call it over MCP.
Each run is logged with its inputs and results, and you can turn data logging off for any Task. Every Task has version control, and each run is locked to the version it ran.
Turn a release changelog into a Discord announcement
Your release pipeline posts the version and changelog to the Task's webhook. An inline prompt rewrites the changelog for your community, and the bot posts it to your announcements channel.
release = qbash.inputs.get("release")
if release:
announcement = qbash.ai.run_prompt(
slug="discord-release-announcement",
variables={"release": json.dumps(release)},
)
posted = qbash.integrations.discord.send_message(
channel_id="your-announcements-channel-id",
content=announcement,
allowed_mentions={"parse": []},
)
qbash.output(posted)
else:
qbash.output("No release in this request.")
Sample send_message response
{
"status": "success",
"id": "1305982251234567890",
"channel_id": "1102345678901234567",
"content": "Version 2.8.0 is out. Reports now export to CSV...",
"timestamp": "2026-11-12T15:04:11.000000+00:00"
}
Custom MCP server
Build a custom MCP server with Discord
Create a hosted MCP server that combines Discord tools with your other connectors, Tasks and memory folders. You choose each tool it exposes, so a server can share Discord reads with write tools left off.
Share the server with your team, and each person adds it to the client they already use.
Discord MCP questions
Does Discord have an official MCP server?
Discord has not published an official MCP server as of November 2026. Anthropic publishes a Discord plugin for Claude Code that runs a local MCP server against a bot you create, and it works only inside a Claude Code session on your machine. The qbash server is hosted, so ChatGPT, Claude and Python tasks reach Discord through one URL with your other connectors.
What does the Discord connector need to connect?
A bot token from an application you create in the Discord Developer Portal, with the bot invited to each server it should reach. Turn on the Message Content intent if the bot needs to read message text, and the Server Members intent for member search.
Can the Discord MCP server post as me?
Every message posts as your bot, with the bot's name and avatar. The bot can only see and post in channels where its roles allow it.
Related communication connectors
Build a Discord task
Write it in Python with AI steps, or describe it to your coding agent through the qbash MCP.