What is Coffee MCP Server?
Coffee MCP Server is a robust FastAPI-based API server for asynchronous document extraction and processing. It extracts text and tables from PDFs and images using OCR, generates text embeddings via OpenAI or Anthropic, and stores job results in MongoDB for persistent tracking. It is designed for developers who need to automate document data extraction at scale.
How to use Coffee MCP Server?
The server requires Python 3.8+, a running MongoDB instance, Tesseract OCR, and Poppler. After cloning the repository, install system and Python dependencies, configure environment variables in a .env file (including MONGODB_URI, OPENAI_API_KEY, and optionally ANTHROPIC_API_KEY), and start the server with uvicorn app:app --host localhost --port 8000 --reload. Documents are submitted via the POST /v1/extract_data endpoint; the returned job_id is used to poll GET /v1/extract_data_job for status and retrieve results from GET /v1/extract_data_result.
Key features of Coffee MCP Server
- Asynchronous document processing with nonβblocking API
- Pageβbyβpage PDF processing for realβtime status updates
- OCRβbased text extraction using Tesseract
- Table detection and extraction
- Text embedding generation via OpenAI or Anthropic
- MongoDB storage for persistent job tracking and results
Use cases of Coffee MCP Server
- Digitize and extract content from scanned PDFs or images
- Automate data extraction from invoices, forms, or reports
- Build retrievalβaugmented generation pipelines with embedded document chunks
- Process large document sets (500+ pages) with progress tracking
- Monitor longβrunning extraction jobs with polling and paginated results
Comments