Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to Discord to manage servers, send messages, and interact with communities through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with Discord

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

# Create a Strata MCP server with Discord
response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.DISCORD],
    user_id="user123"
)

API Reference

Full Strata API endpoints
3

Authenticate with Bot Token

klavis_client.mcp_server.set_strata_auth(
    strata_id=response.strata_id,
    server_name=McpServerName.DISCORD,
    auth_data={
        "data": {
            "bot_token": "YOUR_DISCORD_BOT_TOKEN"
        }
    }
)
Get your Discord bot token from the Discord Developer Portal. You’ll also need to add the bot to your Discord server with the required permissions.
🎉 Your Discord MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Available Tools

Tool NameDescription
discord_get_server_infoGet information about a Discord server (guild) including name, member counts, and settings
discord_list_membersGet a list of members in a server with their roles and join dates (Default 100, Max 1000)
discord_create_text_channelCreate a new text channel with optional category and topic
discord_add_reactionAdd a reaction emoji to a message. Supports Unicode and custom emojis
discord_add_multiple_reactionsAdd multiple reaction emojis to a message in a single operation
discord_remove_reactionRemove the bot’s own reaction emoji from a message
discord_send_messageSend a text message to a specific Discord channel
discord_read_messagesRead recent messages from a Discord channel including content and reactions (Default 50, Max 100)
discord_get_user_infoGet detailed information about a Discord user including username and avatar
For more details about tool input schema, use the get_tools API.

Next Steps

I