Skip to main content
Glama
Florence-2 MCP Server

Florence-2 MCP Server

by jkawamoto

Florence-2 MCP 服务器

Python应用程序 GitHub 许可证预先提交 拉夫 铁匠徽章

使用Florence-2处理图像的 MCP 服务器。

您可以处理存储在本地或 Web 服务器上的图像或 PDF 文件,以使用 OCR(光学字符识别)提取文本或生成总结图像内容的描述性标题。

安装

对于克劳德桌面

要为 Claude Desktop 配置此服务器,请在mcpServers下使用以下条目编辑claude_desktop_config.json文件:

{
  "mcpServers": {
    "florence-2": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/jkawamoto/mcp-florence2",
        "mcp-florence2"
      ]
    }
  }
}

编辑完成后,重新启动应用程序。更多信息,请参阅:针对 Claude 桌面用户 - 模型上下文协议。

对于 Goose CLI

要在 Goose CLI 中启用 Bear 扩展,请编辑配置文件~/.config/goose/config.yaml以包含以下条目:

extensions:
  bear:
    name: Florence-2
    cmd: uvx
    args: [ --from, git+https://github.com/jkawamoto/mcp-florence2, mcp-florence2 ]
    enabled: true
    type: stdio

适用于 Goose Desktop

使用以下设置添加新扩展:

  • 类型:标准IO

  • ID :florence-2

  • 名称:佛罗伦萨-2

  • 描述:使用 Florence-2 处理图像的 MCP 服务器

  • 命令: uvx --from git+https://github.com/jkawamoto/mcp-florence2 mcp-florence2

有关在 Goose Desktop 中配置 MCP 服务器的更多详细信息,请参阅文档:使用扩展 - MCP 服务器。

Related MCP server: 🪄 ImageSorcery MCP

工具

光学字符识别

使用 OCR 处理图像文件或 URL 以提取文本。

参数:

  • src :需要处理的图像文件的文件路径或 URL。

标题

处理图像文件并生成图像的标题。

参数:

  • src :需要处理的图像文件的文件路径或 URL。

执照

此应用程序采用 MIT 许可证。有关更多详细信息,请参阅许可证文件。

Available Tools

3 tools
captionA

Processes an image file and generates captions for the image.

Inputs: src (required). Returns: result

ocrB

Process an image file or URL using OCR to extract text.

Inputs: src (required). Returns: result

processB

Processes an image file with a custom prompt using the Florence-2 model.

Inputs: src (required), prompt (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 3 tools

    Disambiguation3/5

    The 'process' tool is generic and overlaps with 'caption', as captioning is a specific use case that could be handled by process. 'ocr' is distinct. The descriptions help clarify intended use, but the boundary between process and caption is not fully clear.

    Naming Consistency4/5

    All tools use a single lowercase verb (process, caption, ocr), which is consistent in style. However, the lack of noun objects (e.g., 'process_image' vs 'process') makes them slightly less predictable, but the pattern is uniform.

    Tool Count4/5

    With 3 tools, the server is on the lighter side but within a reasonable range for a focused vision model server. It covers the core capabilities without being bloated, though it could benefit from a few more specialized tools.

    Completeness3/5

    The tools cover generic processing, captioning, and OCR, but Florence-2 supports many other vision tasks (e.g., object detection, segmentation, grounding) that are not exposed. The generic 'process' tool mitigates some gaps, but the surface feels incomplete for the model's full potential.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers