TS Facturas MCP by usefulapi
Read invoices, contacts, expenses and payments; create contacts and payments in TS Facturas.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"ts-facturas": {
"url": "https://ts-facturas.usefulapi.io/mcp"
}
}
}Remote endpoints
https://ts-facturas.usefulapi.io/mcpstreamable-httpWhat it can do
Tool inventory
Tools (9)
🟢tsfacturas_get_account
Show the business this API client belongs to: business ID, fiscal name, VAT number and role. Good first call to check the connection. TS Facturas API: GET /v1/auth/info.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢tsfacturas_list_invoices(status, document_type, contact_vat_number, serial_code, reference, ...)
List invoices and sales receipts with status, totals, dates and contact. Filter by status, date range, customer VAT number or paid state. Use the id from here with tsfacturas_get_invoice. TS Facturas API: GET /v1/invoices.
Input Schema
{
"type": "object",
"properties": {
"status": {
"description": "Only invoices with this status.",
"type": "string",
"enum": [
"DRAFT",
"ISSUED",
"VOID",
"CORRECTED",
"REPLACED"
]
},
"document_type": {
"description": "Only this document type (default: all three).",
"type": "string",
"enum": [
"INVOICE",
"CORRECTIVE",
"TEST_INVOICE"
]
},
"contact_vat_number": {
"description": "Only invoices for the contact with this exact VAT number.",
"type": "string"
},
"serial_code": {
"description": "Only invoices with this serial code.",
"type": "string"
},
"reference": {
"description": "Only invoices with this reference.",
"type": "string"
},
"is_paid": {
"description": "Only paid (true) or unpaid (false) invoices.",
"type": "boolean"
},
"issued_from": {
"description": "Issued on or after this date (yyyy-mm-dd).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"issued_to": {
"description": "Issued on or before this date (yyyy-mm-dd).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"sort_issued_date": {
"description": "Sort by issue date.",
"type": "string",
"enum": [
"ASC",
"DESC"
]
},
"limit": {
"description": "Items per page, 1 to 100 (default 10).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"description": "Items to skip, for paging (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢tsfacturas_get_invoice(invoice_id)
Get one invoice or sales receipt with its lines, taxes, totals, contact and status. TS Facturas API: GET /v1/invoices/{id}.
Input Schema
{
"type": "object",
"properties": {
"invoice_id": {
"type": "string",
"minLength": 1,
"description": "Invoice ID, from tsfacturas_list_invoices."
}
},
"required": [
"invoice_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢tsfacturas_list_contacts(vat_number, is_customer, is_provider, sort_fiscal_name, limit, ...)
List customers and providers (contacts) with fiscal name, VAT number and contact details. Filter by exact VAT number or customer/provider role. TS Facturas API: GET /v1/contacts.
Input Schema
{
"type": "object",
"properties": {
"vat_number": {
"description": "Only the contact with this exact VAT number.",
"type": "string"
},
"is_customer": {
"description": "Only customers (true) or non-customers (false).",
"type": "boolean"
},
"is_provider": {
"description": "Only providers (true) or non-providers (false).",
"type": "boolean"
},
"sort_fiscal_name": {
"description": "Sort by fiscal name.",
"type": "string",
"enum": [
"ASC",
"DESC"
]
},
"limit": {
"description": "Items per page, 1 to 100 (default 10).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"description": "Items to skip, for paging (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢tsfacturas_list_expenses(identifier, is_paid, contact_vat_number, issued_from, issued_to, ...)
List expenses (purchase documents) with identifier, date, contact, lines and totals. Filter by date range, identifier, paid state or supplier VAT number. TS Facturas API: GET /v1/expenses.
Input Schema
{
"type": "object",
"properties": {
"identifier": {
"description": "Only the expense with this identifier.",
"type": "string"
},
"is_paid": {
"description": "Only paid (true) or unpaid (false) expenses.",
"type": "boolean"
},
"contact_vat_number": {
"description": "Only expenses from the contact with this exact VAT number.",
"type": "string"
},
"issued_from": {
"description": "Issued on or after this date (yyyy-mm-dd).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"issued_to": {
"description": "Issued on or before this date (yyyy-mm-dd).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"sort_issued_date": {
"description": "Sort by issue date.",
"type": "string",
"enum": [
"ASC",
"DESC"
]
},
"limit": {
"description": "Items per page, 1 to 100 (default 10).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"description": "Items to skip, for paging (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢tsfacturas_list_payments(type, method, operation_from, operation_to, contact_id, ...)
List payments with date, amount, method, direction (income or expense) and the contact or accounting account. Filter by direction, method, date range, contact or account. TS Facturas API: GET /v1/payments.
Input Schema
{
"type": "object",
"properties": {
"type": {
"description": "INCOME (received) or EXPENSE (made).",
"type": "string",
"enum": [
"INCOME",
"EXPENSE"
]
},
"method": {
"description": "Only payments made with this method.",
"type": "string",
"enum": [
"BIZUM",
"CASH",
"CREDIT_CARD",
"DIRECT_DEBIT",
"PROMISSORY_NOTE",
"TRANSFER",
"OTHER",
"CONFIRMING",
"NOT_CONFIRMED"
]
},
"operation_from": {
"description": "Dated on or after this date (yyyy-mm-dd).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"operation_to": {
"description": "Dated on or before this date (yyyy-mm-dd).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"contact_id": {
"description": "Only payments for this contact ID.",
"type": "string"
},
"accounting_account_id": {
"description": "Only payments for this accounting account ID.",
"type": "string"
},
"sort_operation_date": {
"description": "Sort by payment date.",
"type": "string",
"enum": [
"ASC",
"DESC"
]
},
"limit": {
"description": "Items per page, 1 to 100 (default 10).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"description": "Items to skip, for paging (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴tsfacturas_create_contact(fiscal_name, vat_number_type, vat_number, email, phone, ...)
Create a customer or provider (contact) in the business. Writes a new record to the business books. TS Facturas API: POST /v1/contacts.
Input Schema
{
"type": "object",
"properties": {
"fiscal_name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Fiscal name of the contact."
},
"vat_number_type": {
"description": "Type of the VAT number, for example NIF.",
"type": "string",
"enum": [
"NIF",
"NIF-IVA",
"PASSPORT",
"ORIGIN",
"CERTIFICATE",
"OTHER"
]
},
"vat_number": {
"description": "Fiscal identification, for example a Spanish NIF.",
"type": "string",
"maxLength": 64
},
"email": {
"description": "Contact email.",
"type": "string",
"maxLength": 64,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"phone": {
"description": "Contact phone.",
"type": "string",
"maxLength": 64
},
"is_customer": {
"description": "Mark as a customer.",
"type": "boolean"
},
"is_provider": {
"description": "Mark as a provider.",
"type": "boolean"
},
"notes": {
"description": "Internal notes about the contact.",
"type": "string",
"maxLength": 2000
}
},
"required": [
"fiscal_name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴tsfacturas_create_product(name, description, reference, tax_key, buying_price, ...)
Create a product or service in the business catalogue with its tax key and prices. Writes a new record to the business books. TS Facturas API: POST /v1/products.
Input Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Product name."
},
"description": {
"description": "Product description.",
"type": "string",
"maxLength": 2000
},
"reference": {
"description": "Internal product reference or SKU.",
"type": "string",
"maxLength": 50
},
"tax_key": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "Tax key in the format TAXTYPE_INT, for example \"IVA_21\" (Spanish VAT 21%)."
},
"buying_price": {
"description": "Buying price, without VAT.",
"type": "number",
"minimum": 0,
"maximum": 999999
},
"selling_price": {
"description": "Selling price, without VAT. TS Facturas calculates it when omitted.",
"type": "number",
"minimum": 0,
"maximum": 999999
},
"retail_price": {
"description": "Selling price with taxes and discounts. TS Facturas calculates it when omitted.",
"type": "number",
"minimum": 0
},
"discount_percentage": {
"description": "Discount percentage to apply.",
"type": "number",
"minimum": 0,
"maximum": 100
}
},
"required": [
"name",
"tax_key"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴tsfacturas_create_payment(operation_date, amount, type, method, contact_id, ...)
Record a payment in the business books: income received or expense paid. Give exactly one of contact_id or document_id. Writes a new record. TS Facturas API: POST /v1/payments.
Input Schema
{
"type": "object",
"properties": {
"operation_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date of the payment (yyyy-mm-dd)."
},
"amount": {
"type": "number",
"minimum": 0.01,
"description": "Amount of the payment, in the business currency."
},
"type": {
"type": "string",
"enum": [
"INCOME",
"EXPENSE"
],
"description": "INCOME (received) or EXPENSE (made)."
},
"method": {
"type": "string",
"enum": [
"BIZUM",
"CASH",
"CREDIT_CARD",
"DIRECT_DEBIT",
"PROMISSORY_NOTE",
"TRANSFER",
"OTHER",
"CONFIRMING",
"NOT_CONFIRMED"
],
"description": "How the payment was made."
},
"contact_id": {
"description": "Contact ID the payment belongs to. Use this OR document_id.",
"type": "string"
},
"document_id": {
"description": "Invoice or expense ID the payment settles. Use this OR contact_id.",
"type": "string"
},
"description": {
"description": "Short description of the payment.",
"type": "string",
"maxLength": 250
}
},
"required": [
"operation_date",
"amount",
"type",
"method"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Evidence