MCP-Florence2 图像处理服务器
用于使用Florence-2处理图像的MCP服务器。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"florence-2": {
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-florence2",
"mcp-florence2"
],
"command": "uvx"
}
}
}
可用工具 (2 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
ocr 1 个参数 需填 1 项
Process an image file or URL using OCR to extract text.
必填参数:src
caption 1 个参数 需填 1 项
Processes an image file and generates captions for the image.
必填参数:src
服务介绍
Florence-2 MCP 服务器
这是一个使用 Florence-2 处理图像的MCP服务器。
您可以处理存储在本地或网络服务器上的图像或PDF文件,通过OCR(光学字符识别)提取文本,或者生成描述性标题以总结图像内容。
安装
对于 Claude 桌面版
要为 Claude 桌面版配置此服务器,请编辑 claude_desktop_config.json 文件,在 mcpServers 下添加以下条目:
{
"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 桌面版
添加一个新的扩展,设置如下:
- 类型: 标准 IO
- ID: florence-2
- 名称: Florence-2
- 描述: 一个使用 Florence-2 处理图像的MCP服务器
- 命令:
uvx --from git+https://github.com/jkawamoto/mcp-florence2 mcp-florence2
有关在 Goose 桌面版中配置MCP服务器的更多详细信息,请参考文档:使用扩展 - MCP 服务器。
工具
ocr
使用OCR处理图像文件或URL以提取文本。
参数:
- src: 需要处理的图像文件的文件路径或URL。
caption
处理图像文件并为图像生成标题。
参数:
- src: 需要处理的图像文件的文件路径或URL。
许可证
本应用程序根据 MIT 许可证发布。更多详情请参阅 LICENSE 文件。