Developers / MCP server
Work in your books from an AI assistant
MCP (Model Context Protocol) is a standard way for AI assistants to use outside tools. The otazio MCP server gives an assistant such as Claude a set of tools for your books, so you can ask in plain words, for example “draft a quote for the Hendersons’ water heater swap” or “who still owes me money?”. The assistant picks the tools, and you see and approve the results.
It is a thin client of the public REST API. It has no database access of its own and no private endpoints, so everything it does is something you could do through the API or the app.
What an assistant can do
These are the tools the server offers today. Read-only tools are marked as such to the assistant, so a client can run them without asking each time.
Businesses and customers
- list_businesses
- Lists the businesses you can open and shows which one is active.
- search_customers
- Finds customers by name, email, phone or your own reference.
- create_customer
- Adds a customer.
Saved items and categories
- list_items
- Lists your saved parts, labor, fees and discounts.
- create_item
- Saves a new item for use on quotes and invoices.
- list_categories
- Lists income and expense categories with their Schedule C lines.
Quotes, work orders and invoices
- create_quote
- Drafts a quote. Nothing is sent or posted.
- create_invoice
- Drafts an invoice. Nothing is sent or posted.
- list_documents
- Lists quotes, work orders and invoices by kind, status, customer or text.
- get_document
- Reads one document with its lines and totals.
- approve_quote
- Marks a quote as approved by the customer.
- convert_document
- Turns a quote into a work order, a work order into an invoice, or a draft invoice into an issued one. Issuing an invoice posts it to the books.
- send_document
- Emails a quote or issued invoice to the customer with a PDF and a link. Only sends after you confirm.
Money in and money out
- record_payment
- Records a payment against an issued invoice, by default the balance due.
- record_sale
- Records a sale paid on the spot.
- record_expense
- Records an expense with its category, and optionally a job and receipts.
- upload_receipt
- Uploads a receipt image or PDF to attach to an expense.
Reports
- get_report
- Runs the summary, job profit, profit and loss, accounts receivable aging or Schedule C report.
Links to your other systems
- find_by_external_ref
- Finds records by the id another system gave them.
- add_external_refs
- Links a customer, item, document or expense to a record in another system.
Safety rules
The server enforces these itself. They hold whichever assistant you use and however it is prompted.
The assistant drafts, you decide
Quotes and invoices from the assistant are created as drafts and marked as written by AI. You review them in the app before anything is issued or sent. Tools that post money or contact a customer say so in their description, so the assistant knows to check with you.
Nothing reaches a customer without your yes
Asked to send a quote or invoice, the server first answers with what would go out and to whom. It sends only when the assistant calls again with an explicit confirmation, which it should ask you for.
A retry never posts twice
Every change carries an idempotency key. If the assistant repeats a call after a timeout, the server replays the first result instead of recording the payment or expense again. Two genuinely identical entries, such as two matching receipts, can still be recorded on purpose.
Your permissions, nothing more
The server is a client of the public REST API and signs in as you. A viewer can only read, owners and editors can write, and the assistant cannot reach anything you cannot reach in the app. Mistakes are voided, never deleted, so the history stays intact.
Connecting it
Today the server is a small program that runs next to the assistant on your computer and signs in to otazio with your account. For launch we plan two additions: a hosted MCP endpoint, so you only need a URL, and personal API keys, so the assistant gets its own key that you can revoke at any time instead of your password.
The examples below show the planned setup. The API address is final. The MCP endpoint path, the key and the option names are placeholders and may change before launch.
Claude Code
Add the hosted endpoint from a terminal, then check it with claude mcp list.
claude mcp add --transport http otazio https://api.otazio.com/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Claude Desktop
Add this to claude_desktop_config.json to run the local program, then restart Claude Desktop. Leave out the business id if you only have one business.
{
"mcpServers": {
"otazio": {
"command": "/path/to/otazio-mcp",
"env": {
"OTAZIO_URL": "https://api.otazio.com",
"OTAZIO_API_KEY": "YOUR_API_KEY",
"OTAZIO_BUSINESS_ID": "YOUR_BUSINESS_ID"
}
}
}
}Building your own client?
Everything the MCP server does goes through the REST API, which you can call directly. The API reference covers sign-in, idempotency keys, errors and every endpoint.