Skip to main content
Glama
molanko-mcp-avatar-generator

molanko-mcp-avatar-generator

by lanlan3292

molanko-mcp-avatar-generator

MCP server for molanko-avatar-generator.

The server exposes one tool:

  • generate_avatar — generate a Molanko Avatar from a provided image or a Minecraft player name/UUID, then return the generated PNG as an MCP image result.

A source is required: provide exactly one of image or minecraftPlayer.

Run

npm install
npm start

The server uses MCP stdio transport, so it can be launched by MCP clients that support local stdio servers.

Related MCP server: mcp-xmorf

Tool: generate_avatar

Source

Provide exactly one:

  • image — MCP-style image object: { "type": "image", "data": "<base64>", "mimeType": "image/png" }

  • minecraftPlayer — Minecraft username or UUID, with or without UUID hyphens. The server resolves the current skin using Mojang's profile and session APIs, then downloads the skin directly from the texture URL supplied by Mojang.

Examples:

{ "minecraftPlayer": "Notch" }
{ "minecraftPlayer": "069a79f4-44e9-4726-a5be-fca90e38aaf5" }

If both image and minecraftPlayer are supplied, the request is rejected rather than silently choosing one.

Options

  • scale — nearest-neighbor output scale

  • outlineMode — outline radius; 0 disables the outline

  • outlineColor — auto, auto_darker, auto_lighter, or a hex color

  • bgColor — auto, auto_lighter, auto_darker, or a hex color

  • fillBackground — whether to fill the output background

  • upscale48 — render the 32x32 avatar centered on a 48x48 canvas

  • averageColor — optional override for the color used by automatic outline/background colors; use auto, #RRGGBB, or #RGB

averageColor is not a separate tool. It overrides the generator's automatically calculated average color. If omitted or set to auto, the underlying generator calculates the average color from the source skin. A hex value is parsed into { r, g, b } and passed to molanko-avatar-generator as averageColor.

The result is returned as an MCP image content item containing a PNG.

Minecraft player resolution

minecraftPlayer follows the same basic approach as the Android avatar generator: a UUID is normalized directly; a username is resolved through api.mojang.com/users/profiles/minecraft/{name}; the UUID is then resolved through Mojang's session profile API to obtain the player's textures property and skin URL. No third-party skin-rendering or skin-mirroring service is required.

The server reports useful failures such as invalid player identifiers, player not found, missing skin texture, Mojang rate limits, Mojang server errors, and network/download errors.

Architecture

This repository is intentionally a thin MCP adapter. Minecraft player resolution and avatar rendering happen server-side, while the actual avatar rendering remains in molanko-avatar-generator.

Available Tools

1 tool
generate_avatarGenerate Molanko AvatarA

Generate a Molanko Avatar. Provide exactly one source: image or minecraftPlayer. minecraftPlayer accepts a Minecraft username or UUID (with or without hyphens); the server resolves the current skin through Mojang APIs. Returns the generated PNG as an MCP image result.

Inputs: image, scale, bgColor, upscale48, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only a single tool, there is no potential for confusion or overlap. The tool's purpose is clearly defined and unambiguous.

    Naming Consistency5/5

    The single tool uses a clear verb_noun naming convention (generate_avatar) which is consistent and self-explanatory, even with only one tool.

    Tool Count3/5

    The server has just one tool, which feels thin for a typical MCP server. However, it may be appropriate for the narrow scope of avatar generation, so it borders on acceptable.

    Completeness5/5

    The tool covers the domain comprehensively by accepting both image and Minecraft player sources, and there are no obvious missing operations for avatar generation.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers