mcp-quipu
v1.0.2Quipu 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`.
| Parameter | Type | Description |
|---|---|---|
filter_name | string | Filter contacts whose name contains this text |
page | number | Page 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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Contact 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Contact name or company name |
address | string | Street address |
country_code | string | ISO 3166-1 alpha-2 country code (e.g. "ES") |
email | string | Contact email |
phone | string | Contact phone number |
tax_id | string | NIF/CIF. Required to issue invoices to this contact |
town | string | Town or city |
zip_code | string | Postal code |
update_contact
Update an existing Quipu contact. Only the fields you pass are modified; everything else is left untouched.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contact id |
address | string | Street address |
country_code | string | ISO 3166-1 alpha-2 country code |
email | string | Contact email |
name | string | Contact name or company name |
phone | string | Contact phone number |
tax_id | string | NIF/CIF |
town | string | Town or city |
zip_code | string | Postal 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contact 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.
| Parameter | Type | Description |
|---|---|---|
filter_from | string | Only invoices issued on or after this date (YYYY-MM-DD) |
filter_to | string | Only invoices issued on or before this date (YYYY-MM-DD) |
page | number | Page number, starting at 1 (default: 1) |
get_invoice
Get a single Quipu invoice by id, with all of its attributes and totals.
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice 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.
| Parameter | Type | Description |
|---|---|---|
contact_id * | string | Id of the contact being invoiced |
items * | array | Invoice line items |
due_date | string | Due date (YYYY-MM-DD) |
issue_date | string | Issue date (YYYY-MM-DD) |
payment_method | string | Payment 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice id |
due_date | string | Due date (YYYY-MM-DD) |
issue_date | string | Issue date (YYYY-MM-DD) |
paid_at | string | Date the invoice was paid (YYYY-MM-DD) |
payment_method | string | Payment 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice 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.
| Parameter | Type | Description |
|---|---|---|
filter_from | string | Only entries issued on or after this date (YYYY-MM-DD) |
filter_to | string | Only entries issued on or before this date (YYYY-MM-DD) |
page | number | Page number, starting at 1 (default: 1) |
get_additional_income
Get a single additional income or expense entry from Quipu by its id.
| Parameter | Type | Description |
|---|---|---|
id * | string | Additional 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.
| Parameter | Type | Description |
|---|---|---|
items * | array | Line items of the expense |
accounting_category_id | string | Id of the accounting category to file this entry under |
contact_id | string | Id of the related Quipu contact, if any |
issue_date | string | Issue date (YYYY-MM-DD) |
kind | string | Entry kind as accepted by Quipu (e.g. "expense", "income") |
notes | string | Free-text notes |
number | string | Supplier document number |
paid_at | string | Payment date (YYYY-MM-DD) |
payment_method | string | Payment method |
recipient_name | string | Supplier or recipient name |
update_additional_income
Update an existing additional income or expense in Quipu. Only the fields passed are modified.
| Parameter | Type | Description |
|---|---|---|
id * | string | Additional income id |
issue_date | string | Issue date (YYYY-MM-DD) |
notes | string | Free-text notes |
number | string | Supplier document number |
paid_at | string | Payment date (YYYY-MM-DD) |
payment_method | string | Payment method |
recipient_name | string | Supplier or recipient name |
delete_additional_income
Delete an additional income or expense entry from Quipu permanently.
| Parameter | Type | Description |
|---|---|---|
id * | string | Additional 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Additional 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…
| Parameter | Type | Description |
|---|---|---|
from | string | Start date (YYYY-MM-DD), overrides quarter |
quarter | number | Quarter: 1, 2, 3 or 4. Ignored when `from` and `to` are provided |
to | string | End date (YYYY-MM-DD), overrides quarter |
year | number | Year, e.g. 2026 |