Generates high-quality 3D-style cartoon images based on text prompts using Google Gemini AI, featuring instant browser previews and local storage.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@3D Cartoon Generator & File System MCP ServerGenerate a 3D cartoon of a friendly dragon and save it as dragon_art"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Combined Server: 3D Cartoon Generator & File System Tools
A professional-grade server that provides two major capabilities:
High-quality 3D-style cartoon image generation using Google's Gemini AI
Secure file system operations for reading, writing, and managing files

🌟 Features
Image Generation
3D Cartoon Generation: Creates high-quality 3D-style cartoon images
Child-Friendly Design: Focuses on colorful, playful, and engaging visuals
Instant Preview: Automatically opens generated images in your default browser
Local Storage: Saves images and previews in an organized output directory
File System Operations
Secure File Access: Path validation and security checks
Read/Write Files: Read and write text file contents
Directory Operations: List, create, and navigate directories
File Search: Find files matching patterns
System Features
Professional Configuration: Robust error handling and controlled logging
Cross-Platform Support: Intelligent file path handling for Windows, macOS, and Linux
Smart OS Detection: Automatically finds the best save location for each operating system
Security Controls: Restricted directory access through configuration
🛠️ Technical Stack
Core Framework: Model Context Protocol (MCP) SDK
AI Integration: Google Generative AI (Gemini)
Runtime: Node.js v14+
Language: TypeScript
Package Manager: npm
📋 Prerequisites
Node.js (v14 or higher)
Google Gemini API key
TypeScript
⚙️ Installation
Clone the repository:
Install dependencies:
Configure environment: Create a
.envfile in the root directory:
Build the project:
🔧 Configuring Claude Desktop with MCP Server
To integrate this combined server with Claude Desktop:
Locate the Configuration File:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the following configuration:
Windows PowerShell Helper Script
For Windows users, you can use the included fix_claude_config.ps1 script to automatically configure Claude Desktop:
Edit the script to update the path to your server build and your Gemini API key
Run the script in PowerShell:
This will create or update the configuration file with proper encoding and settings.
🚀 Available Tools
1. Image Generation Tool
2. File System Tools
Read File
Write File
List Directory
Create Directory
Search Files
📄 Example Usage
Image Generation Examples
File System Examples
🔒 Security Features
The server implements several security measures:
Path Validation: All file paths are validated to ensure they are within allowed directories.
Allowed Directories: Only directories explicitly set in the
ALLOWED_DIRECTORIESenvironment variable can be accessed.Symlink Protection: Prevents access to directories outside the allowed scope via symlinks.
Controlled Logging: Debug logs are disabled by default to prevent information leakage.
⚙️ Configuration Options
Environment Variables
Variable | Description | Default |
| Google Gemini API key for image generation | (Required) |
| Comma-separated list of allowed file system paths | User's home dir, current dir |
| Run in remote mode without browser opening | false |
| Force saving to desktop directory | false |
| Enable OS-specific path detection | true |
| Enable verbose debug logging | false |
🛠️ Troubleshooting
Common Issues:
JSON Parsing Errors in Claude:
Ensure
DEBUGis set to "false" to prevent logs from interfering with JSON communicationCheck for proper JSON formatting in the Claude configuration
File Access Denied:
Verify that the paths you're trying to access are included in
ALLOWED_DIRECTORIESCheck file permissions on the target files/directories
Images Not Saving:
Set
SAVE_TO_DESKTOPto "true" to ensure images save to the desktopCheck desktop path detection in the server logs (enable DEBUG temporarily)
📄 License
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.