ALdia logo

ALdia

Self-hosted MCP business engine with 61 permission-controlled tools for invoicing, payments, inventory, cash, and audit trails.

Install ALdia

Run the project’s own setup commands, in order.

Setup steps from the project

ALdia installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/jonalemndi2/ALdia.git
    
  2. 2. Install
    cd ALdia
    
  3. 3. Install
    ./instalar.sh        # creates the venv and installs dependencies
    
  4. 4. Start the server
    ./iniciar_web.sh     # starts the server
    
  5. 5. Install
    instalar.bat
    
  6. 6. Start the server
    iniciar_web.bat
    

Overview

ALdia MCP server exposes business operations such as invoicing, payments, customers, vendors, inventory, checks, expenses, and cash through 61 permission-controlled MCP tools. It validates and executes requests through the same HTTP API used by the web console, with idempotency, structured errors, identity-aware permissions, and an immutable audit log. The single-process Python application uses SQLite, runs offline on Windows, Linux, and macOS, and supports country-specific tax and document rules. Reach for ALdia when an agent needs to operate a business without direct database access or unrestricted financial permissions.

Use cases

  • Create and confirm reviewed invoices
  • Record customer payments and checks
  • Track inventory, debtors, cash, and expenses
  • Audit accepted and rejected business operations

Key features

  • 61 permission-controlled MCP tools
  • Idempotent financial operations
  • Structured, actionable errors
  • Immutable audit trail
  • Offline-first SQLite deployment
  • Country-specific business rules

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 17d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
Last commit16d agoMost recent push to the default branch.

How ALdia works

What ALdia does

ALdia gives AI agents a controlled vocabulary for business operations rather than database access. Its MCP tools cover customer lookup and balances, invoices, payments, vendor payments, expenses, inventory, checks, cash, debtors, and audit records. The web console remains the supervision point: the assistant interprets a request, ALdia validates and executes it, and a user can review what happened in the browser.

Invoice creation and invoice confirmation are separate operations. Creating an invoice produces a draft without stock or debt effects; confirmation represents the reviewed commercial operation. Fiscal authorization is disabled from MCP by default and requires administrative review, including a one-time code sent to the responsible person when enabled for the commercial pilot.

ALdia is designed for self-hosted business use. It stores monetary values as integer cents, applies commercial rounding explicitly, allocates invoice numbers from a sequence table, and supports country packs. Argentina support includes CUIT, VAT, ARCA authorization, ARS, and local payment methods. The United States pack covers EIN, sales tax, USD, ACH, and additional vendor records.

How it works

The MCP layer communicates with the same HTTP API used by the browser application. Writes therefore pass through the application’s normal validation, transaction, and audit path; the MCP server does not write to the database directly. A local installation consists of one Python process and one SQLite file. Other terminals can reach it over the local network when the host is configured to listen beyond the local machine.

Requests can carry an X-Operation-Id. ALdia reserves this identifier before execution, preventing concurrent retries from applying the same operation twice. Errors include a stable code, the parameters involved, and an action selected from reintentar, corregir, preguntar, or abortar. The published error catalogue is available at GET /api/errores without authentication.

Permissions combine the service account with the identity of the person represented by the agent. Acting on another person’s behalf must be explicitly granted by an administrator. Ambiguous operations can be stored with their original details and confirmed after clarification, avoiding an accidental rebuild of the request.

Every write, including rejected attempts, is recorded by middleware in a separate audit schema. The audit records cannot be edited or deleted through an endpoint. Daily startup backups use SQLite’s backup API, retain the last seven copies, and run an integrity check on each copy.

Setup and configuration

ALdia requires Python 3.10 or newer and runs on Windows, Linux, and macOS. Clone the repository, then use ./instalar.sh and ./iniciar_web.sh on Linux or macOS. On Windows, run instalar.bat followed by iniciar_web.bat. A production installation can use the locked dependency file through ./instalar.sh --lock or the equivalent Windows pip command.

After startup, open http://localhost:8000. The first launch creates an admin user, prints a randomly generated password in the console, and keeps that password in the backend environment. By default, the service listens only on the local computer. Set ALDIA_HOST=0.0.0.0 when other terminals on the local network need access.

The country configuration selects identifier validation, tax behavior, currency, payment methods, and whether documents require agency authorization. GET /api/config/pais also exposes country-specific warnings for agents.

Tools and capabilities

The MCP tool set includes operations for:

  • Finding customers, products, debtors, and customer balances
  • Creating and confirming invoice drafts
  • Recording customer payments, vendor payments, and expenses
  • Checking inventory and listing checks held in the portfolio
  • Working with cash and country-specific payment methods
  • Reading the audit log and published structured error information
  • Executing operations with permission checks and idempotency controls

Limitations and notes

The United States sales-tax implementation applies one entered rate to everything. It does not determine jurisdiction, apply sourcing rules, calculate economic nexus, handle exempt categories, or manage resale certificates. A tax-provider interface exists, but no provider integration ships with ALdia.

The business controls are tested but do not constitute fiscal or production certification. Fiscal emission is off by default from MCP and is subject to explicit commercial confirmation and administrative review. The application is offline-first and does not load assets from a CDN, but any external agency authorization workflow still depends on the relevant country configuration and service requirements.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about ALdia

ALdia is an MCP server that connects AI agents to a self-hosted business engine through tools for invoicing, payments, customers, vendors, inventory, checks, expenses, cash, balances, debtors, and audit logs. It validates and executes operations with permissions, idempotency, structured errors, and immutable audit records.

Install ALdia by cloning the repository, running the platform installation script, and starting the web server. Linux and macOS use `instalar.sh` and `iniciar_web.sh`; Windows uses `instalar.bat` and `iniciar_web.bat`. Python 3.10 or newer is required.

Yes, ALdia is designed to run offline on the local machine. It uses a local Python process and SQLite file, loads no CDN assets, and allows a store to continue invoicing when internet connectivity is unavailable.

ALdia prevents duplicate retries with the `X-Operation-Id` header. The identifier is reserved before execution, so simultaneous retries cannot both apply the same operation after a lost response.

Set `ALDIA_HOST=0.0.0.0` before starting ALdia so it listens beyond the server computer. The default configuration listens only on the local machine.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewALdia AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/aldia?style=directory)](https://allmcps.com/mcp/aldia)
HTML Embed
<a href="https://allmcps.com/mcp/aldia"><img src="https://allmcps.com/api/badge/aldia?style=directory" alt="ALdia on AllMCPs" /></a>