Discord MCP Server
Discord MCP Server
A MCP server that allows you to send messages to Discord channels directly from Cursor.
Features
Send messages to Discord channels via webhooks
Integrated with Cursor IDE
TypeScript implementation with proper error handling
Setup Instructions
1. Install Dependencies
npm install2. Build the Server
npm run server:build3. Configure Cursor
Open Cursor
Go to Settings (Cmd/Ctrl + ,)
Search for "MCP"
Add the following configuration to your Cursor settings:
{
"mcpServers": {
"discord-mcp": {
"command": "node",
"args": ["dist/index.js"],
"env": {
"DISCORD_WEBHOOK_URL": "YOUR_DISCORD_WEBHOOK_URL"
}
}
}
}4. Restart Cursor
After adding the configuration, restart Cursor for the changes to take effect.
Usage
Once configured, you can use the Discord MCP server in Cursor by:
Opening the command palette (Cmd/Ctrl + Shift + P)
Typing "MCP" to see available MCP tools
Using the
send-messagetool to send messages to your Discord channel
Discord Webhook Setup
Go to your Discord server
Right-click on the channel where you want to send messages
Select "Edit Channel"
Go to "Integrations" tab
Click "Create Webhook"
Copy the webhook URL
Replace
YOUR_DISCORD_WEBHOOK_URLin the configuration with your webhook URL
Development
npm run server:dev- Run the server in development modenpm run server:build- Build the TypeScript codenpm run server:inspect- Inspect the MCP server using the MCP inspector
Security Note
Keep your Discord webhook URL secure and don't share it publicly. Consider using environment variables for production use.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yogeshbuilds/Discord_MCP_Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server