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 a Python framework for building and interacting with Model Context Protocol (MCP) servers. It provides client and server capabilities, enabling the creation of AI agents and services through definable tools, resources, and prompts. It supports various transports, authentication methods, logging, and background task execution, with strong integration for OpenAPI specifications.
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
An MCP server that enables AI assistants to interact with the Discord platform by providing tools for communication, channel management, and server information retrieval.
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.