Skip to main content
Glama

MCP 画像読み取り

OpenRouterビジョンモデルを用いて画像を解析するためのMCPサーバーです。このサーバーは、OpenRouter APIを介してClaude-3.5-sonnetやClaude-3-opusなどの様々なビジョンモデルを用いて画像を解析するためのシンプルなインターフェースを提供します。

インストール

npm install @catalystneuro/mcp_read_images

Related MCP server: mcp-openvision

構成

サーバーにはOpenRouter APIキーが必要です。OpenRouterから取得できます。

サーバーを MCP 設定ファイル (通常、VSCode の場合は~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonにあります) に追加します。

{
  "mcpServers": {
    "read_images": {
      "command": "read_images",
      "env": {
        "OPENROUTER_API_KEY": "your-api-key-here",
        "OPENROUTER_MODEL": "anthropic/claude-3.5-sonnet"  // optional, defaults to claude-3.5-sonnet
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

使用法

サーバーは、画像を分析するために使用できる単一のツールanalyze_imageを提供します。

// Basic usage with default model
use_mcp_tool({
  server_name: "read_images",
  tool_name: "analyze_image",
  arguments: {
    image_path: "/path/to/image.jpg",
    question: "What do you see in this image?"  // optional
  }
});

// Using a specific model for this call
use_mcp_tool({
  server_name: "read_images",
  tool_name: "analyze_image",
  arguments: {
    image_path: "/path/to/image.jpg",
    question: "What do you see in this image?",
    model: "anthropic/claude-3-opus-20240229"  // overrides default and settings
  }
});

モデル選択

モデルは次の優先順位に従って選択されます。

  1. ツール呼び出しで指定されたモデル( model引数)

  2. MCP設定で指定されたモデル( OPENROUTER_MODEL環境変数)

  3. デフォルトモデル(anthropic/claude-3.5-sonnet)

サポートされているモデル

次の OpenRouter モデルがテストされています。

  • 人類学的/クロード-3.5-ソネット

  • アントロピック/クロード-3-opus-20240229

特徴

  • 画像の自動サイズ変更と最適化

  • 構成可能なモデル選択

  • 画像に関するカスタム質問のサポート

  • 詳細なエラーメッセージ

  • 自動JPEG変換と品質最適化

エラー処理

サーバーはさまざまなエラーケースを処理します。

  • 無効な画像パス

  • APIキーがありません

  • ネットワークエラー

  • 無効なモデル選択

  • 画像処理エラー

各エラーは、問題の診断に役立つ説明メッセージを返します。

発達

ソースからビルドするには:

git clone https://github.com/catalystneuro/mcp_read_images.git
cd mcp_read_images
npm install
npm run build

ライセンス

MITライセンス。詳細はライセンスを参照してください。

A
license - permissive license
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/catalystneuro/mcp_read_images'

If you have feedback or need assistance with the MCP directory API, please join our Discord server