Skip to main content
Glama

AI Watercolor Generator MCP

npm version CI MCP Registry License: MIT

Create watercolor art from text or transform local images with AI from any MCP client that supports local stdio servers.

This package is the official local MCP server for AI Watercolor Generator. It is a small, open-source client for the production API: generation, storage, credits, rate limits, and task processing remain on the hosted service.

Features

  • Generate watercolor artwork from a text prompt.

  • Upload a local JPEG, PNG, or WebP image for editing.

  • Transform uploaded images into watercolor paintings.

  • Poll asynchronous tasks until an output is ready.

  • Use the same account and credits as the REST API and hosted MCP server.

Related MCP server: @genoooool/mcp-image-generator

Requirements

Keep your API key private. Do not commit it to a repository or paste it into an issue.

Quick start

Run the MCP server through npm without a global installation:

AIWATERCOLOR_API_KEY=YOUR_AIWATERCOLOR_API_KEY \
  npx -y @ai-watercolor-generator/mcp

The process communicates over stdio, so it is normally launched by an MCP client rather than used interactively.

Client configuration

Codex

Codex CLI, the Codex IDE extension, and the ChatGPT desktop app share MCP configuration on the same Codex host. Add this to ~/.codex/config.toml and provide AIWATERCOLOR_API_KEY in the environment that starts Codex:

[mcp_servers.ai_watercolor_generator]
command = "npx"
args = ["-y", "@ai-watercolor-generator/mcp"]
env_vars = ["AIWATERCOLOR_API_KEY"]

Restart the client, then run codex mcp list or use /mcp to verify the connection. See the official Codex MCP documentation.

Cursor

Add this server to your project .cursor/mcp.json or global MCP configuration:

{
  "mcpServers": {
    "ai-watercolor-generator": {
      "command": "npx",
      "args": ["-y", "@ai-watercolor-generator/mcp"],
      "env": {
        "AIWATERCOLOR_API_KEY": "YOUR_AIWATERCOLOR_API_KEY"
      }
    }
  }
}

See the Cursor MCP documentation.

Claude Desktop and other JSON-based clients

Use the same stdio configuration in the client's local MCP settings:

{
  "mcpServers": {
    "ai-watercolor-generator": {
      "command": "npx",
      "args": ["-y", "@ai-watercolor-generator/mcp"],
      "env": {
        "AIWATERCOLOR_API_KEY": "YOUR_AIWATERCOLOR_API_KEY"
      }
    }
  }
}

Restart the client after saving. Claude Desktop may present local MCP servers through its Extensions interface; see Anthropic's local MCP server guide for the current setup flow.

Tools

Tool

Purpose

generate_watercolor

Submit an asynchronous text-to-watercolor task

upload_watercolor_input

Upload a local JPEG, PNG, or WebP file up to 10 MiB

edit_watercolor

Submit an asynchronous watercolor edit using uploaded image URLs

get_watercolor_task

Read task status, outputs, or failure details

Generate from text

Call generate_watercolor with a prompt. Optional fields are model, aspect_ratio, resolution, and idempotency_key.

{
  "prompt": "A red cottage beside a quiet lake, soft wet-on-wet washes",
  "model": "watercolor-lite",
  "aspect_ratio": "4:3",
  "resolution": "1k"
}

The tool returns a task with status queued or processing. Call get_watercolor_task every 2–5 seconds until the status is succeeded, failed, or canceled.

Edit a local image

First call upload_watercolor_input with an explicit local file path:

{
  "file_path": "/absolute/path/to/source-image.png"
}

Then pass the returned url to edit_watercolor:

{
  "prompt": "Preserve the composition with soft transparent watercolor washes",
  "input_images": [
    "https://cdn.aiwatercolorgenerator.com/api-inputs/.../upload.png"
  ],
  "model": "watercolor-lite",
  "aspect_ratio": "auto",
  "resolution": "1k"
}

The upload tool reads only the path explicitly supplied in the tool call. It does not scan directories or expand glob patterns. The image is uploaded to AI Watercolor Generator's trusted storage and is then processed by the hosted API.

Models and credits

The API currently supports watercolor-lite, nano-banana-2, nano-banana-pro, and gpt-image-2. Model, resolution, and operation affect credit cost. Failed or canceled tasks receive the refund defined by the hosted API.

See the API documentation for current models, credit costs, limits, error codes, and schemas.

How it relates to the hosted MCP server

The official MCP Registry entry is com.aiwatercolorgenerator/watercolor and supports two installation styles:

  • Hosted Streamable HTTP: https://www.aiwatercolorgenerator.com/api/mcp

  • Local stdio: this npm package

Use the hosted endpoint when your client supports authenticated Streamable HTTP. Use this local package when you need stdio compatibility or want an MCP tool to upload a local image path.

Security and privacy

  • The API key is read from AIWATERCOLOR_API_KEY and is never intentionally logged.

  • Local images are sent to the hosted upload API when you invoke upload_watercolor_input.

  • Tool calls consume account credits and are subject to API rate and concurrency limits.

  • Review file paths and tool calls before approving them in your MCP client.

  • Report vulnerabilities according to SECURITY.md.

Development

pnpm install
pnpm format:check
pnpm typecheck
pnpm test
pnpm pack --dry-run

The test suite mocks HTTP requests and includes a real subprocess handshake against the built stdio executable. No production API key is needed for normal development tests.

License

MIT

Available Tools

4 tools
edit_watercolorBInspect

Transform uploaded images into watercolor artwork as an asynchronous task.

Inputs: prompt (required), input_images (required), model, resolution, +2 more.

generate_watercolorBInspect

Create watercolor artwork from a text prompt as an asynchronous task.

Inputs: prompt (required), model, resolution, aspect_ratio, +1 more.

get_watercolor_taskCInspect

Get the current status, output, or error for a watercolor task.

Inputs: task_id (required).

upload_watercolor_inputBInspect

Upload a local JPEG, PNG, or WebP file for watercolor editing.

Inputs: file_path (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: text-to-watercolor generation, input image upload, image-to-watercolor editing, and task status retrieval. There is no overlap or ambiguity between the tools.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern: generate_, upload_, edit_, get_. The domain term 'watercolor' appears in every name, reinforcing a clear and predictable convention.

    Tool Count5/5

    With only 4 tools, the server is tightly scoped to its purpose. Each tool is necessary for the core workflow of generating or editing watercolor art asynchronously, and none are redundant.

    Completeness4/5

    The tool set covers the full lifecycle for both generation paths: create via prompt, upload source, edit, and check status. Minor gaps such as canceling a task or listing all tasks prevent a perfect score, but the core workflows are not blocked.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Image tools for coding agents: generate from text, edit one reference image, remove backgrounds, upscale 2x, and create reference-based sprite animations. The MCP server, CLI and REST API share one key, credit balance and request history. Needs a DreamLayer API key and paid credits; sprite sheets are beta.
      7
      51 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to generate images from text prompts and edit existing PNG/JPEG files with natural-language instructions by driving a local ComfyUI instance running Qwen Image models. Supports aspect ratios, exact pixel dimensions, batch counts, and reproducible seeds, with matching capabilities exposed through a Python CLI.
      MIT