VoiceOS Discord MCP Server
Allows reading and writing Discord messages, including sending messages, replying to messages, listing channels and servers, and authenticating a Discord bot through Composio.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@VoiceOS Discord MCP Server send 'Good morning' to channel general"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
VoiceOS Discord MCP Server
This is a standalone TypeScript MCP server that lets VoiceOS read and write Discord messages through Composio's DISCORDBOT toolkit.
VoiceOS still launches this as a local stdio MCP server, but Discord authentication and token handling are delegated to Composio.
Features
connect_discord_bot: Returns a Composio Connect Link for Discord bot/account authentication.list_discord_servers: Explains guild/server discovery for the Composio-backed bot flow.list_discord_channels: Lists channels for a known Discord guild/server ID.read_discord_messages: Fetches recent messages from a Discord channel ID.send_discord_message: Sends a message to a Discord channel ID.reply_discord_message: Replies to a specific Discord message ID.
Write actions are described clearly in the MCP tool definitions so VoiceOS can show its confirmation pill before sending anything to Discord.
Related MCP server: MCP-Discord
Requirements
Node.js 20+
Composio API key
A stable user ID for local testing
For production VoiceOS, the user ID should be injected automatically from the logged-in VoiceOS account. Users should not manually determine or enter it.
Install
npm installConfigure Environment
Create a local .env file:
COMPOSIO_API_KEY=your_composio_api_key
VOICEOS_USER_ID=local-test-user
COMPOSIO_TOOLKIT=DISCORDBOT
# Recommended/required for reliable DISCORDBOT channel and message tools.
COMPOSIO_AUTH_CONFIG_ID=your_discordbot_auth_config_idCOMPOSIO_AUTH_CONFIG_ID should point to a custom Composio DISCORDBOT auth config that includes the Discord client ID, client secret, bot token, and permission integer. The default Composio-managed OAuth connection can show as ACTIVE while still lacking the bot token needed for server channel/message endpoints, which causes Discord 401 Unauthorized responses.
Optional server IDs for channel discovery:
DISCORD_GUILD_IDS=server_id_1,server_id_2DISCORD_GUILD_IDS is useful because the current Composio-backed MCP maps channel listing to DISCORDBOT_LIST_GUILD_CHANNELS, which requires a guild/server ID.
Run Locally
npm run startConnect to VoiceOS
Open VoiceOS settings.
Go to Custom Integrations.
Click Add.
Name the integration, for example
Discord.Paste the launch command:
/Users/makslas/Desktop/Development-Repos/VoiceOS-Discord-MCP/run-discord-mcp.shClick Connect.
Authentication Flow
After the MCP is connected in VoiceOS, ask:
Connect DiscordVoiceOS should call connect_discord_bot, which opens a Composio Connect Link. If COMPOSIO_AUTH_CONFIG_ID is set, the link is created against that exact auth config instead of Composio's default managed OAuth config.
If the user tries any Discord action before authenticating, the MCP returns an auth-required message. Normal Discord actions intentionally do not open Composio automatically, which prevents auth retry loops.
Discord Bot authentication is required before I can access Discord.
Please explicitly ask: `Connect Discord` when you want me to open the Composio connection page.Tool Details
connect_discord_bot
Creates a Composio Connect Link for DISCORDBOT.
Use this when asking VoiceOS:
Connect Discordlist_discord_servers
If DISCORD_GUILD_IDS is configured, fetches details for those guilds. Otherwise, explains that Composio DISCORDBOT channel listing requires a guild/server ID.
list_discord_channels
Lists Discord channels for a server/guild.
Parameters:
guild_id: Optional Discord server/guild ID. If omitted, the tool usesDISCORD_GUILD_IDS.text_only: Defaults totrue, returning only text-like channels suitable for read/send message workflows.
Use this when asking VoiceOS:
What Discord channels do you have access to in server GUILD_ID?read_discord_messages
Reads recent messages from a channel via DISCORDBOT_LIST_MESSAGES.
Parameters:
channel_id: Discord channel ID.channel_name: Discord channel name, such asgeneral. Used whenchannel_idis omitted.guild_id: Optional Discord server/guild ID used to resolvechannel_name. If omitted, the tool usesDISCORD_GUILD_IDS.limit: Number of messages to fetch, from 1 to 100. Defaults to 10.before: Optional message ID for pagination. Fetches messages before this message.after: Optional message ID for pagination. Fetches messages after this message.around: Optional message ID for pagination. Fetches messages around this message.author_filter: Optional user ID, username, or display-name filter.
send_discord_message
Sends a message to a channel via DISCORDBOT_CREATE_MESSAGE.
Parameters:
channel_id: Discord channel ID.channel_name: Discord channel name, such asgeneral. Used whenchannel_idis omitted.guild_id: Optional Discord server/guild ID used to resolvechannel_name. If omitted, the tool usesDISCORD_GUILD_IDS.content: Exact message content. Max 2000 characters.tts: Whether to send as text-to-speech. Defaults tofalse.allowed_mentions: Mention parsing policy. One ofnone,users,users_and_roles, oreveryone. Defaults tonone.
reply_discord_message
Replies to a specific message via DISCORDBOT_CREATE_MESSAGE with message_reference.
Parameters:
channel_id: Discord channel ID containing the original message.channel_name: Discord channel name, such asgeneral. Used whenchannel_idis omitted.guild_id: Optional Discord server/guild ID used to resolvechannel_name. If omitted, the tool usesDISCORD_GUILD_IDS.message_id: Discord message ID to reply to.content: Exact reply content. Max 2000 characters.allowed_mentions: Mention parsing policy. One ofnone,users,users_and_roles, oreveryone. Defaults tonone.
Discord DM Limitations
Composio DISCORDBOT supports bot-accessible channel messaging, message reads, replies, guild channel listing, and bot-created DMs.
It does not grant broad access to a user's existing personal DMs. Group DM operations require user OAuth2 access tokens with gdm.join and remain constrained by Discord API limitations.
Production VoiceOS User IDs
For production, VoiceOS should pass its internal logged-in user ID to Composio automatically. The user should never manually type a user ID.
Do not use Discord email as the primary Composio user_id:
The connect link requires a user ID before Discord OAuth completes.
Discord email may be unavailable depending on scopes.
Email can change.
One VoiceOS user may eventually connect multiple Discord accounts.
Security Notes
Do not commit
.env.Do not commit
COMPOSIO_API_KEY.Do not commit Discord bot tokens or connected-account credentials.
allowed_mentionsdefaults tononeso generated messages do not accidentally ping users, roles,@everyone, or@here.
Available Tools
6 toolsconnect_discord_botA
Create a Composio Connect Link for authenticating the Discord bot/account connection. Use this whenever the user asks to connect Discord, or whenever another Discord tool reports that authentication is required.
Inputs: no named parameters.
list_discord_channelsA
List Discord channels that the Composio DISCORDBOT connection can discover. Provide a server/guild ID when known. If authentication is missing, return a Composio Connect Link. Use this when the user asks what Discord channels or chats are available.
Inputs: guild_id, text_only.
list_discord_serversC
Explain how to list Discord servers/guilds for this Composio DISCORDBOT integration. DISCORDBOT channel discovery requires a guild/server ID; if authentication is missing, this returns a Composio Connect Link.
Inputs: no named parameters.
read_discord_messagesA
Read recent messages from a specific Discord channel by channel ID. Use this when the user asks what is happening in a Discord channel or wants context from recent Discord messages. This is a read-only action.
Inputs: channel_id, channel_name, guild_id, limit, +4 more.
reply_discord_messageA
Reply to a specific Discord message ID in a channel. This is a write action and should be shown to the user as a VoiceOS confirmation pill before execution. Confirm the channel ID, message ID, and exact reply content with the user before calling this tool.
Inputs: message_id (required), content (required), channel_id, channel_name, +2 more.
send_discord_messageA
Send a new message to a specific Discord channel by channel ID. This is a write action and should be shown to the user as a VoiceOS confirmation pill before execution. Confirm the channel ID and exact message content with the user before calling this tool.
Inputs: content (required), channel_id, channel_name, guild_id, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have distinct purposes (connect, list channels, read, send, reply), but list_discord_servers is ambiguous as it 'explains how to list' rather than listing, potentially overlapping with list_discord_channels.
All tools consistently follow verb_noun pattern (e.g., connect_discord_bot, list_discord_channels), with clear and predictable naming.
6 tools is reasonable for a Discord bot integration covering auth, listing, reading, and writing. Slightly narrow but not excessive.
Covers core operations but list_discord_servers only explains rather than actually retrieving servers, creating a functional gap. Missing update/delete message and server management tools.
Maintenance
Related MCP Connectors
Connect a user's Google Calendar, Gmail, Drive, Notion or Slack so your agent reads their data.
Carbon Voice MCP serves as a bridge that connects AI assistants like ChatGPT, Claude, and Cursor to a user's Carbon Voice account, turning voice messages and conversations into a private, on-demand knowledge base. It provides 28 specialized tools for comprehensive voice messaging management, including creating and sending messages, accessing conversation history with instant transcription, running AI actions (summarization, TLDR generation, meeting notes), and managing workspace collaboration through folders, contacts, and team communications.
Connect AI agents to 1000+ apps with managed authentication and tool-calling.
Connect assistants to your workspace knowledge, skills, and work tools.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with a Discord account to read channels, send and manage messages, handle DMs and reactions, search messages, and update status.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with the Discord platform, including managing servers, channels, roles, members, messages, forums, reactions, and webhooks through Discord bot capabilities.1,560 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with the Discord platform, including servers, members, roles, channels, categories, forum posts, messages, reactions, and webhooks. It supports logging in a bot, reading and searching messages, and creating, editing, or deleting Discord resources through natural language.1,560 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with the Discord platform by managing servers, channels, roles, forum posts, messages, reactions, and webhooks through a Discord bot.1,560 npmMIT