MCP Read Images

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

MCP 画像読み取り

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

インストール

npm install @catalystneuro/mcp_read_images

構成

サーバーには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ライセンス。詳細はライセンスを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

OpenRouter ビジョン モデルを使用して画像を分析するための MCP サーバー。画像の自動サイズ変更、モデル構成、画像に関するカスタム クエリの処理などの機能を提供します。

  1. Installation
    1. Configuration
      1. Usage
        1. Model Selection
        2. Supported Models
      2. Features
        1. Error Handling
          1. Development
            1. License
              ID: 75ezdsyagp