Listed from the MCP registry; nobody on Odel publishes it.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Distributed as an MCP bundle (`https://github.com/jkawamoto/mcp-florence2/releases/download/v0.5.4/mcp-florence2.mcpb`) — download it and import the bundle in your MCP client.
English | 日本語
Florence-2 MCP Server brings local vision intelligence and Optical Character Recognition (OCR) to your AI assistants via the Model Context Protocol (MCP). Powered by Microsoft's Florence-2 foundation model, it lets your LLMs inspect, caption, and extract text from local images, web URLs, and multi-page PDF documents — entirely offline and on your own machine.
--cache-model flag is available for low-latency continuous usage..mcpb bundle for Claude Desktop, 1-click deeplink for LM Studio, and extension support for Goose.Choose your preferred MCP client below:
mcp-florence2.mcpb bundle from the Releases page..mcpb file, or drag-and-drop it into Claude Desktop's Settings window.Add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"florence-2": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-florence2",
"mcp-florence2"
]
}
}
}
Note
Config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonFor more details, see Connect to local MCP servers.
Click the link below to launch the Goose extension installer:
goose://extension?cmd=uvx&arg=--from&arg=git%2Bhttps%3A%2F%2Fgithub.com%2Fjkawamoto%2Fmcp-florence2&arg=mcp-florence2&id=florence2&name=Florence-2&description=An%20MCP%20server%20for%20processing%20images%20using%20Florence-2
Add the following to ~/.config/goose/config.yaml:
extensions:
florence2:
name: Florence-2
cmd: uvx
args: [ --from, git+https://github.com/jkawamoto/mcp-florence2, mcp-florence2 ]
enabled: true
type: stdio
For more details, refer to Using Extensions | goose.
Click the button below to install directly into LM Studio:
You can connect any client that supports stdio MCP servers using uvx:
uvx --from git+https://github.com/jkawamoto/mcp-florence2 mcp-florence2
The server automatically equips your AI assistant with the following vision capabilities. You can interact with them using natural language:
ocrExtracts all visible text from images or multi-page PDF documents.
/path/to/invoice.pdf."| Parameter | Type | Required | Description |
|---|---|---|---|
src | string | Yes | Local file path or HTTP/HTTPS URL of an image or PDF file. |
captionGenerates comprehensive, detailed captions describing what is depicted in the image.
https://example.com/photo.jpg."| Parameter | Type | Required | Description |
|---|---|---|---|
src | string | Yes | Local file path or HTTP/HTTPS URL of an image or PDF file. |
processExecutes custom Florence-2 task prompts directly against the input image or PDF for advanced computer vision workflows (such as object detection or region captioning).
| Parameter | Type | Required | Description |
|---|---|---|---|
src | string | Yes | Local file path or HTTP/HTTPS URL of an image or PDF file. |
prompt | string | Yes | Task prompt specifying the operation to perform. |
| Task Prompt | Description |
|---|---|
<CAPTION> | Concise one-sentence summary of the image. |
<DETAILED_CAPTION> | Moderate-length description of the image content. |
<MORE_DETAILED_CAPTION> | Highly detailed and exhaustive scene description. |
<OCR> | Plain text extraction from the image. |
<OCR_WITH_REGION> | Text extraction along with bounding box coordinates. |
<OD> | Object detection (identifies objects and their bounding boxes). |
<DENSE_REGION_CAPTION> | Generates descriptions for multiple distinct regions. |
<REGION_PROPOSAL> | Identifies candidate bounding boxes for prominent visual regions. |
The server can be customized using command-line arguments:
mcp-florence2 [OPTIONS]
| Option | Type | Default | Description |
|---|---|---|---|
--model | string | florence-community/Florence-2-large | Hugging Face model identifier to load. |
--cache-model | flag | false | Keeps the model in VRAM for faster repeated calls (by default, models run in subprocesses to free memory when idle). |
--version | flag | - | Show version information. |
--help | flag | - | Show help message and exit. |
If you have limited GPU memory or want faster execution, switch to Florence-2-base:
{
"mcpServers": {
"florence-2": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-florence2",
"mcp-florence2",
"--model",
"florence-community/Florence-2-base"
]
}
}
}
When processing URLs starting with http:// or https://, outbound HTTP requests are initiated directly from the server process. In environments where untrusted users or prompts may supply URLs, this could potentially expose the server to Server-Side Request Forgery (SSRF) targeting internal network services or cloud metadata endpoints.
Warning
In multi-tenant or untrusted environments, route outgoing HTTP(S) traffic through an SSRF-safe forward proxy (such as Smokescreen or Squid configured to block private/internal IP ranges).
Since Python's requests library automatically respects standard environment variables, proxy settings can be configured directly in your client configuration:
HTTP_PROXY / http_proxy: Proxy URL for HTTP requests.HTTPS_PROXY / https_proxy: Proxy URL for HTTPS requests.NO_PROXY / no_proxy: Comma-separated list of hosts to bypass the proxy.Add the env block to claude_desktop_config.json:
{
"mcpServers": {
"florence-2": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-florence2",
"mcp-florence2"
],
"env": {
"HTTP_PROXY": "http://proxy.example.com:8080",
"HTTPS_PROXY": "http://proxy.example.com:8080"
}
}
}
}
Add the env block to ~/.config/goose/config.yaml:
extensions:
florence2:
name: Florence-2
cmd: uvx
args: [ --from, git+https://github.com/jkawamoto/mcp-florence2, mcp-florence2 ]
env:
HTTP_PROXY: "http://proxy.example.com:8080"
HTTPS_PROXY: "http://proxy.example.com:8080"
enabled: true
type: stdio
This project uses uv for fast, reliable dependency management.
# Clone the repository
git clone https://github.com/jkawamoto/mcp-florence2.git
cd mcp-florence2
# Install dependencies and run tests
uv run pytest
# Run pre-commit checks
uv run pre-commit run --all-files
This application is released under the MIT License.