
Colemurray/Moondream-MCP 是从 https://github.com/colemurray/moondream-mcp. 导入的 MCP 服务器候选服务器
概览
Colemurray/Moondream-MCP 是从 https://github.com/colemurray/moondream-mcp. 导入的 MCP 服务器候选服务器
概述(AI 翻译)
Moondream 的 FastMCP 服务器,Moondream 是一款人工智能视觉语言模型。该服务器通过模型上下文协议(MCP)提供图像分析功能,包括字幕、视觉问答、物体检测和视觉指向。
特色
- 🖼️ 图片字幕:生成简短、正常或详细的图片说明
- ❓ 视觉问答:用自然语言问题询问图像
- 🔍 物体检测:用边界框检测和定位特定物体
- 📍 视觉指向:获取图像中物体的精确坐标
- 🔗 URL 支持:处理本地文件和远程 URL 的图像
- ⚡ 批量处理:高效分析多张图像
- 🚀 设备优化:自动检测和优化CPU、CUDA和MPS(苹果硅)
安装
先决条件
- Python 3.10 或更高版本
- PyTorch 2.0+(支持相应设备)
使用 UVX(推荐用于 Claude 桌面版)
从 PyPI 安装
从源码安装
开发安装
快速启动
运行服务器
Claude桌面集成
添加到你的Claude Desktop配置文件中:
本页由 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"
}
}
}
}