MCP server for Discord bot integration
## Discord MCP Server: Community Communication The **Discord MCP Server** integrates Discord's communication platform into Google Antigravity. This enables building bots, managing servers, and automating community interactions for developer communities and gaming platforms. ### Why Discord MCP? Discord powers developer communities: - **Voice & Text**: Rich communication options - **Bots**: Powerful automation capabilities - **Servers**: Organize large communities - **Integrations**: Connect external services - **Developer Friendly**: Excellent API support ### Key Features #### 1. Send Messages ```python import discord client = discord.Client() @client.event async def on_ready(): channel = client.get_channel(123456789) await channel.send("Bot is online and ready!") @client.event async def on_message(message): if message.content.startswith("!status"): await message.channel.send("All systems operational :white_check_mark:") ``` #### 2. Slash Commands ```python from discord import app_commands @tree.command(name="deploy", description="Trigger deployment") async def deploy(interaction: discord.Interaction, env: str): await interaction.response.send_message(f"Deploying to {env}...") # Trigger deployment logic await interaction.followup.send("Deployment complete!") ``` #### 3. Embeds and Rich Content ```python embed = discord.Embed( title="Build Status", description="Latest CI/CD results", color=discord.Color.green() ) embed.add_field(name="Tests", value="✅ 142 passed") embed.add_field(name="Coverage", value="87%") embed.set_footer(text="Build #1234") await channel.send(embed=embed) ``` ### Configuration ```json { "mcpServers": { "discord": { "command": "npx", "args": ["-y", "@anthropic/mcp-discord"], "env": { "DISCORD_TOKEN": "your-bot-token", "DISCORD_GUILD_ID": "your-server-id" } } } } ``` ### Use Cases **Community Bots**: Build helpful bots for developer communities. **CI/CD Alerts**: Post build results to Discord channels. **Support Automation**: Automate common support responses. The Discord MCP Server enables Discord automation from Antigravity.
{
"mcpServers": {
"discord": {
"mcpServers": {
"discord": {
"env": {
"DISCORD_BOT_TOKEN": "YOUR_BOT_TOKEN"
},
"args": [
"-y",
"discord-mcp"
],
"command": "npx"
}
}
}
}
}