Tinypng Mcp Server について
Tinypng Mcp Server は、LLM 経由で画像を扱う人向けに TinyPNG の圧縮機能を MCP に接続するサーバーです。ローカルファイルとリモート画像 URL の圧縮ツールを備えています。
主な機能
- 01ローカル画像ファイルの圧縮
- 02URL によるリモート画像の圧縮
活用シーン
- 01ローカルに保存した画像の圧縮
- 02リモート URL の画像の圧縮
MCP 対応
この MCP サーバーは、ローカル画像パスとリモート画像 URL に対応する TinyPNG 圧縮ツールを MCP クライアントに公開します。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
ツール
ツール一覧はまだ取得されていません
ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。
詳細
TinyPNG 用 MCP サーバー
使い方
bun または node を使ってサーバーを実行する
- 依存関係をインストールしてビルドします
pnpm i
pnpm build
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
ツール
- ローカル画像を圧縮する
{
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'],
},
}
- リモート画像を圧縮する
{
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'],
},
}
コメント
Markdown 対応
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。
