Back to Home
jerome79 icon

ai-invoice-insights

Verified Safe

by jerome79

Overview

Extract structured data (e.g., vendor, amount, date) from PDF invoices using a multi-agent AI pipeline.

Installation

Run Command
make dev

Environment 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

Stats

Interest Score0
Security Score7
Cost ClassHigh
Avg Tokens1500
Stars0
Forks0
Last Update2025-12-29

Tags

Invoice ProcessingAI AgentsDocument ExtractionOllamaMulti-Agent System