Mcp Quipu

io.github.nubiia-devPublished by GitHub account nubiia-devv1.0.2Updated Oct 29, 2026

Quipu API integration with 18 MCP tools for invoices, expenses, contacts and Spanish VAT reporting

VerifiedSTDIODesktop onlyFinanceBusiness & Commerce

Overview

AI-generated overview

MCP server for the Quipu invoicing API, letting an assistant read and manage contacts, invoices, expenses and Spanish VAT summaries.

What you can do
  • List, read, create, update and delete Quipu contacts (clients and suppliers)
  • List, read, create, update and delete issued invoices, and get a temporary PDF download link
  • List, read, create, update and delete additional incomes and expenses such as supplier bills, with temporary PDF links
  • Compute VAT and IRPF figures for a quarter or date range from recorded invoices and expenses
When to use it
Useful for freelancers and small businesses in Spain that keep their books in Quipu and want to ask questions like quarterly revenue, VAT position, or to draft invoices and log expenses in natural language.
Requirements
Runs locally via npx (Node.js). Needs Quipu API credentials from the account's API settings, supplied as QUIPU_CLIENT_ID and QUIPU_CLIENT_SECRET, plus QUIPU_OWNER_SLUG, the first path segment of the account's Quipu URLs. Network access to the Quipu API is required; OAuth2 tokens are cached and refreshed in memory.
Before you install
The server can create, modify and permanently delete contacts, invoices and expense entries in a real accounting account, and write operations have stricter quotas. Deleting a numbered invoice conflicts with Spanish invoicing rules, which call for a credit note instead. Invoice and expense PDF links are temporary public URLs. The client ID and client secret are secrets and should be kept out of shared configuration.

Installation

In SourceWeft

  1. Open Mcp Quipu in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

mcp-quipu

Servidor MCP para la API de Quipu: facturación, gastos, contactos y contabilidad para autónomos y pequeñas empresas en España.

Permite que un asistente como Claude consulte y opere tu cuenta de Quipu en lenguaje natural: «¿cuánto he facturado este trimestre?», «créame la factura de septiembre para este cliente», «dame el PDF de la última factura».

Construido por Nubiia. Hermano de mcp-holded.

Estado: estable (v1.0.0). 18 herramientas sobre contactos, facturas, gastos y agregación fiscal. El resto de recursos de la API está mapeado en docs/api-map.md pero aún no expuesto.

Instalación

bash
npm install -g @nubiia/mcp-quipu

Configuración

Necesitas credenciales de API de Quipu (Configuración → API) y el slug de tu cuenta, que es el primer segmento de tus URLs de Quipu: https://getquipu.com/<slug>/…

json
{  "mcpServers": {    "quipu": {      "command": "npx",      "args": ["-y", "@nubiia/mcp-quipu"],      "env": {        "QUIPU_CLIENT_ID": "tu_client_id",        "QUIPU_CLIENT_SECRET": "tu_client_secret",        "QUIPU_OWNER_SLUG": "tu_slug"      }    }  }}

Herramientas disponibles

Contactos

HerramientaDescripción
list_contactsLista contactos, con filtro por nombre y paginación
get_contactDetalle de un contacto
create_contactCrea un contacto (requiere name; el NIF/CIF es obligatorio para facturarle)
update_contactActualiza solo los campos indicados
delete_contactElimina un contacto

Facturas

HerramientaDescripción
list_invoicesLista facturas emitidas, acotables por periodo
get_invoiceDetalle de una factura
create_invoiceEmite una factura con sus líneas, IVA e IRPF
update_invoiceActualiza una factura
delete_invoiceElimina una factura
get_invoice_download_urlURL temporal para descargar el PDF

Gastos e ingresos adicionales

HerramientaDescripción
list_additional_incomesLista gastos e ingresos, acotables por periodo
get_additional_incomeDetalle de una entrada
create_additional_incomeRegistra una factura de proveedor o gasto deducible
update_additional_incomeActualiza una entrada
delete_additional_incomeElimina una entrada
get_additional_income_download_urlURL temporal del PDF

Fiscalidad

HerramientaDescripción
get_tax_summaryIVA repercutido, soportado, saldo y retenciones de un trimestre o rango

Notas de diseño

OAuth2, no API key. A diferencia de Holded, Quipu emite tokens que caducan. El cliente los cachea en memoria, los renueva con un margen de 60 segundos y comparte una sola petición entre llamadas concurrentes. Ante un 401 invalida el token y reintenta.

JSON:API aplanado. Quipu devuelve { data: { id, attributes: {…} } }. Las herramientas aplanan la respuesta a { id, …attributes }, porque los modelos razonan mucho mejor sobre objetos planos y se ahorran tokens de envoltorio.

Las escrituras van más limitadas que las lecturas. Una factura creada por error no es una fila en una base de datos: es un documento con efectos legales. Las operaciones de escritura tienen cupos más estrictos y las destructivas están anotadas con destructiveHint.

La aritmética fiscal se hace en código, no en el modelo. Quipu no expone ningún endpoint de modelos fiscales (130, 303, 111), así que las cifras hay que derivarlas de facturas y gastos. get_tax_summary recorre todas las páginas de ambos recursos, suma con redondeo a céntimos y devuelve el saldo ya calculado. Pedirle a un modelo que sume una lista larga de importes token a token es una forma fiable de obtener una cifra fiscal equivocada.

Los importes vienen como texto y con nombres poco obvios. El importe base es total_amount_without_taxes y el impuesto es vat_amount — no existen total ni subtotal. El sumador acepta coma decimal, ignora vacíos y, ante un valor no parseable, lo excluye y avisa en la respuesta en lugar de propagar un NaN silencioso.

Sobre eliminar facturas. La normativa española exige rectificar mediante factura rectificativa, no borrando una factura ya numerada. delete_invoice existe porque la API lo permite, pero la descripción de la herramienta advierte de ello para que el modelo no lo proponga a la ligera.

Desarrollo

bash
npm installnpm run buildnpm testnpm run lint

Roadmap

  • simplified_invoices — tickets y facturas simplificadas (7 ops)
  • paysheets — nóminas (5 ops)
  • numbering_series, accounting_categories, accounting_subcategories
  • attachments y book_entries
  • Resolución automática del owner_slug vía GET /users/{id}

Licencia

MIT

Source: README.md at commit c208c89

Tools

18

list_contacts

List contacts (clients and suppliers) from Quipu. Returns id, name, tax_id (NIF/CIF), email, phone and address fields. Results are paginated: use `page` to walk through pages. Quipu returns JSON:API, but this tool flattens each resource so attributes appear at the top level alongside `id`.

Parameterspagefilter_name

get_contact

Get a single Quipu contact by its id, with all available attributes (name, tax_id, email, phone, address, town, zip_code, country_code).

Parametersidrequired

create_contact

Create a contact in Quipu. `name` is required. Provide `tax_id` (NIF/CIF) whenever the contact will be invoiced — Spanish invoices require it and Quipu will reject the invoice later without it.

Parametersnamerequiredtownemailphonetax_idaddresszip_codecountry_code

update_contact

Update an existing Quipu contact. Only the fields you pass are modified; everything else is left untouched.

Parametersidrequirednametownemailphonetax_idaddresszip_codecountry_code

delete_contact

Delete a Quipu contact permanently. Quipu refuses to delete contacts that already have invoices attached; in that case the API returns an error explaining it.

Parametersidrequired

list_invoices

List issued invoices from Quipu, with number, issue_date, due_date, total, subtotal and payment status. Paginated via `page`. Use `filter_from` and `filter_to` to bound the period — this is the tool to use when asked about revenue or VAT for a quarter, since Quipu has no endpoint that returns tax models directly and the figures must be derived from invoices.

Parameterspagefilter_tofilter_from

get_invoice

Get a single Quipu invoice by id, with all of its attributes and totals.

Parametersidrequired

create_invoice

Create an issued invoice in Quipu. Requires the contact id it is billed to and at least one line item. The contact must already have a tax_id (NIF/CIF) or Quipu will reject the invoice.

Parametersitemsrequireddue_datecontact_idrequiredissue_datepayment_method

update_invoice

Update an existing Quipu invoice. Note that Spanish invoicing rules restrict what can change once an invoice is issued and numbered; Quipu returns an error when a field is locked.

Parametersidrequiredpaid_atdue_dateissue_datepayment_method

delete_invoice

Delete a Quipu invoice permanently. Spanish invoicing rules generally require issuing a credit note instead of deleting a numbered invoice — prefer that unless the invoice is still a draft.

Parametersidrequired

get_invoice_download_url

Get a temporary public URL to download a Quipu invoice as PDF. The link is ephemeral and expires, so fetch it when the user actually needs the document rather than storing it.

Parametersidrequired

list_additional_incomes

List additional incomes and expenses recorded in Quipu — everything that is not an issued invoice: supplier bills, purchases, tickets and other deductible costs. Returns kind, total_amount_without_taxes, vat_amount and retention_amount. Bound the period with `filter_from` / `filter_to`. This is the input-VAT side needed to work out what a quarter actually owes.

Parameterspagefilter_tofilter_from

get_additional_income

Get a single additional income or expense entry from Quipu by its id.

Parametersidrequired

create_additional_income

Record an expense or additional income in Quipu. Use it to log supplier bills and deductible costs. Assign an `accounting_category_id` whenever you know it — an uncategorised expense still counts for VAT but is useless for the profit and loss breakdown.

Parameterskinditemsrequirednotesnumberpaid_atcontact_idissue_datepayment_methodrecipient_nameaccounting_category_id

update_additional_income

Update an existing additional income or expense in Quipu. Only the fields passed are modified.

Parametersidrequirednotesnumberpaid_atissue_datepayment_methodrecipient_name

delete_additional_income

Delete an additional income or expense entry from Quipu permanently.

Parametersidrequired

get_additional_income_download_url

Get a temporary public URL to download an expense document as PDF. The link is ephemeral and expires.

Parametersidrequired

get_tax_summary

Work out the VAT and IRPF position for a period from the invoices and expenses recorded in Quipu. Give it a year and a quarter (or an explicit date range) and it returns output VAT charged on invoices, input VAT paid on expenses, the resulting balance, and withholdings. Use this instead of listing invoices and adding them up by hand: Quipu has no endpoint that returns tax models (130, 303, 111), so the figures must be derived, and doing the arithmetic in code avoids the mistakes that come from adding long lists token by token. Treat the result as an estimate for orientation, not as a filed return.

Parameterstofromyearquarter

Version history

2
  1. v1.0.2LatestOct 22, 2026
  2. v1.0.1Sep 16, 2026

Score

90% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts
  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts