omniparse-mcp: standalone OmniParser V2 parsing service + MCP shim

Self-contained: vendored util/ (CC BY 4.0, fixes noted in NOTICE), portable
setup.sh (venv + weights + Pascal lane), start.sh with real-parse readiness
gate, FastAPI service (bearer, serial GPU queue, LRU cache, OOM->503), MCP
stdio shim (MCPServer 2.x, token strip), hardware-honest README.
This commit is contained in:
plean committed 2026-11-18 02:29:08 +00:00
commit 2a4b1101e6
16 files changed
+2113

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
omniparse-mcp — licensing overview
==================================
MIT (this project) — LICENSE:
omni_api/server.py
omni_api/engine.py
omni_api/mcp_server.py
setup.sh
start.sh
requirements.txt
Vendored from microsoft/OmniParser (https://github.com/microsoft/OmniParser)
— CC BY 4.0 (LICENSE.upstream), with modifications:
util/utils.py modified: lazy OCR-engine initialization; textless-
frame fixes (ocr_bbox None -> [] in
get_som_labeled_img; remove_overlap_new appended a
raw bbox list instead of the element dict on the
no-OCR branch)
util/box_annotator.py unmodified
util/yolov9.py unmodified (YOLOv9-E inference for the icon detector)
util/__init__.py unmodified
Attribution, as required by CC BY 4.0:
This product includes files derived from OmniParser by Microsoft
Corporation (Lu, Yang, Shen, Awadallah; arXiv:2408.00203), licensed under
CC BY 4.0. The modifications above are by plean and are offered under the
same CC BY 4.0 terms.
Model weights (downloaded by setup.sh, not part of this repository):
icon_detect_v3/model.pt MIT-based (built on the MIT-licensed YOLOv9
implementation)
icon_caption_florence/* MIT (Florence-2 caption model)
See the microsoft/OmniParser-v2.0 HuggingFace model card for details.
Note: util/box_annotator.py derives from supervision (MIT). The optional
ultralytics fallback path (non-default, AGPL) is not used by this service.