MetorialDocs

Set up Lexoffice in Metorial for Claude, ChatGPT and Cursor

Share Lexoffice with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 18 tools (10 read-only).

To give your team Lexoffice in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Lexoffice integration in a Metorial portal, and each person signs in to Lexoffice with their own account. Agents can manage Lexware Office contacts, articles, invoices, quotations, credit notes, order confirmations and bookkeeping vouchers. The integration has 18 tools, 10 read-only, 6 write and 2 destructive, plus 5 triggers.

What you'll learn

  • How an admin shares Lexoffice in a portal and how each person connects
  • What Lexoffice asks for when you connect, and where to find it
  • How to keep the 10 read-only tools and reject the other 8

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth 2.0 (Partner API) (default)OAuthSigns in to Lexoffice
API KeyAPI tokenapiKey

The portal and metorial setup use OAuth 2.0 (Partner API) unless someone picks another method.

OAuth 2.0 (Partner API)

People sign in to Lexoffice and approve the permissions it lists.

API Key

To connect, a person enters:

  • apiKey: Your Lexoffice API key generated from https://app.lexware.de/addons/public-api

Use your own Lexoffice OAuth app

With your own OAuth app, people see your company's name on the Lexoffice consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Lexoffice and copy the Redirect URI.

Register the app with Lexoffice

Create an OAuth app or client in Lexoffice and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Lexoffice integration.

Admin: share Lexoffice in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Lexoffice. Under Auth Method, keep OAuth 2.0 (Partner API) or pick another. For how members connect, choose Each person connects, so everyone signs in to Lexoffice as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Lexoffice.

Choose who gets it

Add the access groups that should see Lexoffice. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Lexoffice integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search lexoffice

Employee: connect Lexoffice

In the portal

Open Lexoffice in the catalog

Sign in to your portal and open Lexoffice. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Lexoffice sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search lexoffice
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth 2.0 (Partner API). To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Lexoffice connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list lexoffice
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 10 read-only tools, such as get_contact and get_invoice, and lose the 6 write tools, such as create_contact or create_invoice, and the 2 destructive tools, such as manage_article or update_contact.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list lexoffice
metorial tools <integration-id>
metorial call <integration-id> get_profile -d '{}'

metorial tools lists the 18 tools, minus any you rejected. get_profile takes no input.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (10)

  • list_contacts: Lists and filters contacts in Lexoffice.
  • get_invoice: Retrieves a single invoice from Lexoffice by its ID. Needs invoiceId.
  • list_articles: Lists articles (products and services) from Lexoffice with optional filtering by article number, GTIN, or type.
  • list_vouchers: Lists bookkeeping vouchers from the Lexoffice voucherlist endpoint.
  • get_payment: Retrieves payment information for a specific voucher from Lexoffice. Needs paymentId.
  • get_contact: Retrieves the full details of a single Lexoffice contact by ID. Needs contactId.
  • get_profile: Retrieves the organization profile from Lexoffice, including organization identity, tax configuration, connection identity and available features.
  • download_document: Download a finalized invoice, credit note, quotation or order confirmation as PDF.
  • get_resource: Retrieve an exact contact, invoice, quotation, credit note, order confirmation, article or bookkeeping voucher.
  • list_reference_data: Discover posting category IDs, payment conditions, country tax classifications or print layout IDs.

Write tools (6)

  • create_quotation: Creates a new quotation (Angebot) in Lexoffice. Needs address, lineItems and taxConditions.
  • manage_voucher: Create, retrieve, or update bookkeeping vouchers in Lexoffice. Needs action.
  • create_contact: Creates a new contact in Lexoffice. Needs roles.
  • create_invoice: Creates a new invoice in Lexoffice. Needs address, lineItems and taxConditions.
  • create_credit_note: Creates a new credit note (Gutschrift) in Lexoffice. Needs address, lineItems and taxConditions.
  • create_order_confirmation: Creates a new order confirmation (Auftragsbestätigung) in Lexoffice. Needs address, lineItems and taxConditions.

Destructive tools (2)

  • manage_article: Create, retrieve, update, or delete articles (products or services) in Lexoffice. Needs action.
  • update_contact: Updates an existing contact in Lexoffice. Needs contactId, version and roles.

Triggers

Lexoffice has 5 triggers, which fire on events in Lexoffice:

  • payment_events: Triggers when payment information changes in Lexoffice.
  • voucher_events: Triggers when bookkeeping vouchers are created, changed, deleted, or when their status changes in Lexoffice.
  • contact_events: Triggers when contacts are created, changed, or deleted in Lexoffice.
  • invoice_events: Triggers when invoices are created, changed, deleted, or when their status changes in Lexoffice.
  • article_events: Triggers when articles are created, changed, or deleted in Lexoffice.

Next steps