MCPDiscordChatBot
by ericomack1983
Overview
A Discord chatbot that directly integrates with and queries ChatGPT to answer user questions, styled as Agent Smith.
Installation
python discord_aibot.pyEnvironment Variables
- OPENAI_API_KEY
- DISCORD_TOKEN
Security Notes
CRITICAL: The `openai.Client` initialization explicitly uses `api_key="XXXXXXXX"` instead of `os.getenv('OPENAI_API_KEY')`. While `os.getenv` is commented out, the active line hardcodes a placeholder that could easily become a hardcoded secret if replaced without proper environment variable usage. This is a severe security vulnerability. The Discord token is correctly loaded from environment variables.
Similar Servers
fastmcp
FastMCP is an ergonomic interface for the Model Context Protocol (MCP), providing a comprehensive framework for building and interacting with AI agents, tools, resources, and prompts across various transports and authentication methods.
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
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).
MCP-Agent
An autonomous AI agent designed to discover, connect to, and utilize tools and resources from various Model Context Protocol (MCP) servers to accomplish tasks.