Skip to main content

A Model Context Protocol (MCP) service for converting PNG files to ICO files with customizable icon dimensions

Project description

icogen-mcp

A Model Context Protocol (MCP) service that enables AI assistants and other tools to convert PNG image files to Windows ICO icon files. The service provides a standardized interface for generating multi-resolution ICO files from PNG sources with customizable icon dimensions.

Features

  • Convert PNG files to multi-size ICO files with a single tool call
  • Support for custom icon dimensions (defaults to 16x16, 32x32, 48x48, 64x64)
  • Flexible output options - save to file or return binary data
  • Built on the FastMCP framework for reliable MCP compliance
  • Designed specifically for integration with AI assistants and automated workflows
  • Utilizes Pillow for high-quality image processing

Installation

pip install icogen-mcp

Usage

This service is designed to work with MCP-compatible clients. Once integrated, you can use the convert_png_to_ico tool to convert PNG files to ICO format with customizable dimensions.

Configuration Reference

{
  "mcpServers": {
    "icogen-mcp": {
      "command": "uvx",
      "args": [
        "icogen-mcp"
      ]
    }
  }
}

Use Cases

  • Icon generation for desktop applications
  • Automated asset conversion in build pipelines
  • AI-assisted graphic design workflows
  • Integration with development tools and IDEs

Dependencies

  • Pillow: For image processing
  • fastmcp: For MCP protocol implementation
  • pydantic: For data validation

Architecture

The service implements the Model Context Protocol specification and provides a single primary function:

  • convert_png_to_ico: Converts a PNG file to an ICO file with customizable dimensions

The service leverages the Pillow library for high-quality image resizing and ICO format generation, supporting multiple resolutions within a single ICO file.

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

icogen_mcp-0.1.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

icogen_mcp-0.1.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file icogen_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: icogen_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for icogen_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1074b9321bf4afa68ef0ef17de7e63bb8477a90e2fa83b15e2291b1b97101786
MD5 f8f89ca0bbb7848219f1d8e7e49cc1e5
BLAKE2b-256 6898581b5b8443ab595544743ad06bb6aa44ca0b8c41e30eb8272a6962e212d7

See more details on using hashes here.

File details

Details for the file icogen_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: icogen_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for icogen_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0fcac6c45e9913c0fa60bacf8541a0b441b8aad9eb402d3e57d3ed4ab43636da
MD5 8073c48cac38e767bc45992f67e62a58
BLAKE2b-256 e4eb98c8031ea8957be268d042618bba73dfbdfbcf5b26ea3e6454b6ca6d865b

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