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

xmo-image-mcp

v0.1.0

Published

XMO Image MCP Server - AI-powered image generation and editing using Gemini 2.5 Flash Image

Readme

XMO Image MCP Server

AI-powered image generation and editing server using Gemini Image model via XMO API.

Features

  • Generate Images: Create new images from text prompts
  • Edit Images: Modify existing images with natural language instructions
  • Reference Images: Use multiple reference images for better editing results
  • Continue Editing: Iteratively improve images without specifying file paths
  • Session State: Automatic tracking of last edited image for seamless workflow

Installation

npm install
npm run build

Configuration

Set your XMO API key as an environment variable:

export XMO_APIKEY="your-api-key-here"

Or provide it directly when calling the tools.

Optional Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | XMO_APIKEY | - | Your XMO API key | | MODEL_NAME | gemini-3.1-flash-image-preview | Model to use for generation | | XMO_BASE_URL | https://llm-provider.xm-opt.com/v1beta/models | API base URL |

Usage

As MCP Server

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "xmo-image": {
      "command": "node",
      "args": ["/path/to/xmo-image-mcp/dist/index.js"],
      "env": {
        "XMO_APIKEY": "your-api-key-here"
      }
    }
  }
}

Development

# Build and run
npm run dev

# Build only
npm run build

Available Tools

get_server_info

Get server information including model name and base URL.

Parameters: None

generate_image

Generate a new image from text prompt.

Parameters:

  • prompt (string, required): Text description of the image to create
  • api_key (string, optional): Your XMO API key

edit_image

Edit a specific existing image file.

Parameters:

  • imagePath (string, required): Full file path to the image to edit
  • prompt (string, required): Text describing the modifications
  • api_key (string, optional): Your XMO API key
  • referenceImages (array, optional): Array of file paths to reference images

continue_editing

Continue editing the last image generated or edited in the session.

Parameters:

  • prompt (string, required): Text describing the modifications
  • api_key (string, optional): Your XMO API key
  • referenceImages (array, optional): Array of file paths to reference images

get_last_image_info

Get information about the last generated/edited image.

Parameters: None

Output Location

Generated and edited images are saved to:

  • Windows: %USERPROFILE%\Documents\xmo-images\
  • macOS/Linux: ./generated_imgs/ (or ~/xmo-images/ if in system directories)

File naming format: {prefix}-{timestamp}-{randomId}.png

Requirements

  • Node.js >= 18.0.0
  • XMO API key

License

MIT

Repository

https://github.com/xm-opt/xmo-image-mcp