FusionVisionMCP
FusionVisionMCP is a local vision server for OCR, image captioning, object detection/counting, spatial measurement, image Q&A, aesthetic and composition analysis, and batch processing.
Extract text from images or PDFs with OCR, optionally returning span-level bounding boxes and confidence scores; multi-column layouts are read in order.
Generate detailed whole-image prose captions, with optional text verification/correction and auto-verification against OCR.
Run raw Florence-2 task tokens as an escape hatch for custom supported tasks.
Detect named objects and return bounding boxes, center points, and labels; optionally save an annotated image.
Caption every salient region in an image with boxes, without naming objects first.
Count instances of a named object, with optional consensus, silhouette checks, threshold/adaptive-threshold controls, and annotated output.
Measure spatial relations between named objects: contact, gap, containment/overlap, depth, elongation, straightness, and end symmetry.
Answer free-form questions about an image, with optional consistency checks, cross-checks to measurements, and structured anomaly analysis.
Score images for aesthetics on a rough 1–10 scale, with optional medium/style context and reference-image comparison.
Critique composition/framing: locate the subject, measure thirds/center offsets and subject size, include aesthetic score, and explain low-scoring images.
Process local paths, HTTP(S) URLs, and PDFs page by page; batch the same operation across many images with per-image failure isolation.
Provides aesthetic scoring with technical quality and artistic judgment via Ollama models.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FusionVisionMCP Count the number of people in this image."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FusionVisionMCP: Multi-model Vision Server
🚧 Work in progress — see README_DETAILED.md for current limits and measured results before relying on this for anything important.
An MCP server that fuses local, CPU-capable vision models — Florence-2, Moondream2, LFM2.5-VL, SAM 3, SAM2, Grounding DINO, PP-OCRv6, EasyOCR, IQA, and CLIP/LAION — behind twelve tools: OCR, captioning, object detection/grounding, instance counting, visual question answering, multiple-choice classification, spatial measurement (touch/gap/containment), and aesthetic scoring (including technical quality), plus a server_status report on what it holds in memory.
Quick Navigation
What it is, and isn't | Why FusionVisionMCP? | Tools | Installation | Memory Modes | Architecture
What this server is, and isn't
FusionVisionMCP is a set of perception tools for a model that makes the decisions; it does not replace that model. Every output is either a measurement or a small model's opinion with its measured figure, and each tool's description opens with what it can be relied on for.
Rely on it:
ocr's text (andcaption'sVisible textline),spatial_relations' contact and containment,classify_imageat probability 0.5 or more,measure_framing's placement and size.Evidence to weigh:
query_imageanswers (75-94% right by kind of question; the 94% is for questions that are naturally yes/no, and rephrasing an open question as yes/no gained under 4 points), caption prose,detect_objects' first box,count_objects' counts (re-made from LFM3-VL-2B's boxes since 2026-11-27: a reported 1 was exact about 79-83% of the time on present objects, 2 or more 59-96%; about 86-88% whencount_agreementshows LFM2.5's own count agreeing and about 30-45% when it doesn't; a patterned object can be counted part by part; usecrowd_rangefor crowds),score_aestheticsrankings. The output carries these figures itself:kind_reliabilityon eachquery_imageanswer,count_reliability(by the count reported),count_agreementandpresence_noteoncount_objects,trustper box ondetect_objects, anddefect_statuswith the probe's two operating figures onstructured_analysis.Don't rely on it: whether something is present at all, from any tool (21-42% false "present" on absent objects); a missing
ocrline on blurred or small text; handwriting; "no defects" from the defect probe; absolute aesthetic verdicts.
Measured against frontier models: frontier_capability_gaps.md.
Related MCP server: vision-mcp
Why FusionVisionMCP?
I kept running computer-vision tasks through Claude's native (frontier-model) vision and burning through a 5-hour usage allocation in about an hour — CV work is token-hungry in a way that's easy to underestimate until you watch the budget disappear. Moving that work to my GPU wasn't an option either: the GPU was already committed to image generation, and running vision inference alongside those testing loops would have contended for the same VRAM.
What was sitting idle was CPU and system RAM. FusionVisionMCP runs Florence-2, Moondream2, SAM2, Grounding DINO
and CLIP entirely on CPU, so routine vision work — reading text, describing an image, counting objects, checking
whether two things touch — no longer has to spend a frontier model's own multimodal tokens. Building it out also
meant finding the gaps against Claude's native vision one by one and closing them; it's now close to that
capability for most everyday CV tasks, and a few tools here (spatial_relations' touch/gap/containment
measurement, count_objects' parallel-query instance counting) aren't things Claude's native vision does at all.
The remaining gaps are structural, not tunable — a caption head that paraphrases text, a small VQA model that can't be trusted for open-ended judgment, a detector with no notion of what separates a spot from a petal, an aesthetic score trained on photographs alone. Neither v0.6.0 nor v0.7.0 closes those (they're not closable locally). v0.6.0 added opt-in parameters to four tools that surface the failure instead of hiding it — a cross-checkable text span next to a caption's guess, a consistency flag on a VQA answer, a second opinion plus a separability flag on an ambiguous count, a medium classification alongside an aesthetic score. v0.7.0 turns each of those flags into an actionable result by combining tools already in the project, no new models: the caption gets an auto-corrected copy, a collapsed count gets an outline-based estimate, a low-confidence VQA answer routes to the measurement that actually answers the question, and the aesthetic score gains a calibrated like-with-like comparison mode. v0.7.1 fixed six further gaps that a second head-to-head pass against Claude's native vision turned up (a partially-occluded object recovered at the detector's existing default threshold, a segmentation occlusion hole no longer defeats containment, a false column split on sparse small text, clip-art counting, a blank-canvas false detection, and a "which is largest/smallest" VQA question routed to a real measurement) — each root-caused against the exact fixture that exposed it, not patched at the symptom. See README_DETAILED.md for what's verified against each case.
Capability | How it's provided |
OCR & document text | PaddleOCR PP-OCRv6 English via RapidOCR (ONNX, CPU) — printed, stylized and low-contrast text through one tool, with a per-span confidence score. EasyOCR covers non-English languages and the generated-gibberish check |
Captioning | LFM2.5-VL-3B (whole scene), Florence-2 (per region) |
Object detection / grounding | SAM 3 on photos and flat images (it can say "not here") — scored boxes and center points for a named object |
Instance counting | Grounding DINO — parallel object queries, not a sequential emission, so overlapping-but-separate instances don't collapse into one |
Visual question answering | LFM2.5-VL-3B (ONNX, the default caption's model) — free-form questions about image content |
Spatial measurement | SAM2 masks plus a from-scratch geometry module — touch, gap, containment depth, shape |
Aesthetic scoring | CLIP + a LAION-trained aesthetic head |
Memory footprint | Configurable idle-release timers, per model, chosen at install time |
Hardware | CPU by default; an NVIDIA GPU is opt-in at install time via the |
Tools
Tool | Model(s) | Description |
| PP-OCRv6 English | Transcribe any text in an image or PDF — printed, stylized or low-contrast alike — with a per-span confidence score. Multi-column pages are split by geometry and read in reading order. A sharpened second reading and, on pages with text, an LFM2.5-VL transcription ( |
| LFM2.5-VL-3B (ONNX; | Describe what an image shows as one detailed prose caption of the whole scene: key facts 71.0% vs 64.8% for Florence-2, its captioner before 2026-10-23, on 280 held-out images, at ~11 s vs ~7 s ( |
| SAM 3 (Florence-2 / Grounding DINO if it can't load) | Locate a named object, returning scored bounding boxes, center points and labels. On photos it rarely boxes an object that isn't there. |
| Florence-2 | Caption every salient region of an image at once, without naming objects first. |
| LFM2.5-VL-3B (ONNX) | Ask a free-form question about an image (visual question answering): 78.5% right vs 66.5% for Moondream2, its answerer before 2026-10-24, on 892 fresh questions, at ~5 s vs ~10 s, and far less prone to answering a false premise ("what does the sign say" with no sign). A question about text gets the |
| CLIP | Pick which of your labels an image shows (species, landmark, art style, kind of image), with a probability for each. 98.5% vs |
| Grounding DINO (photos), Florence-2 (flat images), then LFM3-VL-2B boxes | Count how many instances of a named object an image contains. Use this, not |
| Grounding DINO + SAM2 | Measure contact, gaps, containment depth and shape between two named objects. |
| CLIP + LAION | Rate how aesthetically pleasing an image looks on a 1-10 scale. |
| Florence-2 + CLIP/LAION + Moondream2 | Find the main subject and measure its framing: where it sits, how much of the frame it fills, rule-of-thirds offsets, and the aesthetic score; for low-scoring shots, a short note on what looks off. Also supports |
| (routes to any tool above) | Run one operation across many images in a single call, isolating failures per image. |
| Florence-2 | Run a raw Florence-2 task token for tasks the named tools don't cover. |
| (no model) | Report what the server holds in memory: models loaded, live free RAM, heavy calls running, and recent loads, releases and refusals with their reasons. For when a call was slow or refused. |
Full argument reference, measured accuracy, and known limits for each tool: README_DETAILED.md.
Example
Once connected, an assistant calls these tools on its own when a request needs them — there's nothing to invoke
by hand. For example, asking "How many bolts are in this photo?" with an image attached routes to
count_objects(src=..., object_name="bolt"), which returns:
{
"count": 6,
"bboxes": [[102, 44, 138, 79], "... 5 more"],
"scores": [0.91, "... 5 more"],
"group_boxes_dropped": 0
}What's genuinely new here, not just a wrapper
Most tools above expose one underlying model's own capability directly. Two do not — no single model in the stack answers these on its own:
spatial_relationscombines Grounding DINO boxes, SAM2 masks, and a from-scratch geometry module to measure whether two objects actually touch, contain, or overlap — a bounding box alone can't answer that, since boxes overlap the instant one object is merely in front of another.measure_framing(namedcritique_compositionuntil 2026-11-03) combines Florence-2 localization, a from-scratch rule-of-thirds check, the CLIP/LAION aesthetic score, and — only for low-scoring images — a Moondream2 explanation. It measures framing; it does not judge it.check_background=trueaddsbackground: {busy, reliability}(off by default since 2026-11-03, ~10 s), Moondream2's yes/no on whether the background competes with the subject: a hint, agreeing with a person's blind calls on 69% of 52 held-out photos. Without atarget_subject, Moondream2 now names the subject and Florence-2 boxes it (84.4% of boxes overlapping a labeller's on 96 fresh photos, against 75.0% for the old region pick). Since 2026-11-03framingalso names the subject's place and size in words (horizontal,vertical,size,area_share): the same fifth of the frame as a labeller's box on 88-90% (across) and 80-87% (down) of held-out photos, the same size class on 76-82%.
Installation
Claude Desktop
Download the latest MCP bundle
fusion-vision-mcp.mcpbfrom ReleasesOpen the downloaded
.mcpbfile, or drag it into Claude Desktop's Settings windowPick a Memory mode (or leave it on Standard and change it later)
Leave Compute device on cpu unless you have an NVIDIA GPU — see CPU or GPU
Also connectable from Cursor, Windsurf, VS Code, or any other MCP-compatible client via manual configuration below.
Manual Installation
Prerequisites
Python 3.12+
Git
8GB+ RAM recommended
Setup
git clone https://github.com/Whoawhen/FusionVisionMCP.git
cd FusionVisionMCP
uv sync --extra cpu --extra ocr-specialist --extra iqaUse --extra cu130 in place of --extra cpu for an NVIDIA GPU. Exactly one of the two is
required — see CPU or GPU for why, and why this needs uv rather than pip.
CPU or GPU
torch is not a plain dependency here. It sits behind two mutually exclusive extras, so the
build is chosen at install time:
Extra | Installs | Use it when |
|
| The default. Works everywhere, and downloads ~2 GB less. |
|
| You have an NVIDIA GPU and a driver supporting CUDA 13. |
Naming neither installs no torch, and the server will not load a model. That is the cost of
making the choice explicit; uv will not guess for you.
Why it is worth the friction: torch from the default index pulls 15 NVIDIA runtime packages
totalling 2.09 GB on Linux — cuDNN alone is 527 MB — into what is otherwise a CPU-only
server. Windows and macOS never saw this, because torch gates those packages on
sys_platform == 'linux', which is why the waste went unnoticed.
This requires uv, not pip. The index routing lives in [tool.uv.sources] and
[tool.uv.index], which pip ignores entirely — a pip install -e ".[cpu]" resolves torch
from PyPI and silently defeats the whole arrangement.
macOS takes its usual CPU/MPS build from PyPI either way: PyTorch's CPU index publishes only
manylinux_2_28_x86_64 and win_amd64 wheels, so the cpu extra deliberately does not apply
there. Use --extra cpu; you will get the right thing.
cu130 rather than cu128, for anyone wondering: the cu128 index stops at torch 2.9.1 and
this project requires torch>=2.13. Verified end to end on an RTX 5060 Laptop (Blackwell,
sm_120) — the wheel ships real sm_120 kernels, and fp16 matmul, cuDNN convolution and
scaled-dot-product attention all run correctly on it, which matters because every model wrapper
selects fp16 on a non-CPU device.
Configuration
{
"mcpServers": {
"fusionvision": {
"command": "uv",
"args": ["run", "fusion-vision-mcp", "--memory-mode", "standard"]
}
}
}Swap standard for aggressive, persistent, or any number of minutes.
Running several MCP clients at once (Claude Code with a few chats open, Cline, Claude Desktop)? Each starts its own
server and loads its own copy of the models. --transport streamable-http runs one server they all share instead:
see docs/shared_server.md.
System Requirements
RAM: 8GB minimum (16GB+ recommended)
Storage: 16GB free space for model weights (downloaded automatically on first use, then cached locally)
OS: Windows 10+, macOS 12+, or Linux
Memory Modes
Vision models are large. FusionVisionMCP lets you decide how long each one stays resident in memory after its last use, picked at install time — no config file required:
Mode | Models released | Best for |
Aggressive | After 5 minutes idle | Tight memory budgets, short bursts of work |
Standard (default) | After 10 minutes idle | Everyday use — fast during work, tidy afterwards |
Persistent | Never | Maximum speed on a dedicated machine |
Custom | After N minutes you set | Matching your own working rhythm |
Models reload automatically on the next request, so no setting can lose work — only time. Release is per model: a session that only captions never loads the segmentation or aesthetic models at all.
Architecture
The main models, each loaded on demand and released on its own idle timer:
Florence-2 (Microsoft) — OCR with regions, object detection/grounding, dense region captioning (and
captionwith--caption-model florence2)Moondream2 (Vikhyat) —
measure_framing's busy-background and subject hints (andquery_imagewith--vqa-model moondream)LFM2.5-VL-3B (Liquid AI) —
caption: ONNX Runtime for the default caption, bf16 fordeep=true(weights under the LFM Open License v1.0)LFM3-VL-2B (Liquid AI) —
count_objects' box count, ONNX Runtimeq8on CPU (weights under the LFM Open License v1.0, downloaded on first use, not redistributed)SAM2 (Meta) — segmentation masks, the basis for
spatial_relationsGrounding DINO (IDEA-Research) — open-vocabulary detection backing
count_objectsCLIP + LAION aesthetic head — aesthetic quality scoring
Runs on CPU by default. An NVIDIA GPU is opt-in at install time (the cu130 extra) and is then detected and used automatically; --device pins it either way. Because inference happens locally, no image
data leaves the machine, and the CPU/RAM budget it uses is generally idle capacity rather than resources
competing with a GPU-bound workload.
Originally derived from jkawamoto/mcp-florence2 (MIT), which
provides three tools — ocr, caption, process — against Florence-2 alone. This is no longer a fork: the
history was severed and the original mcp_florence2 package replaced outright. Parts of florence2.py are
still that project's code, so its copyright notice travels with them — see LICENSE.
License
This project is licensed under the MIT License — see the LICENSE file for details.
Available Tools
11 toolsbatch_analyze_imagesA
Run one operation across many images in a single call.
The batch form of caption, ocr, detect_objects, count_objects,
dense_region_caption and query_image -- pick which with operation. Use
it when the same question applies to a whole set of images, since it costs
one round trip instead of one per image and loads each model once for the
whole run.
Failures are isolated per image: a missing file or an unreachable URL is reported as its own {"src", "success": false, "error"} entry and the rest of the batch still runs. Results come back in the order given.
For a single image, call the named tool directly -- its arguments are
checked up front rather than depending on operation.
Inputs: srcs (required), operation (required), question, object_name. Returns: result
captionA
Describe what an image shows, as one detailed prose caption.
The default choice for "what is this a picture of". Returns a single paragraph covering the scene as a whole, with no coordinates.
Reach for a different tool when the question is narrower: query_image
to ask something specific about the image, dense_region_caption to get
a separate caption and box for each thing in it, and ocr to transcribe
text rather than describe it. Returns one caption per page for a PDF.
Do not trust any text this quotes back. A caption that mentions a name,
brand or label is describing it, not transcribing it, and Florence-2
misspells text here that it reads correctly under ocr -- it rendered a
logo reading "FusionVisionMCP" as "FusionVisionMP" mid-caption while ocr
read the same image exactly. When a specific piece of text matters,
confirm it with ocr, which handles stylized and cursive text as well as
printed text, rather than quoting this.
Set verify_text=true to have this confirmation done for you: the tool
also runs the OCR-with-region head and returns each verbatim text span
alongside its box, so a name the caption quoted can be checked against
what was actually read without a second call. It then goes further and
corrects the close misses: any caption token that is similar to (but
not identical to) a verbatim OCR span is substituted with the verbatim
text in a caption_corrected copy, and every such change is listed in
corrections (with the quoted-in-caption token, the verbatim OCR text,
the box and the similarity) so the substitution is auditable. The
return shape becomes one dict per page
({caption, text_regions, corrections, caption_corrected}) when this
is set. The correction is best-effort and only fires for high-similarity
same-word matches; the raw corrections list is always present so a
caller can audit or reject any change.
Set auto_verify_text=true to automatically detect when a caption quotes
embedded text or signage and run specialist OCR (EasyOCR) on
upscaled crops of the text regions, providing consensus metrics (text_consensus)
and warnings (caption_text_warning).
Inputs: src (required), verify_text, auto_verify_text. Returns: result
count_objectsA
Count how many instances of a named object an image contains.
Use this, not detect_objects, whenever the question is "how many".
detect_objects returns however many regions Florence-2's grounding head
emits, which is not a tally: it collapses several repeated, undifferentiated
parts into one box (every petal of a flower, both halves of a fused blade)
and conversely splits one object into overlapping sub-part boxes.
Returns count, plus bboxes/points/labels/scores for the instances
found, index-aligned and in the same pixel-space convention detect_objects
uses. scores are per-detection confidences, so a count resting on marginal
detections is visible rather than implied. group_boxes_dropped counts
detections that enclosed the whole arrangement rather than one instance.
Accuracy is measured, not assumed: against a fixture suite whose synthetic counts are exact by construction, this is right on 9 of 10 positive cases with a mean error of 0.1, while holding all 8 single-object controls. Separated, touching, dense, two-instance and awkwardly-named cases are reliable.
Two measured limits, worth checking before trusting a count:
Heavy overlap undercounts. Eight identical shapes in a ring count as 8 when separated or touching, but 6 once they overlap by roughly two-thirds of their width. A count below what you expect means "could not separate them", not a real tally -- and it will undercount rather than overcount.
Some evidence is simply not in the picture. On a photo of a paper flower whose
petals overlap, this returns 1 at every resolution from 128px to 768px, as does
every other approach tried -- other detectors, outline geometry, tiled crops,
and interior-colour analysis alike. That flower's outline is 98% convex and its
interior contrast is near zero, so nothing measurable distinguishes the petals.
Ask query_image for a count in that situation and treat it as an estimate.
When only one region is found, a silhouette block is added measuring how
many repeated lobes that region's outline contains. count and
silhouette.lobes come from different methods and neither overrides the
other: count: 1 beside silhouette.lobes: 8 means the detector could not
separate the instances while the outline shows eight cores. agreement: true
means a second, independent estimator matched it; shattered or clipped
mean the number should not be used at all.
Set consensus=true (the default) for two extra fields that surface
structural ambiguity instead of hiding it:
consensus:{detector_count, region_label_count, agree}-- a second count from Florence-2's dense region captioner (a different head), which tally how many region labels contain the object name. Agreement is real evidence; disagreement is a warning.separable:"yes"if the count is a real tally (the detector separated instances, or a single region the silhouette confirms is one lobe),"no"if the detector collapsed while the outline shows several lobes (the overlapping-petal case: nothing local can count it honestly),"unknown"when there's no silhouette check to confirm either way. Readcountwith this in mind: acount: 1withseparable: "no"is a collapse, not a tally.
When separable is "no" but the outline still carries the lobe pattern
(silhouette.by_radial > 1), an estimates block is added reporting that
outline count as an actionable number -- it's a measurement (angular
notches in the silhouette), not a judgment, so it stays within "measure,
don't judge". count is never overwritten; estimates.outline is the
number the outline supports, with a basis string saying so. Set
vqa_estimate=true to also ask Moondream2 "how many ?" and attach
Additionally, every result reports semantic_ambiguity (bool) and
count_semantics ("measured_tally", "minimum_visible_instances", or
"unverified_tally"). When semantic_ambiguity is true, an ambiguity
payload is attached detailing why the count represents a collapsed or
ambiguous structure rather than a confirmed discrete tally.
A maximally vague object_name ("object", "thing", "item", ...) is guarded
the same way detect_objects is: Grounding DINO has the same fallback-to-
the-whole-frame failure mode on a name with nothing distinctive to point to,
so a near-full-frame box is dropped rather than counted as a real instance.
clip_art=true gets the equivalent guard through Florence-2's own
exclude_full_frame. Only the exact generic vocabulary triggers this; a
specific noun that genuinely fills the frame is counted unfiltered.
Inputs: src (required), object_name (required), clip_art, consensus, +5 more. Returns: result
critique_compositionA
Critique an image's composition: framing, and, for low-scoring images, why it looks off.
Combines score_aesthetics (numeric quality), a rule-of-thirds/centeredness
check on the main subject's bounding box, and — only when the aesthetic
score is below low_score_threshold — a Moondream2 VQA explanation of what
specifically looks unbalanced. Use it over score_aesthetics alone when you
need to know why a shot is weak and where its subject sits in the frame,
rather than just how it scores.
Returns image_size, subject_box, aesthetics, and framing (with
thirds_offset near 0 meaning the subject sits on a rule-of-thirds power
point, and center_offset near 0 meaning it is dead-center instead).
Pass target_subject whenever you know what the subject is — from your own
context or a prior caption call. Auto-detection picks the largest,
most central region and degrades on busy scenes that fill the frame, where
no single region is the subject. If nothing can be located, returns a
soft-failure shape (image size, aesthetic score, and a "note") rather than
raising. Only the first page of a PDF is assessed.
Set style_context=true to also get the image's medium (style plus
style_distribution), so the aesthetic score is read in the context of its
medium — the documented photography bias means a non-photographic medium
should not be judged by the raw score.
Set compare_with to a reference image to switch to relative mode: both
images are critiqued and the result becomes
{image, reference, delta, preferred} (tie when |delta| < 0.05), plus a
cross_medium_warning when style_context=true and the two media differ.
Same like-with-like framing as score_aesthetics' compare_with; the
absolute score is not recalibrated, the relative delta is.
Inputs: src (required), compare_with, style_context, target_subject, +1 more. Returns: object
dense_region_captionA
Caption every salient region of an image at once, with bounding boxes.
Use this to inventory an image without knowing in advance what is in it --
it returns bboxes and labels for each region it finds, discovering the
objects itself. That is the difference from detect_objects, which needs
you to name the object you are looking for, and from caption, which
describes the whole scene in prose with no coordinates.
Inputs: src (required). Returns: result
detect_objectsA
Locate a named object in an image, as bounding boxes and center points.
Returns bboxes ([x1, y1, x2, y2] each), points (the center of each box)
and labels, all index-aligned -- so use this whether you want regions or
coordinates; the centers come free with the boxes.
If return_annotated is true, the return value becomes a dictionary containing
the regular results plus an annotated_image_path key.
The count of results is NOT a reliable count of objects on an ambiguous
class name: Florence-2 can return several overlapping results for one
physical object (a whole-animal box plus sub-part boxes all labelled
'wing'), or a single result spanning two touching instances (two fused
blades labelled once as 'sword blade'). Prefer a more specific
object_name, and treat results as candidates to inspect, not a tally.
Use count_objects when you actually need "how many" -- it runs a
detection head that emits one region per instance, which this head does
not. Neither can separate heavily overlapping instances, so a count of 1
from either means "could not separate", not "there is one".
Boxes cannot answer whether two objects actually touch or whether one is
inside another -- they overlap the moment one object is merely in front
of another. Use spatial_relations for that.
A maximally vague object_name ("object", "thing", "item", ...) on a
scene with nothing distinctive to point to gets a near-full-frame box
filtered out rather than returned as a match -- Florence-2's grounding
head has no explicit "nothing here" output for that case and falls back
to the whole image otherwise. This only applies to the exact generic
vocabulary itself: a specific noun that genuinely fills the frame (a
close-up of wood, asked for "wood") is returned unfiltered.
Inputs: src (required), object_name (required), return_annotated. Returns: result
ocrA
Process an image file or URL using OCR to extract text.
Uses EasyOCR for robust scene-text extraction. Excels at photos, signage, watermarks, logos, and printed text.
This is the right tool for any text in an image. EasyOCR handles both
of the cases that used to need separate routing -- dense printed text and
stylized, cursive, logo or low-contrast text -- so there is no longer a
reason to send the second kind to query_image, which paraphrases rather
than transcribing.
A page laid out in side-by-side columns (a form, meeting notes, a resume) is detected automatically: each column is OCR'd separately and joined in reading order, so fields from different columns don't get interleaved.
An image with no text returns an empty result, and that is the correct answer rather than a failure -- do not re-ask a captioning or VQA model to produce text for it, which is how invented text gets into a payload.
Set detail=true to get confidence scores and bounding boxes. This is
highly recommended for checking generative image artifacts: if an image
contains gibberish text, the confidence scores will drop significantly.
Inputs: src (required), detail. Returns: result
processA
Run a raw Florence-2 task token against an image (escape hatch).
prompt must be a Florence-2 task token, not an instruction: '',
'<REGION_PROPOSAL>', '<OCR_WITH_REGION>' and the like. Passing plain
English ("describe this image") does not fail — it returns confident
nonsense, because the model has no such task and decodes the words as
one anyway.
Only for task tokens the named tools do not already cover. Prefer
caption, ocr, detect_objects and dense_region_caption: they wrap
the common tokens, parse the structured output into usable fields, and
document where each one misleads. This returns raw text either way.
Inputs: src (required), prompt (required). Returns: result
query_imageA
Ask a free-form question about an image (visual question answering).
This is the right tool for reading photo watermarks, logos, signage,
or any cursive/stylized/low-contrast text — ask e.g. "What does the
text/watermark say, exactly?". The ocr tool misreads that kind of
text confidently; prefer this one for it instead.
Moondream2 is a small model and is documented to answer open-ended judgment
questions ("describe anything wrong in this image") with a flat "None" on
images that all had real visible defects, and to give the same yes/no answer
across genuinely different images -- a default response, not a real
observation. Set check_consistency=true to make that visible: the tool also
asks a rephrased control question and returns, per image,
{answer, control_answer, consistent, confidence}. confidence is "low"
in either of two failure modes: the two answers agree on a short
default-looking token ("None", "Yes", "Nothing", ...), which is the
signature of a flat default rather than a genuine observation; or they
substantively contradict each other, which makes either answer weaker
evidence than it looks alone. "normal" requires substantive answers that
agree. A low result on a judgment question means you should not trust the
answer without independent confirmation. When the answer is
low-confidence, the tool also tries to route to the measurement that
actually answers the question: it classifies the question's wording and,
if a measurable category applies and the object names parse from the
wording, runs that tool's measurement (spatial_relations for a
contact/containment question, count_objects for "how many", ocr for a
text-reading question, detect_objects for "which is largest/smallest")
and attaches it as cross_check. The "largest/smallest" case detects every
instance of the named object and picks the extremum by bounding-box area,
returning its box -- so "which circle is biggest" resolves to coordinates,
not a repeated guess. The cross-check is omitted when no measurement
applies or the names can't be parsed -- it never guesses.
Inputs: src (required), question (required), check_consistency, structured_analysis. Returns: result
score_aestheticsA
Rate how aesthetically pleasing an image looks, independent of its content.
Uses a CLIP-based predictor trained on human aesthetic ratings (the LAION "improved aesthetic predictor"). Reflects visual qualities like lighting, composition and clarity — not whether the subject matter is correct or matches a prompt. A technically accurate but flatly-lit, cluttered photo can score low; a blurry but beautifully lit one can score comparatively higher.
In v0.8.0, the returned payload is enriched. The legacy score is duplicated
as photographic_aesthetic. If a Reasoner is configured at the server level,
an artistic_judgment is generated. If the server is installed with the [iqa]
extra, a technical_quality score (0-100) is included via the MUSIQ ONNX model.
Returns one {"score": float, "rating": str} object per page/image. score
is roughly on a 1-10 scale; rating buckets it coarsely for quick triage —
read score for anything comparative.
Its training set was photographic, so it rates photographs, not fine art: celebrated paintings and illustrations score middling (Hokusai's "The Great Wave" comes back around 5.8) without that meaning anything is wrong with them. Use it to compare like with like — several shots of the same subject, or successive edits of one image — and do not read a single absolute score as a verdict on quality.
Set style_context=true to also get the medium the score is being read in.
The CLIP backbone (already loaded for scoring) classifies the image as a
photograph, oil painting, digital illustration, etc., and that style plus
its style_distribution are added to each result. This is the local-model
answer to the photography bias: it doesn't make the head understand fine art,
but it tells you that the score is for a non-photographic medium, so you
read it with the documented caveat instead of as an absolute verdict.
Set compare_with to a reference image to switch to relative mode: both
images are scored and the result becomes one entry per image page carrying
{image, reference, delta, preferred}, with preferred being "image" /
"reference" / "tie" (tie when |delta| < 0.05). This is the predictor's
calibrated use -- like-with-like comparison -- so it sidesteps the absolute
photography bias that makes a single score misleading across media. With
style_context=true, both media are classified and a cross_medium_warning
is added when they differ (cross-medium comparison is out of calibrated
scope). The absolute score is not recalibrated; the relative delta is the
actionable output.
Inputs: src (required), compare_with, style_context. Returns: result
spatial_relationsA
Measure how named objects in an image sit relative to one another.
Locates each object, segments it, and reports measurements that are hard to judge by eye: whether two things actually touch, how many pixels apart they are, how much of one lies inside the other and how deeply, plus each object's own elongation, straightness and end-to-end width profile.
This reports geometry, not verdicts — it does not decide what is wrong.
Interpret the numbers against what the scene ought to look like: a hand
and the grip it holds that come back separate with a large gap are not
in contact; a hand overlapping a shield with a_inside_b near 1.0 and a
large embed_depth is buried in the shield face rather than gripping its
rim; an elongated object whose end_symmetry is near 1.0 is equally wide
at both ends, unlike a blade that tapers to a point at one end only.
Useful for checking whether a generated or edited image holds together physically, for verifying that an object is where it should be relative to another, and for any question of contact, containment or clearance that a bounding box cannot answer — boxes overlap whenever one object is simply in front of another.
Takes the single best-scoring match per name, so this assumes one instance of
each named object. Asked for 'red circle'/'blue circle'/'green circle' on a
scene with one of each, the detector returned the same three boxes for every
query — color alone doesn't reliably discriminate same-shaped objects — but the
correctly-matching box scored highest every time, which is what this relies on.
For several instances of one kind of thing, give them distinguishing names, or
use count_objects for a tally instead.
A maximally vague name in objects ("object", "thing", "item", ...) is guarded
the same way detect_objects/count_objects are: a near-full-frame box from a
name with nothing distinctive to point to is dropped rather than treated as a
located match, so it doesn't get reported here as the "best-scoring" box for
that name.
Inputs: src (required), objects (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools have clear boundaries (caption vs detect vs count vs spatial relations), but ocr and query_image directly contradict each other on which should read stylized/watermark text, and caption adds a third text-related caveat. An agent following the descriptions could route a text-reading request to the wrong model.
Names are uniformly lowercase snake_case and mostly readable, but conventions are mixed: verb_noun (detect_objects, score_aesthetics) sits alongside bare nouns (ocr, caption), an adjective_noun (spatial_relations), and a multi-part modifier (dense_region_caption). No single predictable pattern emerges.
11 tools is well within the ideal range and each fills a distinct role in the vision-understanding domain: OCR, captioning, VQA, detection, counting, spatial geometry, aesthetics, batch processing, and a raw escape hatch. The count feels deliberately scoped rather than padded.
The surface covers the major image-understanding operations—transcribe, describe, locate, count, measure relationships, and score aesthetics—and batch_analyze_images plus the raw process escape hatch close most workflow gaps. No obvious dead end or missing lifecycle step stands out for this domain.
Maintenance
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Audio, music, video, image, PDF, speech, text and web-check tools callable from any MCP client.
Audio, music, video, image, PDF, speech, text and web-check tools callable from any MCP client.
AI image & video generation MCP server (16 models, DAG projects, MCP Apps UI, OAuth 2.1).
1
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables any MCP client to perform image understanding and OCR via any OpenAI-compatible vision-language model. Supports local, private inference without images leaving the machine.2MIT
- AlicenseNot gradedqualityCmaintenanceProvides vision capabilities to text-only LLMs via MCP, enabling image understanding, Q&A, OCR, and image processing through cloud multimodal APIs.MIT
- AlicenseAqualityNot gradedmaintenanceEnables any MCP-capable agent to perform vision tasks like describing images, answering questions, OCR, and comparing images using supported vision backends.5MIT
- AlicenseNot gradedqualityDmaintenanceProvides image understanding capabilities via local OCR and cloud VLM, enabling text extraction and visual description through MCP.2MIT