Discord
Learn how to use Klavis to connect your AI application to Discord MCP Server
Prerequisites
To get the most out of this guide, you’ll need to:
1. Create a Discord MCP Server
Use the following endpoint to create a new remote Discord MCP server instance:
Request
Response
serverUrl specifies the endpoint of the Discord MCP server, which allows you to interact with Discord servers and channels.
instanceId is used to get an authentication token. After you complete the OAuth flow, this token allows the MCP server to access Discord on your behalf.
2. Discord Bot Setup
To enable your MCP server to access Discord, you need to set up a Discord bot and authenticate it.
Option 1: API Call
Option 2: Browser Redirect
Simply copy and paste the following URL into your web browser, replacing <YOUR_INSTANCE_ID>
with your actual instance ID:
Bot Permissions
When authorizing your bot, you’ll be prompted to select a Discord server. The bot will request the following permissions:
- Read messages/view channels
- Send messages
- Read message history
- Attach files
- Embed links