Placeholder Image Generator
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Placeholder Image Generator MCP Server
A Model Context Protocol (MCP) server that generates customizable placeholder images using HTML5 Canvas.
Features
Flexible Dimensions: Generate images from 1x1 to 4096x4096 pixels
Custom Colors: Support for hex, RGB, and named colors
Smart Text Rendering: Automatic font sizing and line wrapping
Contrast Detection: Automatically chooses contrasting text colors
Multiple Formats: Outputs PNG and JPEG images
Error Validation: Comprehensive input validation with helpful error messages
Related MCP server: Image Generator MCP Server
Installation
npm install
npm run buildUsage
This is an MCP server designed to be used with MCP-compatible clients like Claude for Desktop.
Tool: generate-placeholder-image
Generate a placeholder image with the following parameters:
filename(string): Output filename with extension (.png, .jpg, .jpeg)width(number): Image width in pixels (1-4096)height(number): Image height in pixels (1-4096)color(string): Background color (hex like #FF0000, rgb like rgb(255,0,0), or named colors like 'red')text(string): Text to display on the image
Example
{
"filename": "placeholder.png",
"width": 800,
"height": 600,
"color": "#3498db",
"text": "Sample Placeholder"
}Configuration for Claude for Desktop
Add the following to your Claude for Desktop configuration:
Windows
{
"mcpServers": {
"placeholder-generator": {
"command": "node",
"args": ["D:\\path\\to\\generate-placeholder\\build\\index.js"]
}
}
}macOS/Linux
{
"mcpServers": {
"placeholder-generator": {
"command": "node",
"args": ["/absolute/path/to/generate-placeholder/build/index.js"]
}
}
}Development
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run devTechnical Details
Built with TypeScript and the MCP SDK
Uses the
canvaslibrary for server-side image generationImplements stdio transport for MCP communication
Automatic text scaling based on image dimensions
Multi-line text support with word wrapping
Supported Color Formats
Hex:
#FF0000,#f00RGB:
rgb(255, 0, 0)RGBA:
rgba(255, 0, 0, 0.5)Named:
red,blue,green,yellow,orange,purple,pink,brown,black,white,gray
License
ISC
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate images and PDFs from HTML/CSS, live websites, and reusable templates.
Generate deterministic placeholder image URLs and packs for docs, staging, testing, and AI agents.
Edit images in one call: resize, convert, compress, crop, metadata, favicons, QR codes, OCR.
Generate chart images, diagrams, barcodes, QR codes and thermal labels on demand. PNG, SVG or PDF o…
Related MCP Servers
- AlicenseAqualityDmaintenanceThis server generates placeholder image URLs from various providers, supporting input validation and integration with desktop applications like Claude and Cursor.112MIT
- FlicenseNot gradedqualityDmaintenanceGenerates customizable test/placeholder images as PNG files with specified dimensions (1-4096px), hex colors, and optional labels. Automatically creates directories and adds dimension overlays with smart contrast text.-
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive image processing, stock image search from Pexels and Pixabay, and AI image generation using OpenAI DALL-E with support for resizing, format conversion, color extraction, and watermarking.16 npmMIT
- AlicenseAqualityDmaintenanceGenerates mock 2D PNG assets for game prototypes, supporting gradients, patterns, text, spritesheets, and embedded metadata.376 npm6MIT