Florence-2 图像处理服务器

Florence-2 图像处理服务器

一个使用 Florence-2 处理图像的 MCP 服务器,支持 OCR 文本提取和图像描述生成。

快速入门

安装

Claude Desktop 配置

编辑 claude_desktop_config.json 文件,在 mcpServers 中添加以下内容:

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

保存后重启应用。

Goose CLI 配置

编辑配置文件 ~/.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 配置

在扩展设置中添加以下内容:

  • 类型:Standard IO
  • ID:florence-2
  • 名称:Florence-2
  • 描述:使用 Florence-2 处理图像的 MCP 服务器
  • 命令:uvx --from git+https://github.com/jkawamoto/mcp-florence2 mcp-florence2

工具

  • ocr:通过 OCR 提取图像中的文本,参数 src 指定图像路径或 URL。
  • caption:生成图像描述,参数 src 指定图像路径或 URL。