3D Cartoon Generator & File System MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/falahgs/mcp-3d-style-cartoon-gen-server.git
cd mcp-3d-style-cartoon-gen-server
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "GEMINI_API_KEY=${GEMINI_API_KEY}" -e "ALLOWED_DIRECTORIES=${ALLOWED_DIRECTORIES}" 3d-cartoon-generator -- node "<FULL_PATH_TO_MCP_3D_STYLE_CARTOON_GEN_SERVER>/dist/index.js"

Replace <FULL_PATH_TO_MCP_3D_STYLE_CARTOON_GEN_SERVER>/dist/index.js with the actual folder you prepared in step 1.

Required:GEMINI_API_KEYALLOWED_DIRECTORIES
README.md

3D-style cartoon image generation and secure file system operations

MCP Combined Server: 3D Cartoon Generator & File System Tools

A professional-grade server that provides two major capabilities:

  1. High-quality 3D-style cartoon image generation using Google's Gemini AI
  2. Secure file system operations for reading, writing, and managing files

3D Cartoon Generator Demo

🌟 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

  1. Clone the repository:
git clone https://github.com/falahgs/mcp-3d-style-cartoon-gen-server.git
cd mcp-3d-style-cartoon-gen-server
  1. Install dependencies:
npm install
  1. Configure environment: Create a .env file in the root directory:
GEMINI_API_KEY=your_api_key_here
ALLOWED_DIRECTORIES=/path/to/allowed/dir1,/path/to/allowed/dir2
  1. Build the project:
npm run build

🔧 Configuring Claude Desktop with MCP Server

To integrate this combined server with Claude Desktop:

  1. Locate the Configuration File:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add the following configuration:

{
  "mcpServers": {
    "mcp-3d-cartoon-generator": {
      "command": "node",
      "args": [
        "path/to/your/build/index.js"
      ],
      "env": {
        "GEMINI_API_KEY": "your_gemini_api_key_here",
        "IS_REMOTE": "true",
        "SAVE_TO_DESKTOP": "true",
        "DETECT_OS_PATHS": "true",
        "ALLOWED_DIRECTORIES": "C:\\Users\\YourUsername\\Desktop,C:\\Users\\YourUsername\\Documents",
        "DEBUG": "false"
      }
    }
  }
}

Windows PowerShell Helper Script

For Windows users, you can use the included fix_claude_config.ps1 script to automatically configure Claude Desktop:

  1. Edit the script to update the path to your server build and your Gemini API key
  2. Run the script in PowerShell:
powershell -ExecutionPolicy Bypass -File .\fix_claude_config.ps1

This will create or update the configuration file with proper encoding and settings.

🚀 Available Tools

1. Image Generation Tool

{
  "name": "generate_3d_cartoon",
  "description": "Generates a 3D style cartoon image for kids based on the given prompt",
  "inputSchema": {
    "type": "object",
    "properties": {
      "prompt": {
        "type": "string",
        "description": "The prompt describing the 3D cartoon image to generate"
      },
      "fileName": {
        "type": "string",
        "description": "The name of the output file (without extension)"
      }
    },
    "required": ["prompt", "fileName"]
  }
}

2. File System Tools

Read File
{
  "name": "read_file",
  "description": "Read the contents of a file",
  "inputSchema": {
    "type": "object",
    "properties": {
      "path": {
        "type": "string",
        "description": "Path to the file to read"
      }
    },
    "required": ["path"]
  }
}
Write File
{
  "name": "write_file",
  "description": "Write content to a file",
  "inputSchema": {
    "type": "object",
    "properties": {
      "path": {
        "type": "string",
        "description": "Path to the file to write"
      },
      "content": {
        "type": "string",
        "description": "Content to write to the file"
      }
    },
    "required": ["path", "content"]
  }
}
List Directory
{
  "name": "list_directory",
  "description": "List the contents of a directory",
  "inputSchema": {
    "type": "object",
    "properties": {
      "path": {
        "type": "string",
        "description": "Path to the directory to list"
      }
    },
    "required": ["path"]
  }
}
Create Direc

Tools (4)

generate_3d_cartoonGenerates a 3D style cartoon image for kids based on the given prompt
read_fileRead the contents of a file
write_fileWrite content to a file
list_directoryList the contents of a directory

Environment Variables

GEMINI_API_KEYrequiredAPI key for Google Gemini AI
ALLOWED_DIRECTORIESrequiredComma-separated list of directories allowed for file operations

Configuration

claude_desktop_config.json
{"mcpServers": {"mcp-3d-cartoon-generator": {"command": "node", "args": ["path/to/your/build/index.js"], "env": {"GEMINI_API_KEY": "your_gemini_api_key_here", "IS_REMOTE": "true", "SAVE_TO_DESKTOP": "true", "DETECT_OS_PATHS": "true", "ALLOWED_DIRECTORIES": "C:\\Users\\YourUsername\\Desktop,C:\\Users\\YourUsername\\Documents", "DEBUG": "false"}}}}

Try it

Generate a 3D cartoon image of a friendly robot playing with a puppy and save it as robot_puppy.png
List the files in my Documents folder to see what projects I have
Read the contents of my project_notes.txt file
Write a new summary of my current project to project_summary.txt

Frequently Asked Questions

What are the key features of 3D Cartoon Generator & File System?

High-quality 3D-style cartoon image generation via Google Gemini. Secure file system operations including read, write, and directory listing. Automatic image preview in default browser. Cross-platform support with intelligent OS path detection. Restricted directory access for enhanced security.

What can I use 3D Cartoon Generator & File System for?

Creating custom 3D-style illustrations for children's stories or educational materials. Managing local project files and documentation directly through Claude. Automating the generation and organization of creative assets in specific local folders. Quickly reading and updating text-based configuration or note files.

How do I install 3D Cartoon Generator & File System?

Install 3D Cartoon Generator & File System by running: git clone https://github.com/falahgs/mcp-3d-style-cartoon-gen-server.git && cd mcp-3d-style-cartoon-gen-server && npm install && npm run build

What MCP clients work with 3D Cartoon Generator & File System?

3D Cartoon Generator & File System works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep 3D Cartoon Generator & File System docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare