by falahgs
A professional-grade server that provides two major capabilities:
git clone https://github.com/falahgs/mcp-3d-style-cartoon-gen-server.git cd mcp-3d-style-cartoon-gen-server
npm install
.env
file in the root directory:GEMINI_API_KEY=your_api_key_here ALLOWED_DIRECTORIES=/path/to/allowed/dir1,/path/to/allowed/dir2
npm run build
To integrate this combined server with Claude Desktop:
Locate the Configuration File:
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Add the following configuration:
*Configuration content*
For Windows users, you can use the included fix_claude_config.ps1
script to automatically configure Claude Desktop:
powershell -ExecutionPolicy Bypass -File .\fix_claude_config.ps1
This will create or update the configuration file with proper encoding and settings.
*Configuration content*
*Configuration content*
*Configuration content*
*Configuration content*
*Configuration content*
*Configuration content*
// Generate a 3D cartoon { "name": "generate_3d_cartoon", "arguments": { "prompt": "A friendly robot playing with a cat", "fileName": "robot_cat_play" } }
// Read a file { "name": "read_file", "arguments": { "path": "C:/Users/YourUsername/Documents/example.txt" } } // Write a file { "name": "write_file", "arguments": { "path": "C:/Users/YourUsername/Documents/new-file.txt", "content": "This is the content of the file." } } // List directory contents { "name": "list_directory", "arguments": { "path": "C:/Users/YourUsername/Documents" } } // Create a directory { "name": "create_directory", "arguments": { "path": "C:/Users/YourUsername/Documents/new-folder" } } // Search for files { "name": "search_files", "arguments": { "path": "C:/Users/YourUsername/Documents", "pattern": "*.txt", "excludePatterns": ["temp*", "*.tmp"] } }
The server implements several security measures:
ALLOWED_DIRECTORIES
environment variable can be accessed.Variable | Description | Default |
---|---|---|
GEMINI_API_KEY | Google Gemini API key for image generation | (Required) |
ALLOWED_DIRECTORIES | Comma-separated list of allowed file system paths | User's home dir, current dir |
IS_REMOTE | Run in remote mode without browser opening | false |
SAVE_TO_DESKTOP | Force saving to desktop directory | false |
DETECT_OS_PATHS | Enable OS-specific path detection | true |
DEBUG | Enable verbose debug logging | false |
JSON Parsing Errors in Claude:
DEBUG
is set to "false" to prevent logs from interfering with JSON communicationFile Access Denied:
ALLOWED_DIRECTORIES
Images Not Saving:
SAVE_TO_DESKTOP
to "true" to ensure images save to the desktopContributions are welcome! Please feel free to submit a Pull Request.
No version information available