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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcp-gpt-image

v1.0.1

Published

[![npm version](https://badge.fury.io/js/mcp-gpt-image.svg)](https://www.npmjs.com/package/mcp-gpt-image) [![Docker Image](https://img.shields.io/docker/v/4kk11/mcp-gpt-image?logo=docker)](https://hub.docker.com/r/4kk11/mcp-gpt-image)

Readme

mcp-gpt-image

npm version Docker Image

OpenAI APIを使用して画像を生成・編集するためのMCPサーバーです。
生成された画像は指定されたディレクトリに保存され、プレビュー用に縮小された画像と合わせて返却されます。

主な機能

1. 画像生成 (generate_image)

テキストプロンプトから新しい画像を生成します。

入力パラメータ:

  • prompt: 生成したい画像の説明(必須)
  • size: 出力画像サイズ(オプション、デフォルト:"auto")
    • "1024x1024"
    • "1536x1024"
    • "1024x1536"
    • "auto"

2. 画像編集 (edit_image)

既存の画像をテキストプロンプトに基づいて編集します。

入力パラメータ:

  • image: 編集する画像のファイルパス(必須)
  • prompt: 編集内容を説明するテキストプロンプト(必須)

インストール方法

Dockerを使用する場合

  1. Dockerイメージをプル
docker pull 4kk11/mcp-gpt-image
  1. 設定例(claude_desktop_config.json)
{
  "mcpServers": {
    "gpt-image": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "YOUR_IMAGES_DIR:/app/temp",
        "-e",
        "OPENAI_API_KEY=YOUR_API_KEY",
        "4kk11/mcp-gpt-image"
      ]
    }
  }
}

npxを使用する場合

設定例(claude_desktop_config.json):

{
  "mcpServers": {
    "gpt-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-gpt-image"
      ],
      "env": {
        "OPENAI_API_KEY": "YOUR_API_KEY",
        "IMAGES_DIR": "YOUR_IMAGES_DIR"
      }
    }
  }
}

環境変数

| 変数名 | 説明 | デフォルト値 | |--------|------|--------------| | OPENAI_API_KEY | OpenAI APIキー(必須) | - | | IMAGES_DIR | 生成・編集した画像を保存するディレクトリのパス | ./temp |

開発者向け

Dockerイメージのビルドと管理

# Dockerイメージをビルド
make docker-build

# Dockerイメージを削除
make docker-clean
{
  "mcpServers": {
    "gpt-image": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "YOUR_IMAGES_DIR:/app/temp",
        "-e",
        "OPENAI_API_KEY",
        "mcp-gpt-image"
      ],
      "env": {
        "OPENAI_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

ライセンス

このプロジェクトはMITライセンスの下で公開されています。詳細はLICENSEファイルをご覧ください。