KosmoKrator

communication

Discord MCP, CLI, and Lua Integration for AI Agents

Discord integration docs for AI agents: MCP gateway setup, Discord CLI commands, Lua API reference, credentials, and function schemas.

7 functions 6 read 1 write Bearer token auth

Discord for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
discord
route_slug
discord
package
discord
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Discord MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Discord.

Discord CLI Matrix

Use these pages for direct Discord CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
discord.discord_list_channels Read read 1 List all channels in a Discord guild. Returns channel IDs, names, types, and topics.
discord.discord_get_channel Read read 1 Get information about a Discord channel by its ID. Returns the channel's ID, name, type, topic, and other properties.
discord.discord_send_message Write write 4 Send a message to a Discord channel. Supports text content and rich embeds. Returns the sent message ID and channel ID.
discord.discord_list_messages Read read 4 Get messages from a Discord channel. Supports pagination with before/after and limit. Returns message IDs, content, author info, and timestamps.
discord.discord_list_guilds Read read 3 List guilds the current Discord user is a member of. Returns guild IDs, names, icons, and owner status. Use limit, before, and after for pagination.
discord.discord_get_guild Read read 1 Get information about a Discord guild by its ID. Returns the guild's ID, name, icon, description, member count, and other properties.
discord.discord_get_current_user Read read 0 Retrieve the currently authenticated Discord user. Returns the user's ID, username, discriminator, and avatar. Useful for identifying which account or token is in use.