No-Code

Connect to enterprise-grade MCP servers instantly!

Get Started →


For Developer

Follow the instructions below to integrate Discord MCP server to your AI application using our API or SDK.

Prerequisites

1. Create a Discord MCP Server

Use the following endpoint to create a new remote Discord MCP server instance:

Request

from klavis import Klavis
from klavis.types import McpServerName, ConnectionType

klavis_client = Klavis(api_key="<YOUR_API_KEY>")

# Create a Discord MCP server instance
discord_server = klavis_client.mcp_server.create_server_instance(
    server_name=McpServerName.DISCORD,
    user_id="<YOUR_USER_ID>",
    platform_name="<YOUR_PLATFORM_NAME>",
)

Response

{
  "serverUrl": "https://discord-mcp-server.klavis.ai/mcp/?instance_id=<instance-id>",
  "instanceId": "<instance-id>"
}
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 add Klavis AI bot to your Discord Server.

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

Explore MCP Server Tools