
colemurray/moondream-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
colemurray/moondream-mcp は [https://github.com/colemurray/moondream-mcp.] からインポートされた MCP サーバーの候補です
概要
colemurray/moondream-mcp は [https://github.com/colemurray/moondream-mcp.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
AI ビジョン言語モデルである Moondream 用の FastMCP サーバー。 このサーバーは、モデルコンテキストプロトコル(MCP)を経由して、キャプション、ビジュアル質問の回答、オブジェクトの検出、視覚的なポイントを含む画像解析機能を提供します。
##特徴
- ̇Image Captioning:画像のショート、ノーマル、または詳細なキャプションを生成する
- よくある質問Visual Question Answering
- ANSI オブジェクト検出:境界ボックスで特定のオブジェクトを検知して検索
- 休日 ビジュアルポインティング*:画像のオブジェクトの正確な座標を取得する
- ローカルファイルとリモートURLの両方からイメージを処理する
- ⚡ バッチ処理: 複数の画像を効率的に分析
- OST デバイス最適化:CPU、CUDA、MPS(Apple Silicon)の自動検出と最適化
インストール
前提条件
- Python 3.10以上
- PyTorch 2.0+ (適切なデバイスサポート付き)
uvx を使用する (Claude デスクトップに推奨)
##PyPIからインストールする
ソースからインストールする
###開発インストール
クイックスタート
サーバーの実行
##Claudeデスクトップの統合
Claudeデスクトップ設定ファイルに追加します
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Moondream MCP Server
A FastMCP server for Moondream, an AI vision language model. This server provides image analysis capabilities including captioning, visual question answering, object detection, and visual pointing through the Model Context Protocol (MCP).
Features
- 🖼️ Image Captioning: Generate short, normal, or detailed captions for images
- ❓ Visual Question Answering: Ask natural language questions about images
- 🔍 Object Detection: Detect and locate specific objects with bounding boxes
- 📍 Visual Pointing: Get precise coordinates of objects in images
- 🔗 URL Support: Process images from both local files and remote URLs
- ⚡ Batch Processing: Analyze multiple images efficiently
- 🚀 Device Optimization: Automatic detection and optimization for CPU, CUDA, and MPS (Apple Silicon)
Installation
Prerequisites
- Python 3.10 or higher
- PyTorch 2.0+ (with appropriate device support)
Using uvx (Recommended for Claude Desktop)
# Run without installation
uvx moondream-mcp
# Or specify a specific version
uvx moondream-mcp==1.0.2
Install from PyPI
pip install moondream-mcp
Install from Source
git clone https://github.com/ColeMurray/moondream-mcp.git
cd moondream-mcp
pip install -e .
Development Installation
git clone https://github.com/ColeMurray/moondream-mcp.git
cd moondream-mcp
pip install -e ".[dev]"
Quick Start
Running the Server
# Using uvx (no installation needed)
uvx moondream-mcp
# Using pip-installed command
moondream-mcp
# Or run directly with Python
python -m moondream_mcp.server
Claude Desktop Integration
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Using uvx (Recommended)
{
"mcpServers": {
"moondream": {
"command": "uvx",
"args": ["moondream-mcp"],
"env": {
"MOONDREAM_DEVICE": "auto"
}
}
}
}
Using pip-installed command
{
"mcpServers": {
"moondream": {
"command": "moondream-mcp",
"env": {
"MOONDREAM_DEVICE": "auto"
}
}
}
}
Configuration
The server can be configured using environment variables:
Model Settings
MOONDREAM_MODEL_NAME: Model name (default:vikhyatk/moondream2)MOONDREAM_MODEL_REVISION: Model revision (default:2025-01-09)MOONDREAM_TRUST_REMOTE_CODE: Trust remote code (default:true)
Device Settings
MOONDREAM_DEVICE: Force specific device (cpu,cuda,mps, orauto)
Image Processing
MOONDREAM_MAX_IMAGE_SIZE: Maximum image dimensions (default:2048x2048)MOONDREAM_MAX_FILE_SIZE_MB: Maximum file size in MB (default:50)
Performance
MOONDREAM_TIMEOUT_SECONDS: Processing timeout (default:120)
インストール
uvx moondream-mcp設定
{
"mcpServers": {
"moondream": {
"command": "uvx",
"args": ["moondream-mcp"],
"env": {
"MOONDREAM_DEVICE": "auto"
}
}
}
}