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.2.tar.gz (5.9 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.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: icogen_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 5.9 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.2.tar.gz
Algorithm Hash digest
SHA256 6ef7855f3d6947a6d349e64ad2ccb62a288a834142ea187fdf82c4239563e4d8
MD5 f511cc0a1ab4a89a6e9e30cb0ea8ad62
BLAKE2b-256 53eb8cd013dca6a78f568e8b76ff5917aa1f23302eab07c57f08ca5dd4880069

See more details on using hashes here.

File details

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

File metadata

  • Download URL: icogen_mcp-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5358aaf7aadd86e7a3c567c2ecee3f119b71fe6d8bd9c23b59bec704921d816f
MD5 0c1b97c9ce8b25389076bfec652506e8
BLAKE2b-256 6678f0aa8ad0de45fda3949641dbcdc6c50129dcac4efbc0b9e923b11df13203

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