Skip to main content
Glama

Icon Generator MCP Server

Generate clean, production-ready SVG icons from natural language prompts. Zero dependencies, supports PNG visual context for better consistency.

Installation

npm install -g icon-generator-mcp

Add to your MCP configuration:

{
  "mcpServers": {
    "icon-generator": {
      "command": "icon-generator-mcp"
    }
  }
}

Related MCP server: Svg/icons MCP

Quick Start

Text-Only Generation

Create a minimalist home icon

With Reference Files

Create an icon based on this design (attach PNG/SVG)

With Style

Create a user profile icon in black-white-flat style

Tool Parameters

Parameter

Type

Required / Optional

Description

prompt

string

✅

Description of the desired icon

reference_paths

array

⚪

PNG/SVG reference files

style

string

⚪

Style preset

output_name

string

⚪

Custom filename

output_path

string

⚪

Custom output directory

Features

  • MCP‑native tool: Exposes generate_icon with a clear JSON schema

  • Visual Context (PNG/SVG): Includes PNG or SVG references for pattern matching.

  • Smart Detection: Automatic multimodal capability detection

  • Smart Output: Suggests a filename from the prompt

  • Style Presets: Optional style to enforce consistent icon families (e.g., black-white-flat).

  • Robust Validation & Errors: Checks file existence and formats (PNG/SVG). Clear and actionable errors guide you to alternatives.

  • Zero Dependencies: Pure Node.js (18+) server.

Requirements

  • Node.js 18+

  • MCP-compatible LLM environment

Contributing

  1. Fork the repository

  2. Create a feature branch (git checkout -b feature/AmazingFeature)

  3. Commit your changes (git commit -m 'Add some AmazingFeature')

  4. Push to the branch (git push origin feature/AmazingFeature)

  5. Open a Pull Request

License

MIT

Available Tools

2 tools
prepare_icon_contextB

Prepares expert prompt and context for AI icon generation. Returns structured generation instructions.

Inputs: prompt (required), style, reference_paths.

save_iconB

Saves generated SVG icon to file with smart naming and path resolution.

Inputs: svg (required), filename (required), output_name, output_path.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools occupy clearly separate stages: prepare_icon_context produces prompt/instructions, while save_icon writes the finished SVG to disk. There is no overlap in purpose or input domain, so an agent can select correctly without ambiguity.

    Naming Consistency5/5

    Both names use the same snake_case verb_noun convention (prepare_icon_context, save_icon), with 'icon' as the shared noun. The pattern is predictable and readable despite one name being longer.

    Tool Count3/5

    Only two tools exist for an icon-generation workflow, which is borderline thin. The prompt-prep and save steps are sensible to expose, but the surface feels minimal even for a narrow server purpose.

    Completeness3/5

    The core loop (prepare context -> AI generates -> save) is covered, but there is no validation/preview of generated SVG, and no list/update/delete operations for existing icons. These gaps could cause agent dead ends when an icon needs to be revised, checked, or replaced.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Visual icon search, retrieval, and comparison for AI agents. Search 200k+ icons semantically, render side-by-side comparison grids, and retrieve raw SVG markup — all tools return images so vision-capable LLMs can see the icons.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding tools to search, inspect, recommend, and export SVG icons from svgicons.com for use in design systems, frontend projects, and AI-assisted workflows.
      1
      MIT