AI-Diagram-Prototype-Generator-MCP-Server-
Verified Safeby eslaim
Overview
The MCP server generates various AI-powered diagrams (architecture, flowcharts, user journey/story maps, empathy maps, pyramid diagrams), infographics (Feynman learning method, posters), and UI/UX prototypes (general HTML, Apple Mobile, WeChat MiniApp) in DrawIO XML, HTML, SVG, or JSON formats based on user descriptions.
Installation
uv --directory . run mcp_server.pyEnvironment Variables
- PROVIDER
- ZHIPUAI_API_KEY
- ZHIPUAI_MODEL
- ZHIPUAI_MODEL_MAX_TOKENS
- OPENAI_API_KEY
- OPENAI_BASE_URL
- OPENAI_MODEL
- OPENAI_MODEL_MAX_TOKENS
- GEMINI_API_KEY
- GEMINI_BASE_URL
- GEMINI_MODEL
- GEMINI_MODEL_MAX_TOKENS
Security Notes
API keys for AI providers are loaded from environment variables (.env file), which is a secure practice. The server includes functions (`svg_clear`, `xml_drawio_clear`, `json_clear`, `html_clear`) to sanitize AI-generated output, mitigating potential injection risks if output were rendered directly. No use of `eval` or obvious malicious patterns was found. The primary security consideration is the secure handling of AI API keys by the user.
Similar Servers
arcade-mcp
Provides a framework and pre-built toolkits for integrating Large Language Models (LLMs) with various external services and databases, enabling AI agents to interact with the real world.
mcp-mermaid
Generate Mermaid diagrams and charts from textual syntax, primarily for AI models or documentation platforms to visualize information dynamically.
claude-prompts
This server provides a hot-reloadable prompt engine with chains, quality gates, and structured reasoning for AI assistants, enhancing control over Claude's behavior in prompt workflows.
diagram-mcp-server
Generates infrastructure diagrams from Python code or Infrastructure-as-Code (IaC) files across various cloud providers and on-premises environments.