Back to Home
habedi icon

omni-lpr

by habedi

Overview

Provides automatic license plate recognition (ALPR) capabilities via a REST API and the Model Context Protocol (MCP) as a self-hostable microservice or a toolbox for AI agents and LLMs.

Installation

Run Command
docker run --rm -it -p 8000:8000 ghcr.io/habedi/omni-lpr-cpu:latest

Environment Variables

  • HOST
  • PORT
  • LOG_LEVEL
  • MAX_IMAGE_SIZE_MB
  • MODEL_CACHE_SIZE
  • EXECUTION_DEVICE
  • DEFAULT_OCR_MODEL
  • DEFAULT_DETECTOR_MODEL
  • GUNICORN_WORKERS
  • GUNICORN_EXTRA_ARGS

Security Notes

Critical security risks identified: 1. Server-Side Request Forgery (SSRF) / Local File Inclusion (LFI): The `recognize_plate_from_path` and `detect_and_recognize_plate_from_path` tools accept a `path` argument (URL or local file path). The application fetches images from these paths using `httpx.get` or `anyio.Path.read_bytes` without apparent validation or sanitization of the path's content. This could allow an attacker to read arbitrary local files, scan internal networks, or trigger denial-of-service by targeting large/slow external resources. 2. Broad CORS Policy: The server's CORS middleware allows origins from `*` (all origins), which is overly permissive and can pose a security risk in browser-based applications if not adequately protected by a stricter reverse proxy. Note: `avg_tokens_per_call` is a placeholder for computational load, as this is not an LLM application.

Similar Servers

Stats

Interest Score38
Security Score3
Cost ClassMedium
Avg Tokens3000
Stars9
Forks1
Last Update2025-12-02

Tags

ALPRLicense Plate RecognitionREST APIMCPAI Agent Tool