Discord with OAuth
Connect to a Discord server with OAuth to send messages, manage channels, manage users, and more.
Key Features
- OAuth-based Discord server connection
- Server and channel information retrieval
- Message sending and reading
- User and member management
- Role assignment and removal
- Reaction (emoji) management
- Channel creation and deletion
- Message moderation
Basic Information
Authentication Method
Authenticate using OAuth 2.0.
When you select a server and approve bot permissions on the Discord OAuth consent screen, AIP stores the Guild ID and Guild Name for that server.
Input Parameters
There are no integration-level settings to enter manually when adding this Integration. Select the Discord server during the OAuth authorization flow.
Supported MCP Tools
Server Management Tools
get_server_info
Retrieves information about the Discord server connected through OAuth.
list_channels
Retrieves the list of channels in the server.
create_text_channel
Creates a new text channel.
delete_channel
Deletes a channel.
User Management Tools
get_user_info
Retrieves Discord user information.
list_members
Retrieves the list of members in the server.
add_role
Adds a role to a user.
remove_role
Removes a role from a user.
Channel Management Tools
get_channel_info
Retrieves information about a specific channel.
Message Management Tools
send_message
Sends a message to a specific channel. File attachments can use aip-temp://, aip-chat://, or aip-drive:// URIs.
read_messages
Reads recent messages from a channel.
moderate_message
Deletes a message and optionally times out the user.
Reaction Management Tools
add_reaction
Adds a reaction to a message.
add_multiple_reactions
Adds multiple reactions to a message.
remove_reaction
Removes a reaction from a message.
Usage Example
For example,
- When you input “Send a deployment complete message to the announcements channel” as a prompt,
- The LLM calls the
send_messagetool through MCP to send the message to the specified channel in the connected Discord server. - Then, it responds in the chat based on the tool call result.
OAuth Connection Method
- Add the Discord with OAuth MCP Integration in AIP.
- Sign in with the Discord account you want to use on the Discord OAuth consent screen.
- Select the server to connect and approve the requested bot permissions.
- After the connection is complete, the selected server’s Guild information is stored.
Notes
- This Integration works with the single Discord server selected during OAuth authorization.
- Requested bot permissions, such as channel management, role management, and message management, must be allowed in the server.
- It is recommended to grant only the minimum necessary permissions.
- Comply with Discord API rate limits when making requests.
- Use moderation features carefully.