
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
pixellab-mcp
Advanced tools
MCP server for PixelLab pixel art generation and manipulation. Usage: pixellab-mcp --secret=your-key
Model Context Protocol (MCP) server for PixelLab pixel art generation and manipulation. This server enables AI assistants like Claude to generate, edit, and manipulate pixel art using PixelLab's AI-powered API.
For use with MCP clients like Cursor, Claude Desktop, etc., you must install globally:
npm install -g pixellab-mcp
Add to your MCP client configuration (e.g., Cursor or Claude Desktop) with your PixelLab secret:
{
"mcpServers": {
"pixellab": {
"command": "npx",
"args": ["pixellab-mcp", "--secret=your-pixellab-secret-here"]
}
}
}
generate_image_pixflux
Generate pixel art from text descriptions using PixelLab's Pixflux model.
Parameters:
description
(required): Text description of what to generate (e.g., "cute dragon with sword", "medieval knight")width
(default: 64): Image width in pixels (recommended: 32, 64, 128, 256)height
(default: 64): Image height in pixels (recommended: 32, 64, 128, 256)negative_description
(optional): What to avoid in the generation (e.g., "blurry, ugly, distorted")text_guidance_scale
(default: 8.0): How closely to follow the text description (1.0-20.0)no_background
(default: false): Generate without background (useful for sprites)outline
(optional): Outline style ("single color black outline", "selective outline", "lineless", etc.)shading
(optional): Shading style ("flat shading", "basic shading", "detailed shading", etc.)detail
(optional): Detail level ("low detail", "medium detail", "highly detailed")save_to_file
(optional): Path to save the generated image (e.g., "./dragon.png")show_image
(default: false): Show the generated image to the AI assistant for viewinggenerate_image_bitforge
Generate pixel art using a reference image for style matching (Bitforge model).
Parameters:
description
(required): Text description of what to generate (e.g., "warrior holding shield")style_image_path
(required): Path to reference style imagewidth
(default: 64): Image width in pixels (recommended: 32, 64, 128, 256)height
(default: 64): Image height in pixels (recommended: 32, 64, 128, 256)style_strength
(default: 50.0): How strongly to match the style (0-100)no_background
(default: false): Generate without backgroundsave_to_file
(optional): Path to save the generated image (e.g., "./styled_character.png")show_image
(default: false): Show the generated image to the AI assistant for viewingrotate
Generate rotated views of characters and objects.
Parameters:
image_path
(required): Path to character/object imagefrom_direction
(optional): Current direction ("south", "east", "north", "west", etc.)to_direction
(required): Direction to rotate to ("south", "east", "north", "west", etc.)width
(default: 64): Image width in pixels (recommended: 32, 64, 128, 256)height
(default: 64): Image height in pixels (recommended: 32, 64, 128, 256)save_to_file
(optional): Path to save the rotated image (e.g., "./character_east.png")show_image
(default: false): Show before/after comparison to the AI assistantinpaint
Edit existing pixel art by inpainting specific regions.
Parameters:
image_path
(required): Path to image to editmask_path
(required): Path to mask image (white = edit, black = keep)description
(required): Description of what to paint in the masked area (e.g., "red hat", "golden armor")width
(default: 64): Image width in pixels (recommended: 32, 64, 128, 256)height
(default: 64): Image height in pixels (recommended: 32, 64, 128, 256)save_to_file
(optional): Path to save the edited image (e.g., "./character_with_hat.png")show_image
(default: false): Show before/after comparison to the AI assistantestimate_skeleton
Extract skeleton structure from character images.
Parameters:
image_path
(required): Path to character imageshow_image
(default: false): Show the original image with skeleton data to the AI assistantanimate_with_skeleton
Create animated pixel art sequences using skeleton keyframes. Define keypoints for different poses to create smooth animations.
Parameters:
skeleton_frames
(required): Array of skeleton frames defining the animation sequence
keypoints
array with x
, y
, label
, and optional z_index
reference_image_path
(optional): Path to reference image for character appearancewidth
(default: 64): Image width in pixels (recommended: 32, 64, 128, 256)height
(default: 64): Image height in pixels (recommended: 32, 64, 128, 256)view
(default: "side"): Camera viewpoint ("side", "low top-down", "high top-down")direction
(default: "east"): Character facing direction ("south", "east", "north", "west", etc.)reference_guidance_scale
(default: 1.1): How closely to follow reference image (1.0-20.0)pose_guidance_scale
(default: 3.0): How closely to follow skeleton poses (1.0-20.0)isometric
(default: false): Use isometric projectionoblique_projection
(default: false): Use oblique projectioninit_image_strength
(default: 300): Strength of initialization images (0-1000)seed
(default: 0): Random seed for reproducible resultssave_to_file
(optional): Path template to save animation frames (e.g., "./animation.png")show_image
(default: false): Show the generated animation frames to the AI assistantanimate_with_text
Create animated pixel art sequences from text descriptions. Requires a reference character image and describes the action to animate.
Parameters:
description
(required): Description of the character to animate (e.g., "knight in armor", "wizard with staff")action
(required): Action to animate (e.g., "walking", "swinging sword", "casting spell")reference_image_path
(required): Path to reference character image to animatewidth
(default: 64): Image width in pixels (recommended: 32, 64, 128, 256)height
(default: 64): Image height in pixels (recommended: 32, 64, 128, 256)view
(default: "side"): Camera viewpoint ("side", "low top-down", "high top-down")direction
(default: "east"): Character facing direction ("south", "east", "north", "west", etc.)negative_description
(optional): What to avoid in the animation (e.g., "blurry, distorted")text_guidance_scale
(default: 7.5): How closely to follow text description (1.0-20.0)image_guidance_scale
(default: 1.5): How closely to follow reference image (1.0-20.0)n_frames
(default: 4): Number of animation frames to generate (1-20)start_frame_index
(default: 0): Starting frame index (for continuing animations)init_image_strength
(default: 300): Strength of initialization images (1-999)seed
(default: 0): Random seed for reproducible resultssave_to_file
(optional): Path template to save animation frames (e.g., "./walk_cycle.png")show_image
(default: false): Show the generated animation frames to the AI assistantget_balance
Check available PixelLab API credits.
Parameters: None
Once configured with your MCP client, you can use natural language to interact with PixelLab:
The AI assistant will call the appropriate tools and display the generated pixel art immediately when show_image
is enabled.
You can also run the server directly:
# Production usage (recommended)
pixellab-mcp --secret=your-pixellab-secret
# Development with local API server
pixellab-mcp --secret=your-secret --base-url=http://localhost:8000/v1
# Using environment variables
PIXELLAB_SECRET=your-secret pixellab-mcp
# Show help
pixellab-mcp --help
git clone <repository-url>
cd pixellab-mcp
npm install
npm run build
npm run dev -- --secret=your-test-secret
# Install MCP Inspector
npm install -g @modelcontextprotocol/inspector
# Test the server (production)
mcp-inspector npx pixellab-mcp --secret=your-test-secret
# Test with local development server
mcp-inspector npx pixellab-mcp --secret=your-test-secret --base-url=http://localhost:8000/v1
This MCP server is built as a lightweight wrapper around the @pixellab-code/pixellab library, providing:
The server implements 8 modular tools:
src/tools/generatePixelArt.ts
- Pixflux text-to-pixel-art generationsrc/tools/generatePixelArtWithStyle.ts
- Bitforge style-transfer generationsrc/tools/getBalance.ts
- API credit checkingsrc/tools/rotateCharacter.ts
- Character rotation with comparisonssrc/tools/inpaintPixelArt.ts
- Region-based editing with comparisonssrc/tools/estimateSkeleton.ts
- Skeleton detection with visualizationsrc/tools/animateWithSkeleton.ts
- Skeleton-based animation generationsrc/tools/animateWithText.ts
- Text-based animation generation@modelcontextprotocol/sdk
: MCP server framework@pixellab-code/pixellab
: PixelLab JavaScript clientzod
: Runtime type validationdotenv
: Environment variable managementProblem: MCP client shows "Connection closed" or "No server info found"
Solution: Ensure the package is installed globally:
npm install -g pixellab-mcp
Problem: Server starts but immediately exits
Causes & Solutions:
{
"mcpServers": {
"pixellab": {
"command": "node",
"args": ["/path/to/pixellab-mcp/dist/index.js", "--secret=your-secret"]
}
}
}
Problem: Server shows fewer than 8 tools
Solution: You should see these 8 tools:
generate_image_pixflux
generate_image_bitforge
get_balance
rotate
inpaint
estimate_skeleton
animate_with_skeleton
animate_with_text
If you see fewer, try:
npm uninstall -g pixellab-mcp && npm install -g pixellab-mcp
Test manually before adding to MCP client:
# Test help (should show usage)
pixellab-mcp --help
# Test server startup (should show "PixelLab MCP Server running on stdio")
timeout 5s pixellab-mcp --secret=your-secret
MIT
FAQs
MCP server for PixelLab pixel art generation and manipulation. Usage: pixellab-mcp --secret=your-key
The npm package pixellab-mcp receives a total of 5 weekly downloads. As such, pixellab-mcp popularity was classified as not popular.
We found that pixellab-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.