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_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Discord CLIHeadless setup and direct function calls. Discord MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Discord MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Discord.
Claude Code Discord MCP setup for Claude Code. Cursor Discord MCP setup for Cursor. Codex Discord MCP setup for Codex. OpenAI Agents Discord MCP setup for OpenAI Agents SDK. Claude Agent SDK Discord MCP setup for Claude Agent SDK. Vercel AI SDK Discord MCP setup for Vercel AI SDK. LangChain Discord MCP setup for LangChain. LangGraph Discord MCP setup for LangGraph. CrewAI Discord MCP setup for CrewAI. MCP clients Discord MCP setup for Generic MCP Clients.
Discord CLI Matrix
Use these pages for direct Discord CLI workflows in scripts, CI, cron, and agent wrappers.
CI Discord CLI for CI. Cron Jobs Discord CLI for cron jobs. Shell Scripts Discord CLI for shell scripts. Headless Automation Discord CLI for headless automation. Coding Agents Discord CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
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. |