mcp-quipu

v1.0.2
io.github.nubiia-dev/mcp-quipu Checked 1 day ago Published 1 month ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

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`.

ParameterTypeDescription
filter_namestringFilter contacts whose name contains this text
pagenumberPage number, starting at 1 (default: 1)

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).

ParameterTypeDescription
id *stringContact id

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.

ParameterTypeDescription
name *stringContact name or company name
addressstringStreet address
country_codestringISO 3166-1 alpha-2 country code (e.g. "ES")
emailstringContact email
phonestringContact phone number
tax_idstringNIF/CIF. Required to issue invoices to this contact
townstringTown or city
zip_codestringPostal code

update_contact

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

ParameterTypeDescription
id *stringContact id
addressstringStreet address
country_codestringISO 3166-1 alpha-2 country code
emailstringContact email
namestringContact name or company name
phonestringContact phone number
tax_idstringNIF/CIF
townstringTown or city
zip_codestringPostal 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.

ParameterTypeDescription
id *stringContact id

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.

ParameterTypeDescription
filter_fromstringOnly invoices issued on or after this date (YYYY-MM-DD)
filter_tostringOnly invoices issued on or before this date (YYYY-MM-DD)
pagenumberPage number, starting at 1 (default: 1)

get_invoice

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

ParameterTypeDescription
id *stringInvoice id

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.

ParameterTypeDescription
contact_id *stringId of the contact being invoiced
items *arrayInvoice line items
due_datestringDue date (YYYY-MM-DD)
issue_datestringIssue date (YYYY-MM-DD)
payment_methodstringPayment method as accepted by Quipu (e.g. "bank_transfer", "cash")

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.

ParameterTypeDescription
id *stringInvoice id
due_datestringDue date (YYYY-MM-DD)
issue_datestringIssue date (YYYY-MM-DD)
paid_atstringDate the invoice was paid (YYYY-MM-DD)
payment_methodstringPayment 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.

ParameterTypeDescription
id *stringInvoice id

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.

ParameterTypeDescription
id *stringInvoice id

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.

ParameterTypeDescription
filter_fromstringOnly entries issued on or after this date (YYYY-MM-DD)
filter_tostringOnly entries issued on or before this date (YYYY-MM-DD)
pagenumberPage number, starting at 1 (default: 1)

get_additional_income

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

ParameterTypeDescription
id *stringAdditional income id

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.

ParameterTypeDescription
items *arrayLine items of the expense
accounting_category_idstringId of the accounting category to file this entry under
contact_idstringId of the related Quipu contact, if any
issue_datestringIssue date (YYYY-MM-DD)
kindstringEntry kind as accepted by Quipu (e.g. "expense", "income")
notesstringFree-text notes
numberstringSupplier document number
paid_atstringPayment date (YYYY-MM-DD)
payment_methodstringPayment method
recipient_namestringSupplier or recipient name

update_additional_income

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

ParameterTypeDescription
id *stringAdditional income id
issue_datestringIssue date (YYYY-MM-DD)
notesstringFree-text notes
numberstringSupplier document number
paid_atstringPayment date (YYYY-MM-DD)
payment_methodstringPayment method
recipient_namestringSupplier or recipient name

delete_additional_income

Delete an additional income or expense entry from Quipu permanently.

ParameterTypeDescription
id *stringAdditional income id

get_additional_income_download_url

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

ParameterTypeDescription
id *stringAdditional income id

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 ret…

ParameterTypeDescription
fromstringStart date (YYYY-MM-DD), overrides quarter
quarternumberQuarter: 1, 2, 3 or 4. Ignored when `from` and `to` are provided
tostringEnd date (YYYY-MM-DD), overrides quarter
yearnumberYear, e.g. 2026