videre-mcp

videre-mcp

Bridges vision models to text-only coding models using Florence-2, enabling non-vision LLMs to describe images, extract text, and analyze screenshots via MCP tools.

Category
访问服务器

README

videre-mcp

MCP server that bridges vision models to text-only coding models using Florence-2.

Non-vision LLMs can't see images — videre-mcp fixes that. It loads a Florence-2 vision model locally and exposes six MCP tools that convert images (including SVGs) and screenshots into structured text descriptions that any text-based model can consume.

Screenshot tool → videre-mcp (Florence-2) → Text description → Coding model

Installation

pip install videre-mcp

Or with uv:

uv pip install videre-mcp

Requires Python 3.11+ and ~300MB disk space for the Florence-2-base model weights (downloaded automatically on first use).

Usage

Add to your OpenCode configuration:

{
  "mcpServers": {
    "videre-mcp": {
      "command": "videre-mcp"
    }
  }
}

Or run directly:

videre-mcp
# or
python -m videre_mcp

Model Modes

All Florence-2 tools support a model_mode parameter to balance speed and quality:

  • "fast" (default) — Uses Florence-2-base. Fast, lightweight, runs on CPU/GPU.
  • "deep" — Uses MiniCPM-V 4.6. Significantly higher quality for complex visual reasoning.
    • Requires: pip install videre-mcp[deep]
    • Hardware: ~8GB VRAM recommended.

Tools

describe_image

Generate a natural language description of an image.

Parameters:

  • image_path (str) — Path to the image file (supports PNG, JPEG, SVG)
  • detail_level (str, optional) — "normal" (default) for brief caption, "high" for detailed description
  • model_mode (str, optional) — "fast" (default) or "deep"

Example:

result = describe_image("/path/to/photo.png", detail_level="high")
# Returns:
# {
#   "description": "A sunlit meadow with wildflowers in bloom...",
#   "model": "Florence-2-base",
#   "prompt_used": "<MORE_DETAILED_CAPTION>"
# }

ocr_image

Extract text from an image using optical character recognition.

Parameters:

  • image_path (str) — Path to the image file (supports PNG, JPEG, SVG)
  • detail_level (str, optional) — "normal" (default) for plain text, "high" for text with bounding regions
  • model_mode (str, optional) — "fast" (default) or "deep"

Example:

result = ocr_image("/path/to/document.png", detail_level="high")
# Returns:
# {
#   "text": "Invoice Number 12345",
#   "regions": [
#     {"label": "Invoice Number 12345", "bbox": [10, 20, 30, 40, 50, 60, 70, 80]}
#   ]
# }

describe_screenshot

Describe UI regions in a screenshot — designed for coding agents that need to understand screen layouts.

Parameters:

  • image_path (str) — Path to the screenshot file (supports PNG, JPEG, SVG)
  • detail_level (str, optional) — "normal" (default) for dense region captions, "high" for per-region descriptions
  • model_mode (str, optional) — "fast" (default) or "deep"

Example:

result = describe_screenshot("/path/to/screenshot.png")
# Returns:
# {
#   "regions": [
#     {"bbox": [10, 20, 30, 40], "label": "search bar"},
#     {"bbox": [100, 200, 300, 250], "label": "submit button"}
#   ],
#   "model": "Florence-2-base"
# }

take_screenshot

Capture a screenshot and optionally describe it using Florence-2. Supports multi-monitor setups via the monitor parameter.

Parameters:

  • output_path (str, optional) — Path to save the screenshot PNG. If None, saves to a temp file.
  • monitor (int, optional) — Monitor index: 0 = all monitors combined, 1 = primary, etc. (default: 0)
  • describe (bool, optional) — If True, also run describe_screenshot on the captured image (default: True)
  • model_mode (str, optional) — "fast" (default) or "deep"

Example:

result = take_screenshot(monitor=1, describe=True)
# Returns:
# {
#   "path": "/tmp/tmpxxxxxx.png",
#   "width": 1920,
#   "height": 1080,
#   "monitor": 1,
#   "regions": [
#     {"label": "search bar", "bbox": [10, 20, 30, 40]},
#     ...
#   ]
# }

ocr_paddle

Dedicated OCR using PaddleOCR (100+ languages, PP-OCRv6). Superior accuracy for multi-language documents.

Parameters:

  • image_path (str) — Path to the image file
  • language (str, optional) — Language code: "en", "ch", "japan", "korean", "french", "german", "spanish", "arabic", "multilingual", etc. (default: "en")
  • detail_level (str, optional) — "normal" for plain text, "high" for text with bounding boxes and confidence scores
  • use_angle_cls (bool, optional) — Use angle classification to correct rotated text (default: True)

Requires: pip install videre-mcp[paddle]

Example:

result = ocr_paddle("/path/to/document.png", language="multilingual", detail_level="high")
# Returns:
# {
#   "text": "Invoice Number 12345\nDate: 2024-01-15",
#   "regions": [
#     {"text": "Invoice Number 12345", "bbox": [...], "confidence": 0.98}
#   ]
# }

parse_document

Parse documents (PDF, DOCX, PPTX, HTML, MD) into structured output using IBM Docling. Extracts text, tables, charts, formulas, and code blocks.

Parameters:

  • file_path (str) — Path to the document file
  • output_format (str, optional) — "markdown" (default), "json", "text", or "html"
  • extract_tables (bool, optional) — Extract and structure tables (default: True)
  • extract_images (bool, optional) — Extract embedded images (default: False)

Requires: pip install videre-mcp[docling]

Example:

result = parse_document("/path/to/report.pdf", output_format="markdown", extract_tables=True)
# Returns:
# {
#   "content": "# Report Title\n\n...",
#   "metadata": {"title": "...", "author": "...", "pages": 10},
#   "tables": [...]
# }

Optional Dependencies

Extra Package Enables
[deep] accelerate, bitsandbytes MiniCPM-V 4.6 deep mode (~8GB VRAM)
[docling] docling>=2.0.0 Document parsing (PDF, DOCX, PPTX, HTML, MD)
[paddle] paddleocr>=2.8.0 PaddleOCR (100+ languages)
[optimize] dspy-ai>=2.5.0 DSPy prompt optimization CLI

Install with: pip install videre-mcp[deep,docling]

Requirements

  • Python 3.11+
  • ~300MB disk for model weights (auto-downloaded on first inference)
  • Works on CPU; GPU (CUDA) is auto-detected and used if available

Continuous Integration

The Florence-2 slow tests (real model load + inference) run on a nightly schedule via GitHub Actions. See .github/workflows/slow-tests.yml.

License

MIT — see LICENSE.

Third-party licenses

This package vendors a patched copy of Microsoft's Florence-2 processor (src/videre_mcp/_vendor/processing_florence2.py) under Microsoft's MIT license. See src/videre_mcp/_vendor/LICENSE-Microsoft-Florence-2.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选