neosun100/DeepSeek-OCR-WebUI

Self-hosted DeepSeek-OCR-2 WebUI & API — vLLM / transformers on NVIDIA, Apple Silicon & CPU, per-page quality checks, PDF streaming, MCP

What it solves

This project provides a self-hosted, web-based interface for the DeepSeek-OCR-2 model. It solves the difficulty of running high-quality document OCR locally by offering a stable, production-ready service that works across NVIDIA GPUs, Apple Silicon, and standard CPUs, while handling document parsing, layout analysis, and batch processing.

How it works

The system runs a FastAPI backend that manages the DeepSeek-OCR-2 model using either vLLM (for high-performance batching) or transformers (for broader hardware compatibility). Users interact with a Vue 3 frontend that handles PDF rendering in the browser, allowing for local file processing and Markdown export. The system includes built-in quality checks to detect common OCR issues like repetition loops or truncated text, and it provides an API for integration with other tools via MCP.

Who it’s for

It is designed for developers, researchers, and power users who need to perform private, high-accuracy document OCR without relying on external cloud services. It is particularly useful for those who need to process large batches of documents or require a flexible, self-hosted solution that can be deployed via Docker or run natively on local hardware.

Highlights

  • Supports multiple inference engines including vLLM for high-throughput batching and transformers for wider hardware support.
  • Device-agnostic design that runs on NVIDIA GPUs, Apple Silicon (MPS), and standard CPUs.
  • Includes per-page quality monitoring to flag errors like empty output, repetition, or coordinate loops.
  • Provides a full-featured web interface for document queue management, batch processing, and real-time status monitoring.
  • Offers a developer-friendly API with Swagger documentation and support for Model Context Protocol (MCP) for integration with AI agents.

Related

  • Project
  • Project
  • Project
  • Project