invoice-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@invoice-serverCheck the invoices in the inbox and extract their details into the ledger."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Invoice Automation MCP Server & Excel Ledger Sync
An automated invoice processing pipeline built on the Model Context Protocol (MCP). This system allows multimodal AI models (such as Claude Desktop) to discover, inspect, and extract key metadata from invoice filesβincluding PDFs, Word documents (.docx), Excel spreadsheets (.xlsx), and smartphone scan imagesβand automatically synchronize and enrich the extracted data with a master vendor directory in an Excel ledger.
π Key Features
Multimodal MCP Server (
server.py):Supported Formats: Scanned & digital PDFs (
.pdf), Word documents (.docx), Excel spreadsheets (.xlsx), and images (.png,.jpg,.jpeg).Large File Optimization (>1MB): Automatically downscales and compresses high-resolution photos and scanned PDF pages to high-quality JPEG under 900 KB, preventing MCP timeouts and buffer drops.
Multi-Page Invoice Handling: Reads and extracts individual pages from multi-page PDFs, safely retaining the inbox file until all pages are processed.
Safe File Deletion: Automatically deletes processed files from the inbox once extraction is complete.
Excel Synchronization Engine (
sync_json_to_excel.py):Master Vendor Lookup: Matches invoices by GSTIN or PAN against
Sheet1to enrich records with Supplier ID, vendor names, site names, TDS terms, and email addresses.Fallback to PAN: If GSTIN is absent or unregistered on an invoice, automatically falls back to matching via PAN.
Conditional Red Row Styling: Highlights rows in red (
#FFD9D9fill with#9C0006text) if:The invoice comes from a multi-page PDF.
The GST number is missing.
Any AI-extracted column (
invoice no.(Ai),invoice date(AI),AMOUNT(AI)) is missing or unreadable.
Descriptive Remarks: Records explanatory notes in the
Remarkscolumn (e.g.Multi-page PDF (Page 1 of 2); Missing in invoice: invoice no.(Ai)).Zero Gap Compaction & Atomic Saving: Prevents and removes blank gap rows, and saves atomically with rolling
.bakbackups to prevent file corruption.
Related MCP server: Excel MCP Server
π Repository Structure
.
βββ invoices/
β βββ inbox/ # Input folder for incoming invoices (PDF, DOCX, XLSX, JPG, PNG)
β βββ failed/ # Fallback folder for failed files
β βββ processed/ # Compatibility directory
β βββ invoice_ledger.xlsx # Main Excel workbook (Invoices, Sheet1 master, SyncLog)
βββ extracted_invoices.json # Intermediate JSON store populated by the MCP server
βββ requirements.txt # Python dependencies
βββ server.py # MCP Server for invoice reading and extraction storage
βββ sync_json_to_excel.py # Background watcher syncing JSON records into Excelπ Setup & Installation
1. Install Dependencies
pip install -r requirements.txt2. Configure Claude Desktop (MCP)
Add the server to your claude_desktop_config.json:
{
"mcpServers": {
"invoice-server": {
"command": "python",
"args": [
"D:\\User profile\\89162\\Downloads\\Invoice automation\\invoice-mcp-server\\server.py"
]
}
}
}3. Run the Excel Sync Watcher
Run the background synchronizer in a separate terminal:
python sync_json_to_excel.pyπ οΈ MCP Tools Exposed
list_inbox_invoices(): Lists all pending invoice documents ininvoices/inbox.read_invoice_content(filename, page_number=1): Reads text from Word/Excel/digital PDFs, or returns optimized visual image content for scanned pages/photos.save_extracted_data_to_json(...): Stores extracted metadata (invoice no.(Ai),invoice date(AI),AMOUNT(AI),GST NUMBER,PAN NUMBER, page information) and safely unlinks the source file when finished.get_extracted_invoices(): Retrieves all stored JSON records. "# Invoice-automation"
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Invoice and receipt extractor: reads PDF and image invoices/receipts with AI, pulling dateβ¦
- DatanemOAuthcom.datanem
Turn PDFs, scans and photos into a queryable database. Invoices, CVs, receipts, in bulk.
Capture receipts, scan Gmail, analyze spending, and create reviewed reports from AI assistants.
Turn any PDF into structured JSON via AI + OCR: invoices, bank statements, contracts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to extract and analyze text content from various document formats (PDF, DOCX, PPTX, XLSX) in local knowledge bases, and create new formatted Word and Excel documents with structured data and reports.5MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to perform Excel file operations (create, read, write, format) without requiring Microsoft Excel installation.175MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to create and manage e-invoices through natural language, supporting EU compliance formats like ZUGFeRD and XRechnung, as well as US plain PDF invoices.7-
- AlicenseAqualityDmaintenanceEnables AI assistants to perform financial analysis, budget forecasting, compliance checks, expense categorization, and risk assessment, returning structured JSON with audit-ready governance receipts.51041Business Source 1.1
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dheeraj12f/Invoice-automation'
If you have feedback or need assistance with the MCP directory API, please join our Discord server