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

@a2c-j1/edit-image-mcp

v1.0.0

Published

MCP server for adding speech bubbles to images

Readme

Edit Image MCP Server

画像に吹き出しを追加するMCP(Model Context Protocol)サーバーです。

インストール

npm install @a2c-j1/edit-image-mcp

機能

  • 画像に吹き出し(スピーチバブル)を追加
  • 複数の吹き出し形状をサポート(長方形、楕円、雲形)
  • カスタマイズ可能なスタイル設定
  • 矢印付き吹き出し
  • 自動テキスト折り返し
  • タイムスタンプ付きファイル出力

開発者向けセットアップ

git clone https://github.com/a2c-j1/edit-image.git
cd edit-image
npm install
npm run build

使用方法


MCPサーバー導入例

本プロジェクトをMCPサーバーとして利用するには、mcp.config.jsonやMCPクライアントの設定ファイルに以下のようなエントリを追加してください。

設定例(settings.json)

{
  "mcpServers": {
    "edit-image": {
      "command": "node",
      "args": [
        "node_modules/@a2c-j1/edit-image-mcp/dist/index.js"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}

または、グローバルにインストールした場合:

{
  "mcpServers": {
    "edit-image": {
      "command": "edit-image-server",
      "disabled": false,
      "autoApprove": []
    }
  }
}

API

add_speech_bubble ツール

画像に吹き出しを追加します。

パラメータ

  • imagePath (string): 入力画像ファイルのパス
  • text (string): 吹き出し内のテキスト
  • position (object): 吹き出しの配置座標
    • x (number): X座標
    • y (number): Y座標
  • properties (object): 吹き出しのプロパティ
    • shape (string): 形状 ('rectangle' | 'ellipse' | 'cloud')
    • style (object): スタイル設定
      • backgroundColor (string): 背景色(16進数)
      • borderColor (string): 境界線色(16進数)
      • borderWidth (number): 境界線幅(ピクセル)
      • cornerRadius (number): 角の丸み(長方形用)
      • fontSize (number): フォントサイズ(ピクセル)
      • fontFamily (string): フォントファミリー
      • textColor (string): テキスト色(16進数)
      • padding (number): 内側の余白(ピクセル)
      • maxWidth (number, optional): テキスト折り返し最大幅
      • opacity (number, optional): 透明度(0-1)
    • arrow (object, optional): 矢印設定
      • direction (string): 矢印の向き
      • length (number): 矢印の長さ(ピクセル)
      • width (number): 矢印の幅(ピクセル)
    • autoSize (boolean, optional): 自動サイズ調整

出力

編集された画像は元ファイル名にタイムスタンプを付けた形式で保存されます: 元ファイル名_{タイムスタンプ}.{拡張子}

サポートされる画像形式

  • JPEG (.jpg, .jpeg)
  • PNG (.png)
  • GIF (.gif)
  • BMP (.bmp)
  • WebP (.webp)