Aikount MCP
Aikount MCP lets AI agents run Spanish accounting for autónomos and pymes: invoicing, expense OCR, bank reconciliation, ledgers, and quarterly VAT (Modelo 303).
Verify the active tenant/token (
whoami)Manage contacts/customers/suppliers (
list_contacts,create_contact)List tax types (IVA/IGIC/IPSI/IRPF) and products (
list_tax_types,list_products)List, fetch, create draft, and issue sales invoices (
list_invoices,get_invoice,create_invoice,issue_invoice)List and fetch purchase documents/expenses (
list_purchases,get_purchase)OCR and ingest purchase PDFs/images with deduplication (
ingest_purchase_pdf,get_ingest_job)List treasuries (bank/Stripe/PayPal) and bank movements (
list_treasuries,list_bank_movements)Review and perform bank reconciliation (
reconciliation_board,reconcile_movement)Browse PGC chart of accounts, ledger movements, and trial balance (
list_accounts,ledger,trial_balance)Prepare quarterly VAT: Modelo 303 summary and AEAT-format CSV detail (
modelo_303_summary,modelo_303_csv)Call any other Aikount API endpoint via
api_request
Supports ingesting purchase PDFs from Amazon Web Services as expenses via OCR, with automatic deduplication.
Enables viewing PayPal account balances and movements, integrated as treasuries in the accounting system.
Enables viewing Stripe account balances and movements, integrated as treasuries in the accounting system.
Click on "Deploy 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., "@Aikount MCP Emite una factura de 500€ a Juan Pérez por diseño web."
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.
Aikount MCP — Contabilidad española con IA para Claude, Cursor y ChatGPT
Servidor MCP de contabilidad para autónomos y pymes en España. Lleva tu contabilidad a cualquier agente de IA: emite facturas, captura PDFs de gastos por OCR, concilia movimientos bancarios y prepara el Modelo 303 — todo desde Claude, Cursor, ChatGPT o cualquier cliente MCP.
Aikount es un SaaS de contabilidad agent-first: una alternativa a Holded pensada para que sea una IA quien lleve la contabilidad. Este repositorio es el servidor MCP (Model Context Protocol) oficial que conecta tu agente de IA con tus libros a través de la API REST pública de Aikount. La API es el producto; la interfaz web es el plan B para humanos.
¿Eres autónomo o gestoría y quieres que un agente de IA lleve tu contabilidad en España? Empieza en aikount.com y conecta tu agente con este servidor MCP.
¿Qué puedes hacer? (herramientas)
Herramienta | Qué hace |
| Verifica el token y devuelve el tenant (empresa) activo |
| Clientes y proveedores |
| Tipos de IVA/IGIC/IPSI/IRPF y sus UUID para las líneas |
| Catálogo de productos/servicios |
| Consultar facturas de venta |
| Crear borrador y emitir (asigna número legal) |
| Consultar gastos / facturas de compra |
| OCR de un PDF a un gasto sin duplicados |
| Cuentas de banco / Stripe / PayPal con saldo |
| Movimientos bancarios, con filtros |
| Conciliación bancaria automática |
| Plan General Contable (PGC), mayor y sumas y saldos |
| IVA trimestral (Modelo 303) |
| Acceso a cualquier otro endpoint (ver OpenAPI) |
¿Por qué no hay
create_purchase? Las facturas de compra duplicadas corrompen los totales de gasto, el IVA soportado y la conciliación bancaria. Por eso los gastos solo se añaden víaingest_purchase_pdf, que deduplica por identidad de factura.
Related MCP server: Cuéntica MCP
Instalación
Necesitas una API key de Aikount (scope *, con prefijo agl_). La generas
con el botón «Conectar agente» dentro de la app web de Aikount — te muestra
las líneas export exactas.
Opción A — Hosted, sin instalar nada (MCP remoto)
Conecta tu cliente al endpoint hosted con tu token en la cabecera:
URL: https://api.aikount.com/mcp (streamable-HTTP)
Header: Authorization: Bearer agl_tu_tokenEs multi-tenant: cada petición se autentica con su propio token. Ideal para clientes que soportan MCP remoto. Las mismas herramientas que la versión local.
Opción B — Local (este paquete)
export AIKOUNT_TOKEN="agl_xxxxxxxxxxxxxxxxxxxxxxxx"
# opcional, por defecto producción:
# export AIKOUNT_API="https://api.aikount.com/api/v1"Ejecútalo con uv (sin instalar nada):
uvx aikount-mcp@latestO con pip/pipx:
pipx install aikount-mcp # o: pip install aikount-mcp
aikount-mcpClaude Desktop / Claude Code
Añádelo a tu configuración MCP (claude_desktop_config.json, o .mcp.json en
Claude Code):
{
"mcpServers": {
"aikount": {
"command": "uvx",
"args": ["aikount-mcp@latest"],
"env": { "AIKOUNT_TOKEN": "agl_xxxxxxxxxxxxxxxxxxxxxxxx" }
}
}
}Cursor
Ajustes → MCP → Add new server, con el mismo command / args / env.
Casos de uso
«Emite una factura de 1.200 € a ACME por la consultoría de mayo.» El agente busca el contacto, resuelve el IVA y crea el borrador; tú confirmas y lo emite.
«Mete este PDF de Amazon Web Services como gasto.» OCR + alta deduplicada del gasto en el Plan General Contable.
«¿Cómo va mi IVA del segundo trimestre?» Resumen del Modelo 303 al momento.
«Concilia los movimientos del banco con las facturas.» Conciliación bancaria automática (auto-concilia con confianza ≥ 0,95).
Convenciones
Dinero en euros decimales (
unit_price: 1200.00), no en céntimos. EUR salvo quecurrencydiga otra cosa.Fechas ISO-8601
AAAA-MM-DD. IDs son UUID.Las líneas referencian impuestos por
tax_type_id(UUID delist_tax_types), no por un código de texto. Omítelo para heredar el del contacto/producto.Los errores vuelven como
{"error": true, "status_code": ..., "detail": ..., "hint": ...}para que el modelo se autocorrija (re-auth en 401, corregir el cuerpo en 422).El token tiene scope
*— trátalo como una contraseña. El aislamiento por empresa (multi-tenant) es automático.
La especificación OpenAPI es la fuente de
la verdad para todo lo que este servidor no envuelve; accede a ella vía
api_request.
Preguntas frecuentes (FAQ)
¿Qué es Aikount MCP?
Es un servidor MCP (Model Context Protocol) que conecta agentes de IA como Claude, Cursor o ChatGPT con tu contabilidad en Aikount, para que la IA pueda emitir facturas, registrar gastos, conciliar el banco y preparar impuestos (Modelo 303) usando el Plan General Contable español.
¿Cómo conecto Claude (o Cursor/ChatGPT) con mi contabilidad?
Instala el servidor con uvx aikount-mcp@latest, genera tu API key en Aikount con
«Conectar agente» y añade el bloque mcpServers a la configuración de tu cliente
MCP. En segundos tu agente puede leer y escribir en tus libros.
¿Es seguro? ¿Aikount guarda mis credenciales bancarias?
No. La conexión bancaria se hace mediante pasarelas PSD2 reguladas (Ponto Connect, Salt Edge, GoCardless); Aikount nunca almacena credenciales del banco. Los datos se alojan en la UE. El token de la API es revocable y está aislado por empresa.
¿Sirve para autónomos y pymes en España?
Sí. Aikount está pensado para autónomos y pymes españolas y para las gestorías que las supervisan, con soporte multiempresa y multidivisa, Plan General Contable y Veri*Factu. No sustituye a tu gestor: le entrega el trabajo hecho para revisar y firmar.
¿Qué es el Modelo 303 y puede prepararlo la IA?
El Modelo 303 es la autoliquidación trimestral del IVA en España. El agente
genera el resumen por trimestre (modelo_303_summary) y el detalle por
operación (modelo_303_csv) listos para revisar y presentar.
¿Es una alternativa a Holded?
Sí. Donde Holded es una suite por módulos, Aikount es un agente de IA centrado en hacerte la contabilidad, con precio por tramo de facturación. Comparativa: aikount.com/alternativas-a-holded.
Sobre Aikount
Aikount — contabilidad española agent-first para autónomos, pymes y gestorías. Recursos:
🌐 Web: aikount.com
🤖 Contabilidad con IA: aikount.com/contabilidad-con-ia
🏦 Conciliación bancaria automática: aikount.com/conciliacion-bancaria-automatica
🧮 Calculadora de IVA trimestral (Modelo 303): aikount.com/calculadora-iva-trimestral
🆚 Alternativa a Holded: aikount.com/alternativas-a-holded
📚 Documentación de la API: api.aikount.com/docs
🧩 Contexto para agentes: aikount.com/llms.txt
Desarrollo
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest -q # 23 tests, sin red (httpx MockTransport)Los tests fijan cada herramienta a la ruta real de la API verificada contra la especificación OpenAPI en vivo, para que las rutas no se rompan en silencio.
server.json es el manifiesto de este paquete para el
registro oficial de MCP.
Licencia
MIT — ver LICENSE.
Available Tools
23 toolsapi_requestAInspect
Call any Aikount API endpoint not covered by a dedicated tool.
The full surface is documented at https://api.aikount.com/openapi.json — fetch it (e.g. api_request('GET', '/../openapi.json')) when you need an endpoint this server doesn't wrap.
Args: method: GET / POST / PATCH / DELETE. path: API path relative to the base, e.g. '/invoices' or '/contacts/'. Leading slash optional. params: query parameters. body: JSON body (for POST/PATCH).
Inputs: path (required), method (required), body, params.
create_contactCInspect
Create a contact. country is an ISO-3166 alpha-2 code (e.g. 'ES').
Inputs: name (required), vat, email, notes, +4 more.
create_invoiceAInspect
Create a DRAFT sales invoice (call issue_invoice to assign a number).
Money is in MAJOR units (euros as decimals), e.g. unit_price 1200.00 — NOT cents. Each line is a dict: { "description": "Consultoría mayo", # required "quantity": 1, # default 1 "unit_price": 1200.00, # default 0, euros "tax_type_id": "", # from list_tax_types; omit # to inherit the contact/ # product default "discount_pct": 0, # optional, 0-100 "irpf_rate": 0 # optional override, 0-100 }
Args: contact_id: customer UUID (see list_contacts / create_contact). doc_date: ISO 'YYYY-MM-DD'. series_id: optional numbering-series override (UUID).
Inputs: lines (required), doc_date (required), contact_id (required), notes, +3 more.
get_ingest_jobBInspect
Poll the status/result of an AI ingest job (see ingest_purchase_pdf).
Inputs: job_id (required).
get_invoiceBInspect
Fetch one sales invoice in full by UUID.
Inputs: doc_id (required).
get_purchaseCInspect
Fetch one purchase document in full by UUID.
Inputs: doc_id (required).
ingest_purchase_pdfAInspect
Queue a purchase PDF/image for AI extraction (OCR -> deduped purchase).
The AI reads the supplier, lines and taxes and creates the purchase doc, deduplicating by invoice identity (contact + supplier_invoice_number, fallback total + date) so the same invoice never lands twice. Runs async: this returns a job immediately — poll get_ingest_job(job_id) until its status is done, then read result for the created document.
Args: file_path: local path to a PDF / JPG / PNG / WebP / HEIC. force: bypass dedup and ingest anyway (use only when you are sure it is a genuinely distinct invoice).
Inputs: file_path (required), force.
issue_invoiceAInspect
Issue a draft invoice — assigns the next sequential legal number.
Irreversible-ish: issued numbers must stay contiguous, so do not delete issued invoices to "renumber". Confirm with the user before issuing.
Inputs: doc_id (required).
ledgerBInspect
Read ledger movements for ONE PGC account.
Args: account_id: the account's UUID (required). Resolve it from list_accounts — e.g. find the account whose code is '572' (bancos) and pass its id here. from_date / to_date: ISO date bounds.
Inputs: account_id (required), limit, offset, to_date, +1 more.
list_accountsAInspect
List the Spanish PGC chart of accounts (code, name, UUID, balance).
Use this to resolve an account's UUID for ledger, or to browse by
group (1-7, the leading PGC digit: 5 = financial accounts, 4 =
receivables/payables, …) or free-text search (code or name).
Inputs: group, limit, offset, search.
list_bank_movementsBInspect
List bank movements, optionally scoped to one treasury.
Args: treasury_id: restrict to a single treasury (UUID). status: e.g. 'unreconciled' / 'reconciled'. from_date / to_date: ISO date bounds. search: free-text match on the movement description.
Inputs: limit, offset, search, status, +3 more.
list_contactsAInspect
List contacts (customers and suppliers).
Args: search: free-text match on name / legal name / VAT. kind: 'customer' or 'supplier' to filter; omit for both. limit: page size (1-500, default 50). offset: pagination offset.
Inputs: kind, limit, offset, search.
list_invoicesCInspect
List sales invoices. Lifecycle: draft -> issued -> paid.
Args: status: e.g. 'draft', 'issued', 'paid'. contact_id: filter to one customer (UUID). from_date / to_date: ISO 'YYYY-MM-DD' bounds on doc_date.
Inputs: limit, offset, status, to_date, +2 more.
list_productsCInspect
List catalog products/services.
Inputs: limit, offset, search.
list_purchasesCInspect
List purchase documents (supplier invoices / expenses).
Inputs: limit, offset, to_date, from_date, +1 more.
list_tax_typesAInspect
List the tenant's tax types (IVA/IGIC/IPSI/IRPF), each with its UUID.
Invoice/purchase lines reference a tax by tax_type_id (a UUID from this
list), not by a string code — call this to resolve which UUID is the 21%
IVA, the 10% reducido, exento, etc.
Inputs: no named parameters.
list_treasuriesAInspect
List treasuries (bank / Stripe / PayPal accounts) with balances.
Stripe/PayPal treasuries return a live balance pulled on read; bank-feed treasuries return the last synced snapshot.
Inputs: limit, offset.
modelo_303_csvAInspect
Modelo 303 backing detail for one quarter as CSV text.
Returns the per-transaction breakdown (one row per invoice/purchase line: date, doc, contact, base, rate, iva, input/output) that the quarter's VAT figures are built from — useful for auditing the numbers. For the aggregated box totals, use modelo_303_summary.
Args: year: e.g. 2026. quarter: 1-4.
Inputs: year (required), quarter (required). Returns: result
modelo_303_summaryAInspect
Modelo 303 (quarterly VAT) — JSON summary of every quarter with activity.
One row per (year, quarter): sales base, output VAT, rectified VAT, input VAT, and the net amount to pay. Use this for a machine-readable overview; use modelo_303_csv for the AEAT-format file of one quarter.
Inputs: no named parameters.
reconcile_movementAInspect
Manually match a bank movement to an invoice/purchase document.
Args: movement_id: bank movement UUID. document_id: invoice or purchase UUID.
Inputs: document_id (required), movement_id (required).
reconciliation_boardAInspect
Get the reconciliation board: suggested movement<->document matches.
The system auto-reconciles matches with confidence >= 0.95; everything below is a suggestion to confirm (reconcile_movement) or dismiss.
Inputs: no named parameters.
trial_balanceAInspect
Balance de sumas y saldos (trial balance) across every account.
A one-shot overview of all account balances — no account_id needed.
Args: at_date: ISO date to compute balances as of (default: today).
Inputs: at_date.
whoamiAInspect
Verify the token and return the active tenant (id, name, VAT, currency…).
Call this first. A 200 confirms the token works; a 401/403 means it is missing, revoked, or malformed.
Note: with an 'agl_' API key this reads /tenants/me. The /auth/me endpoint is reserved for interactive session logins (onboarding/membership flow) and deliberately rejects API keys.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Each tool targets a distinct operation or resource. The generic `api_request` is explicitly for uncovered endpoints, avoiding overlap. Tools like `modelo_303_csv` and `modelo_303_summary` differ clearly in output format. No ambiguity among dedicated tools.
Most tools follow a consistent `verb_noun` pattern (e.g., `create_contact`, `list_invoices`). A few deviate like `reconciliation_board`, `ledger`, and `api_request`, but the overall pattern is predictable and readable.
With 23 tools, the set is well-scoped for an accounting/invoicing server. It covers contacts, invoices, purchases, bank movements, reconciliation, tax models, accounts, and products without being overly bloated or sparse.
Core workflows (create/issue invoices, list/manage contacts, reconcile, generate tax reports) are covered. Missing CRUD for some entities (e.g., update/delete contact, create product) but the generic `api_request` tool fills these gaps, making the surface largely adequate.
Maintenance
Related MCP Connectors
The first fiscal MCP server for Spain: IAE/CNAE 2025, AEAT modelos, IRPF/IVA, RETA quota.
Invoicing your AI agent runs for you: invoices, quotes, expenses, VAT books. Veri*factu for Spain.
Spanish autónomo bookkeeping and AEAT tax forms 303, 130, 390, 100: your model reads the documents
Spanish invoicing (Verifactu/TicketBAI), bookkeeping, bank and tax returns for autónomos and SLs.
Related MCP Servers
- FlicenseBqualityDmaintenanceMCP server for DACH accounting automation. Connect AI assistants to sevDesk and Lexoffice — create invoices, manage contacts, handle bookings and vouchers for German-speaking businesses.1555 npm-
- AlicenseBqualityDmaintenanceMCP server to interact with the Cuéntica accounting API, allowing users to manage invoices, expenses, income, clients, providers, and bank accounts via natural language.5931 PyPI2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for integrating VeriFactu (AEAT) with Claude Code and Cursor, enabling generation, chaining, and sending of electronic invoicing records via natural language.MIT
- AlicenseNot gradedqualityDmaintenanceThe first fiscal MCP server for Spain, connecting AI agents to live IAE, CNAE 2025, AEAT tax-form, and RETA data from official sources.MIT