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
docker run --rm -it -p 8000:8000 ghcr.io/habedi/omni-lpr-cpu:latestEnvironment 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
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
MCPJungle
MCPJungle is a self-hosted Model Context Protocol (MCP) Gateway that allows developers to register and manage various MCP servers and their tools from a central location, enabling AI agents to discover and consume these tools from a single gateway.
toolsdk-mcp-registry
An API-driven registry for Model Context Protocol (MCP) servers, enabling discovery, detail retrieval, and execution of various AI tools and agents.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.