GM

groundlight/mcp-vision

Deployment & DevOps

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

64 stars 14 forks 品質 59 トレンド 0MIT

groundlight/mcp-vision は [https://github.com/groundlight/mcp-vision. からインポートされた MCP サーバーの候補です

概要

groundlight/mcp-vision は [https://github.com/groundlight/mcp-vision. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

ツールなどのゼロショットオブジェクト検出などのHuggingFaceコンピュータビジョンモデルを公開するモデルコンテキストプロトコル(MCP)サーバーで、大きな言語や視覚言語モデルのビジョン機能を強化します。

このリポジトリは、アクティブな開発中です。 現在利用可能なツールの詳細は下記をご覧ください。

インストール

リポジトリのクローン:

ローカルドッカーイメージを作成する:

##Claudeデスクトップの設定

[claude_desktop_config.jsonにこれを追加します。

ローカル環境がNVIDIA GPU にアクセスしている場合:

または、CPUだけ:

CPU 上で実行すると、デフォルトの大型オブジェクト検出モデルは、遅延や推論を実行するのに時間がかかる。 小さいモデルをDEFAULT_OBJDET_MODELとして使用することを検討してください(特定のモデルを直接使用するためにClaudeを指示することもできます)。

(ベータ) パブリックドッカーイメージをローカルに構築せずに直接実行できますが、ダウンロード時間はサーバーのロードをClaudeに干渉することがあります。

ツール

mcp-vision サーバーでは、以下のツールがご利用いただけます。

1。 locate objects

  • 説明: 利用可能なゼロショットオブジェクト検出パイプラインの1つを使用して画像内のオブジェクトを検出し、検索します HuggingFace (参照のためのリスト[[https://huggingface.)]

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

mcp-vision by

A Model Context Protocol (MCP) server exposing HuggingFace computer vision models such as zero-shot object detection as tools, enhancing the vision capabilities of large language or vision-language models.

This repo is in active development. See below for details of currently available tools.

Installation

Clone the repo:

git clone [email protected]:groundlight/mcp-vision.git

Build a local docker image:

cd mcp-vision
make build-docker

Configuring Claude Desktop

Add this to your claude_desktop_config.json:

If your local environment has access to a NVIDIA GPU:

"mcpServers": {
  "mcp-vision": {
    "command": "docker",
    "args": ["run", "-i", "--rm", "--runtime=nvidia", "--gpus", "all", "mcp-vision"],
	"env": {}
  }
}

Or, CPU only:

"mcpServers": {
  "mcp-vision": {
    "command": "docker",
    "args": ["run", "-i", "--rm", "mcp-vision"],
	"env": {}
  }
}

When running on CPU, the default large-size object detection model make take a long time to laod and run inference. Consider using a smaller model as DEFAULT_OBJDET_MODEL (you can tell Claude directly to use a specific model too).

(Beta) It is possible to run the public docker image directly without building locally, however the download time may interfere with Claude’s loading of the server.

"mcpServers": {
  "mcp-vision": {
    "command": "docker",
    "args": ["run", "-i", "--rm", "--runtime=nvidia", "--gpus", "all", "groundlight/mcp-vision:latest"],
	"env": {}
  }
}

Tools

The following tools are currently available through the mcp-vision server:

  1. locate_objects
  • Description: Detect and locate objects in an image using one of the zero-shot object detection pipelines available through HuggingFace (list for reference [https://huggingface.co/models?pipeline_tag=zero-shot-object-detection&sort=trending]).
  • Input: image_path (string) URL or file path, candidate_labels (list of strings) list of possible objects to detect, hf_model (optional string), will use "google/owlvit-large-patch14" by default, which could be slow on a non-GPU machine
  • Returns: List of dicts in HF object-detection format
  1. zoom_to_object
  • Description: Zoom into an object in the image, allowing you to analyze it more closely. Crop image to the object bounding box and return the cropped image. If many objects are present in the image, will return the ‘best’ one as represented by object score.
GitHub で README 全文を見る

インストール

docker run -i --rm --runtime=nvidia --gpus all mcp-vision
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

"mcpServers": { "mcp-vision": { "command": "docker", "args": ["run", "-i", "--rm", "--runtime=nvidia", "--gpus", "all", "mcp-vision"], "env": {} } }