A powerful server that integrates the Moondream vision model to enable advanced image analysis, including captioning, object detection, and visual question answering, through the Model Context Protocol, compatible with AI assistants like Claude and Cline.
A powerful Model Context Protocol (MCP) server that brings advanced image analysis capabilities to your applications using the Moondream vision model. This server seamlessly integrates with Claude and Cline, providing a bridge between AI assistants and sophisticated computer vision tasks.
This IS NOT an offical Moondream package. All credit to moondream.ai for making the best open source vision model that you can run on consumer hardware.
git clone cd moondream-server pnpm install
pnpm run build
The server handles the rest automatically:
Add to your MCP settings file (claude_desktop_config.json
or cline_mcp_settings.json
):
{ "mcpServers": { "moondream": { "command": "node", "args": ["/path/to/moondream-server/build/index.js"] } } }
Powerful image analysis tool with multiple modes:
{ "name": "analyze_image", "arguments": { "image_path": string, // Path to image file "prompt": string // Analysis command } }
Prompt Types:
"generate caption"
- Creates natural language description"detect: [object]"
- Finds specific objects (e.g., "detect: car")"[question]"
- Answers questions about the imageExamples:
// Image Captioning { "image_path": "photo.jpg", "prompt": "generate caption" } // Object Detection { "image_path": "scene.jpg", "prompt": "detect: person" } // Visual Q&A { "image_path": "painting.jpg", "prompt": "What colors are used in this painting?" }
The server operates as a dual-component system:
MCP Interface Layer
Moondream Model Server
Uses the Moondream quantized model:
moondream-2b-int8.mf.gz
Common issues and solutions:
Model Download Issues
# Manual model download wget https://huggingface.co/vikhyatk/moondream2/resolve/main/moondream-0_5b-int4.mf.gz
Server Port Conflicts
lsof -i :3475
Python Environment
Contributions welcome! Areas of interest:
[Add your license information here]
Made with ❤️ by Nighttrek
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!