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

@morphkit/asset-gen-mcp

v0.1.6

Published

AI-powered image asset generation MCP server with prompt engineering guidance and vectorization

Readme

AssetGen MCP Server

AI-powered image asset generation with prompt engineering guidance and vectorization

Documentation

Quick Start (npx)

Run the MCP server directly without global installation:

npx -y @morphkit/asset-gen-mcp@latest

For MCP client configuration, use:

{
  "mcpServers": {
    "asset-gen": {
      "command": "npx",
      "args": ["-y", "@morphkit/asset-gen-mcp@latest"],
      "env": {
        "GOOGLE_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

For Claude Code:

claude mcp add asset-gen -e GOOGLE_API_KEY=YOUR_API_KEY -- npx -y @morphkit/asset-gen-mcp@latest

Features

  • get-image-generation-prompt-instructions: Returns asset-type-specific prompt engineering best practices and examples for Google Imagen
  • generate-images: Generates images using Google Imagen 4.0 with auto-vectorization for SVG outputs
  • vectorize-image: Converts raster images to SVG using configurable vectorization options
  • remove-background: AI-powered background removal using transparent-background

Requirements

  • Node.js >= 18
  • Python (for background removal) - Pre-installed on macOS and most Linux distributions
  • Google API Key - Get one at Google AI Studio

First Run Notice

On first use, the remove-background tool downloads an ML model (~150MB) and creates a Python virtual environment. This takes approximately 3 minutes. Subsequent runs are fast (~2-5 seconds).

Installation

```bash cd packages/asset-gen-mcp bun install ```

Configuration

Copy the example environment file and configure:

```bash cp .env.example .env

Edit .env with your values

```

Development

```bash bun run dev ```

Production

Build

```bash bun run build ```

Run

```bash bun run start ```

Tools

get-image-generation-prompt-instructions

Returns asset-type-specific prompt engineering best practices and examples for Google Imagen

Usage:

```json { "name": "get-image-generation-prompt-instructions", "arguments": { "param": "value" } } ```

generate-images

Generates images using Google Imagen 4.0 with auto-vectorization for SVG outputs

Usage:

```json { "name": "generate-images", "arguments": { "param": "value" } } ```

vectorize-image

Converts raster images to SVG using configurable vectorization options

Usage:

```json { "name": "vectorize-image", "arguments": { "param": "value" } } ```

remove-background

AI-powered background removal using InSPyReNet model. Works with complex backgrounds, shadows, and lighting effects. Outputs transparent PNG.

Usage:

```json { "name": "remove-background", "arguments": { "inputPath": "/path/to/image.png", "outputPath": "/path/to/output.png", "fast": false } } ```

Set fast: true for quicker processing with slightly lower quality (384x384 model vs 1024x1024).

Testing

```bash bun run test ```

Type Checking

```bash bun run check-types ```

Linting

```bash bun run lint ```