Icon Generator MCP Server
# Icon Generator MCP Server
Generate clean, production-ready SVG icons from natural language prompts. Zero dependencies, supports PNG visual context for better consistency.
## Installation
```bash
npm install -g icon-generator-mcp
```
Add to your MCP configuration:
```json
{
"mcpServers": {
"icon-generator": {
"command": "icon-generator-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
MITTDQS
Scored across 2 tools
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.
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.
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.
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.