Skip to content

Integration · Accounting

Connect Claude & ChatGPT to Xena

Ask your AI who owes you money, what is on an account or which orders are waiting, and it answers from Xena. It can create customers, articles and orders, add journal lines, and invoice an order or book a journal when you confirm. Every tool works inside the Xena company (fiscal setup) you choose.

Connect Xena free

Free plan, no credit card. Takes about a minute.

Try asking

  • “Which customers have unpaid invoices, and how much do they owe?”

    The AI lists unsettled invoices and pulls the balance and open items for each customer.

  • “What makes up the balance on account 1810 this year?”

    It lists the postings on that ledger account for the date range.

  • “Create Nordisk Byg ApS as a customer, CVR 12345678.”

    It creates a partner of type customer with name, address, email and CVR.

What your AI can do

Customers and open items

Search customers and suppliers, see balances and unsettled entries, and create or update partners.

Orders and invoicing

Create orders with lines from your articles, update order headers and invoice an order when you confirm.

Journals and ledger

Add journal lines with VAT codes, book a journal, and read the chart of accounts, postings and booked vouchers.

  • “Make an order for Nordisk Byg: 10 hours of consulting at 950 DKK, and invoice it.”

    It creates the order and adds the line, then invoices it after you confirm the amount. Invoicing is irreversible.

  • “Enter the 1,250 DKK Microsoft receipt, VAT included, in the daily journal.”

    It adds a journal line with account, amount, VAT code and voucher number. Nothing is booked until you approve book_ledger.

  • “Find voucher 4211 and show me its postings.”

    It finds the booked voucher by number and reads its postings.

30 tools for Xena

These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.

  • add_ledger_lineChanges dataAdd a line to a journal: body needs LedgerId, LedgerAccount, Amount, Description, VoucherNumber and FiscalDateDays; set VatId if VAT applies. The line is not booked until book_ledger. Needs fiscal_id (from list_fiscal_setups).
  • add_order_lineChanges dataAdd a line to an order: body needs OrderId, ArticleId (or Description), Quantity and PriceEach. Needs fiscal_id (from list_fiscal_setups).
  • book_ledgerVisible to othersBook the lines in a journal (ledger_id) to the general ledger, either all lines or the given ledger_line_ids. Booking is irreversible; confirm with the user first. Needs fiscal_id (from list_fiscal_setups).
  • create_articleChanges dataCreate a new article (product or service). Needs article_number and description; set sales_price and group_id as needed. Needs fiscal_id (from list_fiscal_setups).
  • create_orderChanges dataCreate a new, empty order for a partner (partner_id). Add lines afterwards with add_order_line and invoice it with invoice_order. Needs fiscal_id (from list_fiscal_setups).
  • create_partnerChanges dataCreate a new partner (customer or supplier) with name/address, email, phone and CVR. Set partner_type to say whether it is a customer or supplier. Needs fiscal_id (from list_fiscal_setups).
  • delete_order_lineDeletesRemove one line from an order that has not been invoiced yet, by order_line_id. Cannot be undone. Needs fiscal_id (from list_fiscal_setups).
  • get_articleGet one article by product_id, including sales price, purchase price, unit and stock settings. Needs fiscal_id (from list_fiscal_setups).
  • get_fiscal_setupGet the company details for one fiscal setup: name, address, CVR, currency and settings. Needs fiscal_id (from list_fiscal_setups).
  • get_orderGet one order by order_id, including customer, references, dates, status and totals. Use list_order_lines for its lines. Needs fiscal_id (from list_fiscal_setups).
  • get_partnerGet one partner (customer or supplier) by partner_id, including address, account number, payment terms and invoice email. Needs fiscal_id (from list_fiscal_setups).
  • get_partner_balanceGet the current balance (what they owe or are owed) for one partner by partner_id. Needs fiscal_id (from list_fiscal_setups).
  • get_voucherGet one booked voucher by its id (journal_entry_id), including its postings. Needs fiscal_id (from list_fiscal_setups).
  • invoice_orderVisible to othersInvoice (book) an order by order_id, turning it into a posted invoice with an invoice number. This is irreversible bookkeeping; confirm the order and amount with the user first. Needs fiscal_id (from list_fiscal_setups).
  • list_account_postingsList the posted entries on one ledger account (ledger_account number), optionally within a date range. Use it to see what makes up an account balance. Needs fiscal_id (from list_fiscal_setups).
  • list_fiscal_periodsList the fiscal years (periods) of the company with their start and end dates. Needs fiscal_id (from list_fiscal_setups).
  • list_fiscal_setupsList the Xena companies (fiscal setups) you have access to. Start here: every other Xena tool needs the fiscal_id from this list.
  • list_invoicesList booked invoices, filtered by partner, settled/unsettled status, free text or date range. Use filter_is_settled=false to find unpaid invoices. Needs fiscal_id (from list_fiscal_setups).
  • list_ledger_accountsList the chart of accounts (ledger accounts) with numbers and names. Use query_string to find an account. Needs fiscal_id (from list_fiscal_setups).
  • list_ledger_linesList the unbooked lines in one journal by ledger_id. Needs fiscal_id (from list_fiscal_setups).
  • list_ledgersList the journals (kassekladder) used to enter vouchers before they are booked. Needs fiscal_id (from list_fiscal_setups).
  • list_order_linesList the lines (articles, quantities, prices) on one order by order_id. Needs fiscal_id (from list_fiscal_setups).
  • list_ordersList sales orders, filtered by partner, status, free text or date range (dates are Xena day numbers). Use filter_context_type to pick sales vs purchase orders. Needs fiscal_id (from list_fiscal_setups).
  • list_partner_open_itemsList a partner's unsettled entries (unpaid invoices and credit notes) by partner_id. Use it to see exactly what a customer still owes. Needs fiscal_id (from list_fiscal_setups).
  • list_vat_codesList the VAT codes set up for the company. Use the ids when adding journal lines. Needs fiscal_id (from list_fiscal_setups).
  • list_vouchersList booked vouchers, filtered by voucher number range, amount range, date range or text. Needs fiscal_id (from list_fiscal_setups).
  • search_articlesSearch articles (products and services) by description or article number. Needs fiscal_id (from list_fiscal_setups).
  • search_partnersSearch partners (customers and suppliers) by name, email, phone, CVR/org number, city or zip. Use filter_partner_type to limit to customers or suppliers. Needs fiscal_id (from list_fiscal_setups).
  • update_orderChanges dataUpdate an order's header (references, delivery address, notes, dates, status). Send the full order object from get_order with your changes in body. Needs fiscal_id (from list_fiscal_setups).
  • update_partnerChanges dataUpdate an existing partner's details such as address, email, phone, note or CVR. Needs partner_id. Needs fiscal_id (from list_fiscal_setups).

Set up in three steps

  1. 1

    Pick the app

    Create a free PipMCP account and choose Xena from the app list.

  2. 2

    Paste your key

    Paste a Xena API key. In Xena, go to Setup → Import/export data → API-keys and create a key.

  3. 3

    Add the link to your AI

    You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:

    Click your name, then Settings › Connectors › Add custom connector. Paste your link as the Remote MCP server URL. Switch it on from the + menu in a chat.

Questions

What can the AI do in Xena?

It can search and read customers, suppliers, articles, orders, invoices, vouchers, ledger accounts, postings, journals, VAT codes and fiscal periods. It can create partners, articles and orders, add or remove order lines, and update orders and partners. It can also add journal lines, book a journal and invoice an order.

Does the AI see my Xena API key?

No. You paste your Xena API key into PipMCP once. It is encrypted at rest, never shown to the AI and never shown again after you save it. The AI only gets the results of the tools you have switched on.

Can I control what the AI is allowed to do?

Yes. You choose which tools are switched on, for example lookups only. Irreversible bookkeeping, like book_ledger and invoice_order, can require your approval before it runs, and so can deleting an order line. Every tool call is logged.

Does it work with ChatGPT?

Yes. In ChatGPT, open Settings › Apps & Connectors › Advanced, turn on Developer mode and add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector) and in Cursor.

What does it cost?

PipMCP has a free plan, and you do not need a credit card to start. Paid plans are billed per completed task. You connect your own Xena account, so anything Xena charges is between you and Xena.

What is a fiscal setup, and why does the AI ask for one?

In Xena, each company you keep books for is a fiscal setup. The AI starts by listing the ones your key can access and uses that company's fiscal_id in every other call. If you have more than one company, tell the AI which one to work in.

Let your AI work in Xena today.

Start free. Your key stays encrypted, and you decide what the AI may do.

Connect Xena free

PipMCP is not affiliated with Xena. Product names are trademarks of their owners.