OpenSight MCP

OpenSight MCP

Multi-backend AI vision for MCP agents. Analyze images, screenshots, and documents using local Ollama models or cloud APIs like OpenAI, Google Gemini, and OpenRouter.

Category
访问服务器

README

👁️ OpenSight MCP

npm version Node.js License: MIT MCP

Multi-backend AI vision for MCP agents. Analyze images, screenshots, and documents using local Ollama models (private, uncensored) or cloud APIs (OpenAI, Google Gemini, OpenRouter). Works with any MCP-compatible coding agent.

Quick Start

npx opensight-mcp@latest
Best for Install
Local & Private Privacy-first, uncensored, no API keys ollama pull minicpm-v:latest
Free Tier APIs Zero-cost cloud vision via Google/OpenRouter Set GOOGLE_API_KEY or OPENROUTER_API_KEY
Paid APIs OpenAI GPT-4o, Claude Vision, any OpenAI-compatible Set OPENAI_API_KEY

🎯 Why OpenSight?

Local & Private Free Tiers Multi-Vendor Agent-Native
Ollama runs on your hardware. No data leaves your network. Uncensored models. Google Gemini Flash and OpenRouter offer free vision tiers. Zero cost to start. One tool, any backend. Swap providers with an env var — no code changes. Purpose-built for MCP agents. Clipboard, file paths, URLs, base64 — all supported.

📦 Installation

Standard config (all MCP clients)

{
  "mcpServers": {
    "opensight": {
      "command": "npx",
      "args": ["opensight-mcp@latest"],
      "env": {
        "OLLAMA_HOST": "127.0.0.1:11434",
        "VISION_MODEL": "minicpm-v:latest"
      }
    }
  }
}

<details> <summary><b>OpenCode</b></summary>

Add to ~/.config/opencode/opencode.jsonc:

{
  "mcp": {
    "opensight": {
      "type": "local",
      "command": ["npx", "opensight-mcp@latest"],
      "enabled": true,
      "env": {
        "OLLAMA_HOST": "192.168.46.34",
        "VISION_MODEL": "minicpm-v:latest"
      }
    }
  }
}

</details>

<details> <summary><b>Claude Code</b></summary>

claude mcp add opensight npx opensight-mcp@latest

</details>

<details> <summary><b>Claude Desktop</b></summary>

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "opensight": {
      "command": "npx",
      "args": ["opensight-mcp@latest"],
      "env": {
        "OLLAMA_HOST": "127.0.0.1:11434",
        "VISION_MODEL": "minicpm-v:latest"
      }
    }
  }
}

</details>

<details> <summary><b>Cursor</b></summary>

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "opensight": {
      "command": "npx",
      "args": ["opensight-mcp@latest"]
    }
  }
}

</details>

<details> <summary><b>VS Code</b></summary>

code --add-mcp '{"name":"opensight","command":"npx","args":["opensight-mcp@latest"]}'

</details>

<details> <summary><b>Windsurf / Cline / Other</b></summary>

Use the standard config above. Same pattern for all MCP-compatible clients. </details>

<details> <summary><b>Hermes</b></summary>

Add to ~/.hermes/config.yaml:

mcp_servers:
  opensight:
    command: "npx"
    args: ["-y", "opensight-mcp@latest"]
    env:
      OLLAMA_HOST: "127.0.0.1:11434"
      VISION_MODEL: "minicpm-v:latest"

Then reload:

/reload-mcp

Verify it's loaded:

Tell me which MCP-backed tools are available right now.

</details>

Manual install (for development)

git clone https://github.com/Mr-JoE1/opensight-mcp.git
cd opensight-mcp
npm install
npm test

🛠️ Tools

<details open> <summary><b>Vision Analysis</b></summary>

  • vision.analyze_image — General-purpose image analysis. Accepts data URIs (clipboard paste), base64, URLs, or file paths. Configurable system prompt, model, temperature.
  • vision.describe — UI/QA-focused screenshot analysis. Defaults to a QA system prompt that identifies errors, warnings, and layout issues.
  • vision.clipboard — Read and analyze images directly from the OS clipboard. Uses clipboardy for cross-platform support (macOS/Windows built-in, Linux needs xclip/wl-clipboard).
  • vision.find_images — Scan common directories (~/Downloads, ~/Pictures, /tmp) for recently modified images. Zero dependencies — pure Node.js fs. </details>

<details> <summary><b>OCR & Text</b></summary>

  • vision.ocr — Extract text from images using VLM or Tesseract OCR. Supports structured JSON output with text block types.
  • vision.find_text — Locate specific text in an image with bounding box coordinates. Supports fuzzy matching. </details>

<details> <summary><b>Operations</b></summary>

  • vision.warmup — Pre-load the vision model into GPU VRAM to eliminate cold-start latency.
  • vision.health — Check backend connection status and list available models. </details>

🔌 Backends

Configure via environment variables. The default is Ollama (local, no API keys needed).

Provider Env Var Free Tier Best For
Ollama OLLAMA_HOST ✅ (your hardware) Privacy, uncensored, offline
Google Gemini GOOGLE_API_KEY ✅ (Flash 2.0) Free tier, high accuracy
OpenRouter OPENROUTER_API_KEY ✅ (qwen-vl free) Multi-model, free tier
OpenAI OPENAI_API_KEY ❌ GPT-4o, best quality

Set the active provider:

# Use Google Gemini (free tier)
export VISION_PROVIDER=google
export GOOGLE_API_KEY=your_key_here

# Use OpenAI (paid)
export VISION_PROVIDER=openai
export OPENAI_API_KEY=sk-...

# Use OpenRouter (free qwen-vl)
export VISION_PROVIDER=openrouter
export OPENROUTER_API_KEY=your_key_here

# Default: Ollama (local)
export OLLAMA_HOST=192.168.46.34:11434

⚙️ Configuration

All settings via environment variables:

Variable Default Description
OLLAMA_HOST 192.168.46.34 Ollama server host:port
OLLAMA_PORT 11434 Ollama API port
VISION_MODEL minicpm-v:latest Default vision model
OCR_MODEL minicpm-v:latest Default OCR model
VISION_PROVIDER ollama Backend: ollama, openai, google, openrouter
OPENAI_API_KEY — OpenAI API key
GOOGLE_API_KEY — Google Gemini API key
OPENROUTER_API_KEY — OpenRouter API key
MAX_TOKENS 2048 Max response tokens
VISION_WARMUP_ON_START 1 Auto-warmup model on server start
VISION_KEEP_ALIVE 10m Model keep-alive duration
VISION_TIMEOUT_MS 120000 Request timeout (ms)
VISION_MAX_RETRIES 3 Retry attempts on failure

🏃 CLI Usage

# Health check
npx opensight-mcp health
# or
vlm health

# Analyze an image
vlm describe --image screenshot.png --prompt "What errors are visible?"

# Extract text (OCR)
vlm ocr --image document.png --engine vlm

# Find text with coordinates
vlm find --image app.png --query "Submit button"

🤖 Recommended Models

Model Size Best For
minicpm-v:latest ~5.5 GB Default. General analysis, OCR, UI. Fast and accurate.
llava:7b ~4 GB Lightweight fallback for limited VRAM
gemini-2.0-flash Cloud Free tier, Google quality
qwen/qwen2.5-vl-32b-instruct:free Cloud Free tier via OpenRouter
gpt-4o Cloud Best quality (paid)

🔧 Development

git clone https://github.com/Mr-JoE1/opensight-mcp.git
cd opensight-mcp
npm install
npm test                 # 21 unit tests via node:test
npm run test:watch       # Watch mode
opensight-mcp/
├── vision-mcp.mjs          # Main MCP server (8 tools)
├── vlm.mjs                 # CLI tool
├── src/
│   ├── helpers.mjs         # Pure utility functions (tested)
│   └── providers.mjs       # Multi-backend abstraction
├── tests/
│   └── helpers.test.mjs    # 21 unit tests
└── opensight-wrapper.sh    # MCP wrapper with env defaults

📄 License

MIT — see LICENSE.


Made for coding agents. Private by default. Cloud when you need it.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选