> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Lexoffice in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/lexoffice
Last updated: 2026-11-24

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 will 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](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Lexoffice for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/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.

1. **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**.

2. **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.

3. **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

1. **Open Shared Resources**

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

2. **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.

3. **Limit the tools**

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

4. **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:

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

## Employee: connect Lexoffice

### In the portal

1. **Open Lexoffice in the catalog**

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

2. **Authenticate**

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

3. **Confirm**

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

### With the CLI

```bash
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.

```bash
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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
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

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Lexoffice there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Lexoffice on metorial.com](https://metorial.com/integrations/lexoffice): the integration overview