Skip to main content

MCP server that gives AI assistants deterministic Mandelbrot image-generation tools

Project description

openmandel

openmandel is an MCP server that gives AI assistants deterministic Mandelbrot image-generation tools.

Seahorse Valley in electric blue
Seahorse Valley deep zoom, electric blue, smooth coloring
Boundary region in viridis
Boundary region, viridis, escape-time coloring
Triple spiral in inferno
Triple spiral, inferno, smooth coloring
Elephant Valley in gold fire
Elephant Valley organic coral, gold fire, smooth coloring

Install from source

pip install openmandel
# or
uvx openmandel

LM Studio setup

Add to mcp.json:

{
  "mcpServers": {
    "openmandel": {
      "command": "uvx",
      "args": ["openmandel"],
      "env": {
        "OPENMANDEL_OUTPUT_DIR": "~/Pictures/openmandel"
      }
    }
  }
}

If LM Studio cannot find uvx, run which uvx and use the absolute path as command.

Claude Desktop setup

Same setup in claude_desktop_config.json:

{
  "mcpServers": {
    "openmandel": {
      "command": "uvx",
      "args": ["openmandel"],
      "env": {
        "OPENMANDEL_OUTPUT_DIR": "~/Pictures/openmandel"
      }
    }
  }
}

Tools

Tool Description
render_mandelbrot_plan Render one deterministic Mandelbrot image from explicit parameters (use return_base64 for inline display)
create_mandelbrot_variations Generate multiple deterministic variations with perturbations (use return_base64 for inline display)
inspect_mandelbrot_viewport Preview viewport bounds, iteration guidance, and cost before rendering
list_mandelbrot_presets List known Mandelbrot region presets with coordinates
list_mandelbrot_palettes List valid palette names with style guidance
generate_mandelbrot_gallery Generate a static HTML gallery from generated images
get_openmandel_config Show current server limits and output directory settings

CLI

openmandel          # Start MCP stdio server
openmandel serve    # Same
openmandel render plan.json    # Render from JSON plan file
openmandel presets             # List presets
openmandel palettes            # List palettes
openmandel gallery ~/Pictures/openmandel  # Generate gallery HTML

Example prompts

Use openmandel to inspect the seahorse_valley viewport at zoom 100000 and 1024x1024. Use the returned iteration guidance to choose a max_iter. Then render the image with electric_blue palette and smooth coloring.

Use openmandel to list the available Mandelbrot presets and palettes. Then render a 1024x1024 icy blue spiral image using a good preset for intricate spirals.

Use openmandel to create four Mandelbrot variations that look like molten gold recursive suns in a black void. Use a nested or recursive preset if available, and create a contact sheet.

Output and security

  • All output is written under ~/Pictures/openmandel (configurable via OPENMANDEL_OUTPUT_DIR).
  • The server will not write outside the output root unless OPENMANDEL_ALLOW_ARBITRARY_OUTPUT_DIRS=true.
  • No network access required for normal operation. No telemetry.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openmandel-0.2.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openmandel-0.2.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file openmandel-0.2.0.tar.gz.

File metadata

  • Download URL: openmandel-0.2.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openmandel-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7050f23f3580ca2d34f26eb36935900516ceb8fa41e064ef2d96a02cd0222ecf
MD5 76a34e0dd036a79b05cc00d4c861ca8e
BLAKE2b-256 91fd51554f447137a10ed434418d463ff712c85788767f8b639036e5fc596459

See more details on using hashes here.

File details

Details for the file openmandel-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: openmandel-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openmandel-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10d2490e3341d52941030ec00eae814e7be1101597300027a3460d8d8149ff29
MD5 cde214d46fcb1e19d0777510b272402d
BLAKE2b-256 1319f3dd8511e5278a2ab1c8ac020defe7664f6fed5cf39a0be3b641f5323f7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page