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
- A portal with at least one access group
- An account with Lexoffice for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| OAuth 2.0 (Partner API) (default) | OAuth | Signs in to Lexoffice |
| API Key | API token | apiKey |
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:
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
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.
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 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. NeedsinvoiceId.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. NeedspaymentId.get_contact: Retrieves the full details of a single Lexoffice contact by ID. NeedscontactId.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. Needsaddress,lineItemsandtaxConditions.manage_voucher: Create, retrieve, or update bookkeeping vouchers in Lexoffice. Needsaction.create_contact: Creates a new contact in Lexoffice. Needsroles.create_invoice: Creates a new invoice in Lexoffice. Needsaddress,lineItemsandtaxConditions.create_credit_note: Creates a new credit note (Gutschrift) in Lexoffice. Needsaddress,lineItemsandtaxConditions.create_order_confirmation: Creates a new order confirmation (Auftragsbestätigung) in Lexoffice. Needsaddress,lineItemsandtaxConditions.
Destructive tools (2)
manage_article: Create, retrieve, update, or delete articles (products or services) in Lexoffice. Needsaction.update_contact: Updates an existing contact in Lexoffice. NeedscontactId,versionandroles.
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
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Lexoffice there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Lexoffice on metorial.com: the integration overview