Discord MCP server for AI agents
Read channels and messages, post, edit and delete messages, start threads and react as a Discord bot.
- Auth
- Access token
- Tools
- 11
- Triggers
- 0
- Category
- Communication
Tools and triggers
Get the bot user
DISCORD_GET_CURRENT_USER
Returns the bot account the token belongs to: id, username and avatar.read-only
List servers
DISCORD_LIST_GUILDS
Lists the servers (guilds) the bot has joined, with ids and names.read-only
Get a server
DISCORD_GET_GUILD
Returns a server's name, owner, roles and settings.read-only
List server channels
DISCORD_LIST_GUILD_CHANNELS
Lists all channels of a server with ids, names, types (0 text, 2 voice, 4 category, 15 forum) and categories.read-only
Get a channel
DISCORD_GET_CHANNEL
Returns a channel's name, type, topic and parent.read-only
Send a message
DISCORD_SEND_MESSAGE
Posts a message to a text channel or thread as the bot. Give content, embeds or both.
Edit a message
DISCORD_EDIT_MESSAGE
Changes the text or embeds of a message the bot sent earlier.
Delete a message
DISCORD_DELETE_MESSAGE
Deletes a message. The bot can delete its own messages, and others' if it has Manage Messages.destructive
List channel messages
DISCORD_LIST_CHANNEL_MESSAGES
Reads recent messages of a channel, newest first. Needs the Read Message History permission.read-only
Create a thread
DISCORD_CREATE_THREAD
Starts a thread in a text channel, either attached to an existing message or as a standalone public/private thread.
Add a reaction
DISCORD_ADD_REACTION
Reacts to a message as the bot with a Unicode emoji character or a custom emoji written as `name:id`.
Connect via MCP
Create an MCP server for Discord in the dashboard, then add its URL to your client. This is the Claude Code command; the client guide has the others.
claude mcp add --transport http discord \
"https://www.prompt-tm.com/mcp/<server id>?user_id=<your user>" \
--header "x-api-key: ptm_…"Connect via REST
Run a tool with one request. The response is { data, error, successful, log_id } for every tool.
curl -X POST https://www.prompt-tm.com/api/v3/tools/execute/DISCORD_GET_CURRENT_USER \
-H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
-d '{ "user_id": "alice", "arguments": {} }'