MCP Hub
Back to servers

moondream-api-mcp

MCP server for Moondream AI vision API with caption, query, detect, point, and segment capabilities

npm117/wk
Updated
Apr 16, 2026

Quick Install

npx -y moondream-api-mcp

Moondream API MCP Server

npm version npm downloads

A Model Context Protocol (MCP) server that provides access to Moondream AI's vision API capabilities.

Features

  • Caption: Generate natural language descriptions of images
  • Query: Ask questions about images (Visual Question Answering)
  • Detect: Detect objects with bounding boxes
  • Point: Find center coordinates of objects
  • Segment: Generate SVG masks for objects

Installation

npm install -g moondream-api-mcp

API Key

Get your API key from https://moondream.ai/me/api-keys

Usage

With npx (no install required)

npx moondream-api-mcp --api-key YOUR_API_KEY

With npx using environment variable

export MOONDREAM_API_KEY=YOUR_API_KEY
npx moondream-api-mcp

Command Line

node src/index.js --api-key YOUR_API_KEY

Environment Variable

export MOONDREAM_API_KEY=YOUR_API_KEY
node src/index.js

As global CLI

npm install -g moondream-api-mcp
moondream-api-mcp --api-key YOUR_API_KEY

Available Tools

ToolDescription
captionGenerate a description of an image
queryAsk a question about an image
detectDetect objects in an image
pointFind coordinates of an object
segmentGenerate an SVG mask for an object

Image Input

All tools accept:

  • Remote URLs (http/https)
  • Local file paths
  • Base64 encoded image data

Usage with Opencode

Add to your opencode.json or opencode.config.js:

{
  "mcpServers": {
    "moondream": {
      "command": "npx",
      "args": ["moondream-api-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}

Or with environment variable:

{
  "mcpServers": {
    "moondream": {
      "command": "moondream-api-mcp"
    }
  }
}

Then set MOONDREAM_API_KEY in your environment.

Once configured, you can use the tools in Opencode:

  • "Caption what's in this image"
  • "Detect all cars in this image"
  • "What objects are in this image?"

Reviews

No reviews yet

Sign in to write a review