npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iflow-mcp/nighttrek-moondream-mcp

v0.1.0

Published

MCP server for Moondream image analysis

Readme

🌙 Moondream MCP Server

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.

✨ Features

  • 🖼️ Image Captioning: Generate natural language descriptions of images
  • 🔍 Object Detection: Identify and locate specific objects within images
  • 💭 Visual Question Answering: Ask questions about image content and receive intelligent responses
  • 🚀 High Performance: Uses quantized 8-bit models for efficient inference
  • 🔄 Automatic Setup: Handles model downloading and environment setup
  • 🛠️ MCP Integration: Standardized protocol for seamless tool usage

🎯 Use Cases

  • Content Analysis: Automatically generate descriptions for image content
  • Accessibility: Create alt text for visually impaired users
  • Data Extraction: Extract specific information from images through targeted questions
  • Object Verification: Confirm the presence of specific objects in images
  • Scene Understanding: Analyze complex scenes and their components

🚀 Quick Start

Prerequisites

  • Node.js v18 or higher
  • Python 3.8+
  • UV package manager (automatically installed if not present)

Installation

  1. Clone and Setup
git clone <repository-url>
cd moondream-server
pnpm install
  1. Build the Server
pnpm run build

The server handles the rest automatically:

  • Creates Python virtual environment
  • Installs UV if not present
  • Downloads and sets up the Moondream model
  • Manages the model server process

Integration with Claude/Cline

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"]
    }
  }
}

🛠️ Available Tools

analyze_image

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 image

Examples:

// 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?"
}

🔧 Technical Details

Architecture

The server operates as a dual-component system:

  1. MCP Interface Layer

    • Handles protocol communication
    • Manages tool interfaces
    • Processes requests/responses
  2. Moondream Model Server

    • Runs the vision model
    • Processes image analysis
    • Provides HTTP API endpoints

Model Information

Uses the Moondream quantized model:

  • Default: moondream-2b-int8.mf.gz
  • Efficient 8-bit quantization
  • Automatic download from Hugging Face
  • ~500MB model size

Performance

  • Fast startup with automatic caching
  • Efficient memory usage through quantization
  • Responsive API endpoints
  • Concurrent request handling

🔍 Debugging

Common issues and solutions:

  1. Model Download Issues

    # Manual model download
    wget https://huggingface.co/vikhyatk/moondream2/resolve/main/moondream-0_5b-int4.mf.gz
  2. Server Port Conflicts

    • Default port: 3475
    • Check for process using: lsof -i :3475
  3. Python Environment

    • UV manages dependencies
    • Check logs in temp directory
    • Virtual env in system temp folder

🤝 Contributing

Contributions welcome! Areas of interest:

  • Additional model support
  • Performance optimizations
  • New analysis capabilities
  • Documentation improvements

📄 License

[Add your license information here]

🙏 Acknowledgments