Ask an AI about your data (MCP)
Connect ChatGPT, Claude or Grok to your Cianbox data and ask in plain language: "how much did we sell in July?", "which products need restocking?", "who hasn't bought since March?". The assistant queries and answers with the number, without anyone writing a line of code.
MCP (Model Context Protocol) is the standard plug assistants use to connect to an external system. We provide the plug; the assistant uses it.
The AI does not get into your database. It goes through this same API with your access: it sees only the companies and topics you were granted, it does not see costs or balances unless they are enabled for you, and every query is metered like any other use of the API. There is no side door.
How to connect
You sign in with your email and password, like any other app. No keys or technical settings to copy. You do it once.
1. Ask for your access
Whoever manages your Cianbox account creates it, choosing which companies you can reach and what you can query. You get this email: open it and pick a password of at least 12 characters.
2. Add Cianbox to your assistant
The connector address is the same for everyone:
https://cianbox.ai/mcp/Keep the trailing slash.ChatGPTpaid plan, on the web
- Settings → Plugins → Add. If it is not there, enable developer mode first.
- Fill in the fields as shown and press Create.
- In each new chat, enable Cianbox from the + menu.
Claudeclaude.ai or the desktop app
- Settings → Connectors → Add custom connector.
- Fill in name and URL, press Add, then Connect.
Grokgrok.com
- Settings → Connectors → custom connector.
- Paste the address above and connect.
Claude Code, Cursor, VS CodeMCP clients for developers
Add a remote MCP server with the same address and no headers: the client detects that it requires sign-in and opens your browser. In Claude Code:
claude mcp add --transport http cianbox https://cianbox.ai/mcp/
Then, inside Claude Code: /mcp → cianbox → Authenticate.
3. Sign in and authorize
The Cianbox page opens: enter your email and password (plus the emailed code, if your access requires it). Keep ticked the companies you want to share with the assistant and press Autorizar.
VentasStockClientesCostos y margen
That's it: you can start asking. The connection renews itself; after 30 days without use the assistant asks you to sign in again. If you have several companies, say which one you mean or the assistant will ask.
To disconnect: remove the connector from your assistant, or ask whoever manages your account to revoke your access: queries stop at that very moment. Changing your password disconnects every assistant you had connected.
What it can do
The assistant gets more than forty tools. You do not need to learn them — it picks the right one — but it is worth knowing what is there, because it explains which questions get answered well:
| Tool | What it uses it for |
|---|---|
listar_empresas |
which companies your connection reaches (if you have several) |
listar_topicos |
see what data exists, by topic |
listar_recursos |
what your access reaches (depends on what you were granted) |
describir_recurso |
which fields, filters and limits a resource has |
contexto_cuenta |
which company you are talking to: branches, price lists, zones, order statuses, seasons… (free) |
consultar |
pull rows: sales in a range, delivery notes not yet invoiced, purchase orders not yet received, a product's stock movements, installments coming due… |
ver_detalle |
one specific document with its line items |
agrupar_ventas |
ranking or time series of sales by customer, salesperson, branch, month, origin (MercadoLibre, Tienda Nube…)… already computed |
agrupar_compras |
the same, for purchases: by supplier, category, month… |
agrupar_cobros / agrupar_pagos |
what was collected or paid by day, month, salesperson, branch, payment method… |
presupuestos_agrupados |
quote conversion: which salesperson converts the most and how long a quote takes to become a sale |
desempeno_vendedores |
how each salesperson is doing: net sales, average ticket, distinct customers, new customers brought in and what they collected |
productos_vendidos |
best and worst sellers, no-rotation, profit by product, brand or category; ABC classification |
productos_comprados |
what I paid for each product and to whom, and how the cost changed |
resultado_mensual |
how much I made per month: sales, cost of sales, expenses and result |
existencias / stock_a_reponer / exceso_stock |
how much stock there is and what it is worth, what needs reordering and what is in excess |
clientes_sin_compras |
who stopped buying, with their balance |
antiguedad_saldos / cuenta_corriente |
debt by age and a customer's or supplier's account statement |
tiempos_service |
service-desk turnaround times |
saldos_caja / movimientos_caja / saldos_bancos |
how much is in each cash register and bank account, and their movements |
cupones_a_acreditar / cupones_tarjetas |
how much is still to be collected from cards, the vouchers and the settlements (fees and withholdings) |
cartera_cheques |
which checks are in the cash registers, today or at a date; only third-party checks are money (bounced and own ones, apart) |
vencimientos_proveedores |
what has to be paid to suppliers and when (overdue and coming due) |
posicion_tesoreria |
how much money there is today and whether it covers what comes due in 7 and 30 days |
flujo_fondos |
what comes in and goes out per week or month by due date, and when the balance turns negative; adds the estimates apart (purchase orders, salaries, taxes, card fees, subscriptions) |
actividad_clientes / cohortes_clientes |
new, lost and retained customers per period, and whether new ones come back |
clientes_en_riesgo |
who keeps buying but below their usual pace |
cumplimiento_proveedores |
complete, partial and unreceived purchase orders per supplier, and how many days they take to deliver |
dias_cobro_pago |
how long customers take to pay and how long it takes to pay suppliers |
posicion_iva |
the estimated VAT settlement for the current month (with a projection) and the previous one |
posicion_iibb |
sales by province and activity, perceptions and withholdings suffered (also those from cards and banks: SIRCREB and SIRTAC) and what was collected as an agent; the tax itself, only with the rates you give |
listado_percepciones_retenciones |
each perception or withholding suffered or applied (purchases, sales, collections, cards, payments and banks), with its totals by tax and province |
evolucion_abonos |
active subscriptions, new ones, cancellations and recurring revenue per month, with its variation |
abonos_pendientes_facturar |
which subscriptions are still to be invoiced and why, with Cianbox's criterion: pending, deferred, never invoiced, with gaps and in progress (the normal case), with the pending amount |
balance_sumas_saldos |
from the accounting: previous balance, debit, credit and balance of each account of the chart, with the sections |
libro_mayor |
an accounting account's movements with the running balance |
estado_resultados |
the period's profit and loss according to the accounting |
situacion_patrimonial |
assets, liabilities and equity at a date, and whether it adds up |
buscar |
find the id of a customer, supplier, product, serial number, brand or category by text (see search) |
leer_guia |
the guide for a topic (sales, customers and collections, purchases and suppliers, stock, treasury, taxes and results, accounting, subscriptions and service): which tool answers each question and how to read it |
leer_glosario |
tax terms, Cianbox concepts and known limitations of the data |
Tool names stay in Spanish because they are part of the server, the same one in
both languages. The reconnaissance ones (listar_*, describir_recurso,
contexto_cuenta, leer_guia and leer_glosario) are not billed.
How it picks the tool. When it connects, the assistant receives short
instructions with the general rules (dates, currencies, credit notes, voided
documents, how to cite a document) and a table of topics with their main
tools. The detail of each topic —which tool answers each question and the
topic's own rules, such as a customer's net debt or the fact that purchases
include expenses— lives in a guide per topic, which the assistant reads
with leer_guia the first time it deals with that topic in the conversation.
It is free and does not query your data. If you see it picked the wrong tool,
ask it to read the topic's guide ("read the treasury guide and answer
again").
What it cannot do
- It writes nothing. Read-only: it does not create, modify or delete. There is no tool for that, not even if you ask for one.
- It sees no company but yours. Your companies are tied to your access on the server side; asking it to "look at that other company's data" returns an error.
- It does not see what you did not subscribe to. If your access does not reach purchases, no question will make it reach them.
- It does not see money without the scope. Without the costs scope there is no cost and no margin; without the account-balance scope there are no balances and no debt. It cannot infer them: the columns are simply absent.
- It keeps none of your data. Every query goes out and comes back; the MCP server stores no copy of anything.
Billing is per use: ask for reports
This is the one thing worth knowing before you start. Every query consumes units (how billing works), and an AI left to its own devices can query a fair amount.
The good news is that the assistant sees the cost of every response and is instructed to take the cheap path. The gap is large, measured against production with a real account:
| Question | Path | Units |
|---|---|---|
| "How much did I sell per month this year?" | one aggregate report (agrupar_ventas), a single call |
a handful |
| The same one | pulling the year's 49,087 sales and adding them up | 984 |
Hundreds of times more expensive for the same number. That is why it pays to ask in terms of the result ("give me the monthly total") instead of raw data ("bring me every sale of the year"): the first phrasing sends the assistant to the report, the second one sets it paginating.
Two useful details:
- Scouting the terrain is free. Asking what exists, what fields a resource has or which reports are available costs no units.
- A report is charged by the rows it reads, not the ones it shows you. It asks for a short ranking (50) by default, so if you want the long ranking say so in the question ("give me the top 200 products"): running it again is paid again. The assistant tells you when a report came back truncated.
You can ask at any point "how much did that query cost?": the figure comes in every response it receives.
Questions that work well
About sales and revenue:
- How much did we invoice in July? And how is the year going, month by month?
- Which branch sold the most this quarter?
- What are the 20 best-selling products of the year?
- Which salesperson issued the most documents in August?
- Show me sale 12345 with all of its line items.
About customers:
- Who are my 10 best customers this year?
- Which customers have not bought from me in over six months?
- What did we sell to CLIENTE EJEMPLO so far this year?
- Find the customer with tax ID XX-XXXXXXXX-X and tell me their VAT status and salesperson.
About stock and products:
- Which products are below their minimum stock?
- Which goods did not sell at all over the last eight months?
- Find the product "oil filter" and tell me the stock I have at each branch.
And follow-up questions, which is where it pays off most: "from that list, keep only the ones from the Centro branch", "sort them by amount", "compare it with the same month last year". The assistant already has the context and often does not need to query again.
If your access has the money permissions, the questions that really matter open up: "which product line gives me the best margin?", "how much money is tied up in goods that are not moving?", "which customers owe me, and for how long?".
Things worth knowing
Double-check the numbers that matter. The assistant reads well, but it is a language model: it can mix up two similar columns or over-summarize. For a number that feeds a decision or a report, ask which query it came from and cross-check it. Aggregate reports are more trustworthy than a total it assembled by adding rows itself.
Dates and names are literal. If you ask for a filter on a field the resource does not have, the API ignores it without an error and the response comes back unfiltered. The assistant is warned about this and checks the valid fields first, but if a result looks odd, ask which filter it used.
If it tells you it cannot see something, it is almost always true. Errors come back explained: "that resource is not enabled for your access", or "that report needs data your access does not reach". It is not about how you phrased the question.
Do not leave it looping. Ask it to "go through the whole history" and it will paginate, and that is billed. Bound the period in the question.
A failed attempt is not billed. Rejections for permissions, for format or for rate limiting consume no units, so a retry costs you nothing.
Alternative: with an API key (technical integrations)
If you already have an API key and your tool lets you set headers (Claude Code, Cursor, VS Code), you can also connect the MCP with it. It is meant for automations and for people already working with the API; for someone who just wants to ask questions, the method above is simpler and safer.
{
"mcpServers": {
"cianbox": {
"type": "http",
"url": "https://cianbox.ai/mcp/",
"headers": {
"X-API-Key": "cbx_YOUR_KEY",
"X-Cianbox-Cuenta": "yourcompany"
}
}
}
}
Keep the trailing slash in the URL: some clients do not follow the redirect. Treat the key like a password: it ends up in a configuration file, and if that file is shared or synced, so is the key. If you suspect a leak, ask us for a new one and we revoke the old one.
If you would rather build your own agent
All of this sits on the same public endpoints the rest of this portal documents, so
if you prefer to write the agent yourself you do not need the MCP: /catalogo,
/v1/{account}/{resource} and the reports are enough.
The MCP is the convenience of not having to write that glue.