mcpField
T
Tinypng Mcp Server

Tinypng Mcp Server

ローカル
github.com/aiyoggメディア・デザイン751 週間前に更新

Tinypng Mcp Server について

Tinypng Mcp Server は、LLM 経由で画像を扱う人向けに TinyPNG の圧縮機能を MCP に接続するサーバーです。ローカルファイルとリモート画像 URL の圧縮ツールを備えています。

主な機能

  1. 01ローカル画像ファイルの圧縮
  2. 02URL によるリモート画像の圧縮

活用シーン

  1. 01ローカルに保存した画像の圧縮
  2. 02リモート URL の画像の圧縮

MCP 対応

この MCP サーバーは、ローカル画像パスとリモート画像 URL に対応する TinyPNG 圧縮ツールを MCP クライアントに公開します。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"tinypng": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
起動コマンドnpx -y @smithery/cli

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npm@smithery/cli

ツール

ツール一覧はまだ取得されていません

ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。

詳細

TinyPNG 用 MCP サーバー

smithery badge MseeP.ai Security Assessment Badge

tinypng-mcp-server MCP server
使い方
bun または node を使ってサーバーを実行する
  1. 依存関係をインストールしてビルドします
pnpm i
pnpm build
  1. mcp.json ファイルを編集します
{
  "mcpServers": {
    "tinypng": {
      "command": "bun", // or "node"
      "args": ["/path/to/tinypng-mcp-server/src/index.ts"], // or "dist/index.js"
      "env": {
        "TINYPNG_API_KEY": "your-tinypng-api-key"
      }
    }
  }
}
Smithery 経由でインストールする

Smithery 経由で、Claude Desktop 用の TinyPNG MCP Server を自動的にインストールするには:

npx -y @smithery/cli install @aiyogg/tinypng-mcp-server --client claude
ツール
  1. ローカル画像を圧縮する
{
  name: 'compress_local_image',
  description: 'Compress a local image file',
  inputSchema: {
    type: 'object',
    properties: {
      imagePath: {
        type: 'string',
        description: 'The ABSOLUTE path to the image file to compress',
        example: '/Users/user/Downloads/image.jpg',
      },
      outputPath: {
        type: 'string',
        description: 'The ABSOLUTE path to save the compressed image file',
        example: '/Users/user/Downloads/image_compressed.jpg',
      },
      outputFormat: {
        type: 'string',
        description: 'The format to save the compressed image file',
        enum: SUPPORTED_IMAGE_TYPES,
        example: 'image/jpeg',
      },
    },
    required: ['imagePath'],
  },
}
  1. リモート画像を圧縮する
{
  name: 'compress_remote_image',
  description: 'Compress a remote image file by giving the URL of the image',
  inputSchema: {
    type: 'object',
    properties: {
      imageUrl: {
        type: 'string',
        description: 'The URL of the image file to compress',
        example: 'https://example.com/image.jpg',
      },
      outputPath: {
        type: 'string',
        description: 'The ABSOLUTE path to save the compressed image file',
        example: '/Users/user/Downloads/image_compressed.jpg',
      },
      outputFormat: {
        type: 'string',
        description: 'The format to save the compressed image file',
        enum: SUPPORTED_IMAGE_TYPES,
        example: 'image/jpeg',
      },
    },
    required: ['imageUrl'],
  },
}

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。