ai-invoice-insights
Verified Safeby jerome79
Overview
Extract structured data (e.g., vendor, amount, date) from PDF invoices using a multi-agent AI pipeline.
Installation
make devEnvironment Variables
- LLM_BACKEND
- OLLAMA_URL
- OLLAMA_MODEL
- MCP_URL
- FRONTEND_ORIGIN
- DATABASE_URL
Security Notes
The system uses environment variables for configuration (good), but the default CORS settings are wide open ('*') for both API and MCP, which is a significant risk for production deployments. The direct injection of raw, untrusted invoice text into LLM prompts in `InvoiceExtractionAgent` creates a potential for prompt injection, though output is constrained to JSON. PDF parsing with `fitz` is generally robust, and `SQLModel`'s ORM usage mitigates SQL injection. No hardcoded secrets or 'eval' statements were found.
Similar Servers
groupdocs-parser-cloud-mcp
Provides an MCP server that wraps the GroupDocs.Parser Cloud API to enable AI agents to extract text, images, and barcodes from various document formats and manage cloud storage.
Logistic-MCP-server
An MCP server to help AI agents manage logistics invoices by fetching emails, downloading attachments, parsing PDFs, and storing structured data.
fastAPI-MCP-server
This server provides image processing functionalities, specifically OCR and barcode/QR code scanning, through a standardized Model Context Protocol (MCP) interface for integration with AI agents in business automation scenarios.
mcp-server-FastMCP-FastAPI-MCP
The server demonstrates Model Context Protocol (MCP) implementations, providing tools for arithmetic calculations and searching FreeCodeCamp news and YouTube feeds via STDIO and HTTP transports.