TheFinalDiscordMCP
Verified Safeby DawnReaverWOWS
Overview
A Discord bot for AI-powered chat, voice TTS, World of Warships stats, moderation, server management, and Model Context Protocol (MCP) integration for AI assistants.
Installation
npm startEnvironment Variables
- DISCORD_TOKEN
- DISCORD_GUILD_ID
- OPENROUTER_API_KEY
- BOT_CREATOR_ID
- BOT_CREATOR_NAME
- BOT_NOTIFY_CHANNEL_ID
- WARGAMING_APP_ID
- HTTP_ONLY
- MCP_HTTP_PORT
- PORT
- CORS_ORIGINS
- CORS_ALLOW_ALL
Security Notes
The project demonstrates good security practices, especially in handling external inputs for file paths and URLs. The `read_images` function prevents SSRF by strictly validating and reconstructing Discord CDN URLs. File upload paths are restricted to allowed directories. Network calls to external APIs (e.g., Wargaming, Pollinations.AI) use whitelisted domains. CORS is configured to avoid wildcard origins in non-development environments, explicitly allowing specified origins or private VCN IPs. Command arguments are sanitized, and rate limiting is in place. Overall, a commendable effort in security for a bot interacting with external services and user content. Some areas like more granular input validation for all Discord IDs passed to core Discord.js functions (though Discord.js often handles this internally) could further enhance robustness.
Similar Servers
ncp
NCP acts as a universal adapter and orchestrator for Model Context Protocol (MCP) servers and tools. It provides a unified interface for discovery, execution, and management of diverse tools (local CLI, HTTP APIs, internal plugins/Photons, AI skills) through natural language and structured code interaction, enabling AI agents to interact with the broader digital ecosystem.
mcp-discord
Enables AI assistants to interact with the Discord platform by providing a set of Discord-related functionalities via the Model Context Protocol (MCP).
advanced-homeassistant-mcp
A powerful, secure, and extensible Model Context Protocol (MCP) server that enables AI assistants like Claude, GPT, and Cursor to seamlessly interact with Home Assistant. Control your lights, climate, automations, and more through natural language commands.
git-netai
Provides a unified, asynchronous Model Context Protocol (MCP) server for managing multi-platform network infrastructure (routers, firewalls, WiFi, monitoring, data centers) via a single AI-accessible API.