npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-image-placeholder

v1.1.0

Published

MCP server for generating placeholder images using placehold.co and picsum.photos

Readme

MCP Image Placeholder

MCP server for generating placeholder images using placehold.co and picsum.photos.

Installation

npm install -g mcp-image-placeholder

Warp Configuration

Add this configuration to your Warp MCP settings:

{
  "image-placeholder": {
    "command": "mcp-image-placeholder",
    "args": [],
    "env": {},
    "working_directory": null
  }
}

How to Configure in Warp

  1. Open WarpSettings (Cmd+,)
  2. Go to FeaturesAIModel Context Protocol
  3. Add the JSON configuration above
  4. Save and restart Warp

Usage

Once configured in Warp, you can use the image_placeholder tool in your AI conversations:

Available Tool

image_placeholder - Generate placeholder images for testing and development

Parameters:

  • provider (string): Either "placehold" or "lorem-picsum"
  • width (number): Image width in pixels (1-10000)
  • height (number): Image height in pixels (1-10000)

Returns: URL string for the generated placeholder image

Examples

// Using placehold.co (solid color placeholders)
image_placeholder("placehold", 300, 200)
// Returns: https://placehold.co/300x200

// Using Lorem Picsum (random photos)
image_placeholder("lorem-picsum", 400, 300)
// Returns: https://picsum.photos/400/300

Use Cases

  • Web Development: Generate placeholder images for mockups and prototypes
  • Testing: Create test images with specific dimensions
  • Documentation: Add placeholder images to examples and demos
  • Design: Quick placeholder content for layouts

Troubleshooting

"Connection closed" Error

If you see this error in Warp:

  1. Ensure you have the latest version: npm update -g mcp-image-placeholder
  2. Verify the configuration matches exactly (including the working_directory: null)
  3. Restart Warp completely

Package Not Found

If the command isn't recognized:

  1. Check global installation: npm list -g mcp-image-placeholder
  2. Verify it's in your PATH: which mcp-image-placeholder
  3. Try reinstalling: npm uninstall -g mcp-image-placeholder && npm install -g mcp-image-placeholder

Development

Local Development

# Clone the repository
git clone https://github.com/hellokhoyer/mcp-image-placer.git
cd mcp-image-placer

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build for production
npm run build

# Run tests
npm test

Testing the MCP Server

# Test the CLI directly
node dist/cli/index.js

# Send a test MCP request
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | node dist/cli/index.js

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes
  4. Run tests: npm test
  5. Submit a pull request

License

MIT License - see LICENSE file for details.