About Lexware MCP Server
Lexware MCP Server is an MCP server published by marselsel in the Cloud category: self-hostable MCP server with OAuth 2.1 — connect Claude, ChatGPT, or any other MCP-capable AI to your Lexware Office bookkeeping. Conduid read 31 tools from its source: create-article, create-contact, create-event-subscription, create-upload-ticket, create-voucher, delete-article and 25 more. No package is published for it, so it installs from a source checkout.
The repository has 46 stars and 15 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. Its topics include accounting, cloud-run, lexoffice, lexware, self-hosted and skybridge.
Install
git clone https://github.com/marselsel/Lexware-MCP-ServerTools (31)
create-articleCreate a new article (product or service).create-contactCreate a new contact (customer and/or vendor). Provide roles plus either a person (lastName required) or a company (name required).create-event-subscriptionSubscribe a callback URL to a Lexware event type (webhook), e.g. eventType 'invoice.created'. Sends future event notifications to an EXTERNAL URL, so treat the target as trusted. The callback URL must be https:// and serve a Grade-A HTTPS certificate.| Parameter | Type | Description |
|---|---|---|
| callbackUrl * | string | HTTPS endpoint that will receive events (Lexware requires a Grade-A HTTPS certificate). |
| eventType * | string | e.g. 'invoice.created', 'invoice.status.changed'. |
create-upload-ticketIssue a short-lived, single-use upload ticket so a file can reach Lexware WITHOUT its bytes passing through the model context (unlike upload-file, which needs base64). Returns a browser URL for drag-and-drop and a ready-to-run curl command — run the curl locally where the file lives, replacing ONLY the FILE=/path/to/file.pdf path at the front; nothing else must be edited. PASS filename AND mimeType whenever you know them: they are baked into the command as headers, so the receipt is filed under its real name (umlauts, dashes and quotes included) and its real type. Omit them and the file lands in the bookkeeping generically named 'upload.bin' as application/octet-stream. The command needs no extra tools installed. It prints the Lexware file id; in the browser case, read it afterwards with get-upload-result. Valid 15 minutes, usable once.| Parameter | Type | Description |
|---|---|---|
| filename | string | The file's real name, e.g. "Rechnung Müller.pdf". Baked into the curl command and used as the fallback if the upload itself carries none. Without it the receipt is named upload.bin. |
| mimeType | string | Content type, e.g. "application/pdf" or "image/jpeg". Baked into the curl command and used as the fallback if the upload carries none. Without it the receipt is filed as application/octet-stream. |
| type | string | Lexware file category. "voucher" for bookkeeping receipts. |
create-voucherCreate a bookkeeping voucher (a manually-booked sales/purchase transaction). Returns the new id. To attach a receipt afterwards, use upload-voucher-file.delete-articleDelete an article (product/service) by id. This is irreversible. Idempotent: deleting an id that is already absent reports success (the end state is the same).| Parameter | Type | Description |
|---|---|---|
| id * | string |
delete-event-subscriptionDelete (unsubscribe) an event subscription by id. Stops the webhook; recreate it to re-subscribe.| Parameter | Type | Description |
|---|---|---|
| id * | string |
download-fileDownload a file (a rendered document PDF or an uploaded receipt) by its file id. Returns a PDF's extracted text (scanned pages as images), an image as itself, and the raw bytes as an embedded resource; see `output`. File ids come from upload-file, an upload ticket, or a voucher's files[].| Parameter | Type | Description |
|---|---|---|
| accept | string | Preferred MIME type to request, e.g. "application/pdf". Defaults to any type. |
| id * | string | The Lexware file id. |
get-articleGet a single article by id.| Parameter | Type | Description |
|---|---|---|
| id * | string |
get-contactGet a single contact by id.| Parameter | Type | Description |
|---|---|---|
| id * | string |
get-documentFetch any financial document by id — invoice, quotation, credit note, order confirmation, delivery note, dunning, down payment invoice, bookkeeping voucher or recurring template — dispatching to the right endpoint from its `voucherType`. Pass the voucherType exactly as get-voucherlist returns it (e.g. 'invoice', 'purchaseinvoice', 'quotation'); for a dunning, which the voucherlist does not list, use 'dunning'.| Parameter | Type | Description |
|---|---|---|
| id * | string | |
| voucherType * | string | The voucherlist voucherType for this id. |
get-document-fileDownload the finalized file of a sales document by resource + id (GET /v1/{resourceType}/{id}/file), returned inline — the PDF by default, or the e-invoice XML with format="xml", which exists only for an XRechnung invoice, credit note or down payment invoice. The document must be FINALIZED — a draft has no file yet. resourceType is the REST path, e.g. 'invoices', 'credit-notes'. Returns the PDF's text (or the XML) as readable content plus the raw file; see `output`.| Parameter | Type | Description |
|---|---|---|
| id * | string | |
| resourceType * | string | Document resource path, e.g. 'invoices', 'credit-notes'. |
get-document-linkBuild a deeplink that opens a document directly in the Lexware web app (works when logged into Lexware). Use this to let the user view/print a document; do not use it to fetch raw PDF bytes.| Parameter | Type | Description |
|---|---|---|
| action | string | |
| id * | string | |
| resourceType * | string |
get-event-subscriptionGet a single event subscription by id.| Parameter | Type | Description |
|---|---|---|
| id * | string |
get-paymentGet payment information for a voucher/document by its id. NOTE: this is the only payment data the public API exposes — there is no general bank-transaction read/assignment endpoint, no DATEV export, and tax returns (e.g. USt-Voranmeldung) are not available via the API, so VAT/§13b reconciliation can't be fully automated.| Parameter | Type | Description |
|---|---|---|
| id * | string |
get-recurring-templateGet a recurring-invoice template by id.| Parameter | Type | Description |
|---|---|---|
| id * | string |
get-upload-resultRead the Lexware file id produced by an upload ticket. Use after a browser drag-and-drop; the curl path already prints the id itself. Returns pending=true while nothing has been uploaded yet.| Parameter | Type | Description |
|---|---|---|
| ticket * | string | The ticket from create-upload-ticket. |
get-voucherGet a single bookkeeping voucher by id — the full object, including contactId for referenced contacts (collective vouchers have only contactName) and files[] (ids of attached receipts). Note: only manually-booked vouchers resolve here; for any other voucherlist row (invoice, quotation, …) use get-document. There is no festgeschrieben/lock flag in the payload; a locked (filed-VAT-period) voucher only surfaces as an error on a write attempt.| Parameter | Type | Description |
|---|---|---|
| id * | string |
get-voucher-fileDownload the receipt attached to a bookkeeping voucher in one call: resolves the voucher's file id and returns the file inline (instead of get-voucher then download-file). Use fileIndex to pick a different attachment when a voucher has several. A PDF receipt comes back as its extracted text, a scanned page as an image, an image receipt as itself — plus the raw file; see `output`.| Parameter | Type | Description |
|---|---|---|
| fileIndex | number | Which attached file (0 = first). |
| id * | string | The voucher id. |
get-voucherlistSearch the voucher list — the primary index of all financial documents (invoices, credit notes, quotations, etc.). voucherType and voucherStatus both default to 'any', which matches all. Results are paged. Filter by createdDate*/updatedDate* to see only what is new or changed since a given day, and by voucherNumber to look a single document up by its number.| Parameter | Type | Description |
|---|---|---|
| archived | boolean | |
| contactId | string | |
| sortBy | string | Field to sort by. Omit for Lexware's default, which is voucherDate newest-first. |
| sortDirection | string | Sort direction, defaulting to DESC. Requires sortBy; on its own it has nothing to sort. |
| voucherNumber | string | Exact voucher number, e.g. "RE-2026-0042". Matches the WHOLE number only — a prefix or substring returns nothing. This is the only way to find a document by its number; there is no search-by-number endpoint. |
get-vouchersFetch multiple bookkeeping vouchers by id in one call (each returned in full, like get-voucher) — reduces round-trips when you need many. Fetched sequentially through the ~2 requests/second rate limit, so a full batch of 50 takes ~25s; page through larger sets. Ids that fail are returned in `errors` (not thrown), so one bad id won't fail the batch.| Parameter | Type | Description |
|---|---|---|
| ids * | array | Voucher ids to fetch (max 50 per call). |
list-articlesList articles (products/services). Optional filters; results are paged (use page/size to fetch more).| Parameter | Type | Description |
|---|---|---|
| articleNumber | string | |
| gtin | string | |
| type | string |
list-contactsList/search contacts (customers and vendors). Optional filters; results are paged (use page/size).| Parameter | Type | Description |
|---|---|---|
| customer | boolean | |
| string | Substring match, min 3 chars. Case-insensitive; Lexware also accepts SQL-style wildcards, `_` for one character and `%` for any run. | |
| name | string | Substring match, min 3 chars. Case-insensitive; Lexware also accepts SQL-style wildcards, `_` for one character and `%` for any run. |
| number | number | Contact number. |
| vendor | boolean |
list-recurring-templatesList recurring-invoice templates. Results may be paged (use page/size).summarize-vouchersAggregate the voucherlist over a date range WITHOUT returning every row: server-side paginates all matches and returns counts plus summed gross/open amounts, grouped by a chosen dimension. Use this for totals (e.g. 'gross sales invoices in Q2') instead of get-voucherlist, which can blow the token limit on large ranges. Amounts are GROSS (the voucherlist's totalAmount/openAmount) in the document currency — the net/VAT split is not in the voucherlist, so this does not break out USt. voucherType/voucherStatus default to 'any'.| Parameter | Type | Description |
|---|---|---|
| archived | boolean | |
| contactId | string | |
| groupBy | string | Dimension to group totals by. 'month' buckets by voucherDate (YYYY-MM); 'none' = one total. |
| maxPages | number | Safety cap on pages scanned (250 rows/page). If hit, the result is flagged truncated. |
update-articleUpdate an existing article. Read-modify-write: the current article is fetched and your fields are merged over it, so omitted fields aren't wiped and you can change just the price. Pass `version` for optimistic locking (omit to use the latest); a stale version is rejected with 409.| Parameter | Type | Description |
|---|---|---|
| id * | string |
update-contactUpdate a contact. Read-modify-write: the current contact is fetched and your fields are merged over it, so existing addresses, emailAddresses and roles are preserved — lexoffice PUT otherwise replaces the whole contact. Nested objects like `company` are merged, so you can set just company.vatRegistrationId (without resending the name), or a single address field like addresses.billing[0].countryCode — partial addresses are merged into the existing one (street/zip/city are kept). Pass `version` for optimistic locking; omit to use the latest.| Parameter | Type | Description |
|---|---|---|
| id * | string |
update-voucherUpdate a bookkeeping voucher. Read-modify-write: the current voucher is fetched and your fields are merged over it, so attached files and untouched fields (voucherNumber, contact, …) are preserved. Send only what you change, e.g. { id, voucherItems: [...] }. voucherItems and files REPLACE the whole list. To link a real contact pass contactId (its custom contactName is auto-cleared and useCollectiveContact set false); for a one-off pass contactName. voucherStatus paid/voided/transferred/sepadebit are payment-derived: an unset status is omitted so a paid-but-not-filed voucher stays editable; pass voucherStatus:"voided" (voiding) and deleting are NOT supported via the public API — UI-only Storno. NOTE: vouchers in an already-filed VAT period are festgeschrieben and cannot be modified or deleted via API (web-app Storno only); there is no DELETE endpoint for vouchers. Pass `version` for optimistic locking (omit for latest).| Parameter | Type | Description |
|---|---|---|
| id * | string |
upload-fileUpload a file to Lexware's file store — the first step of attaching a receipt to a bookkeeping voucher. Provide the file as base64; returns the new file id to reference elsewhere. The base64 travels inline in the request (~12 MB body cap), so keep the source file under ~8 MB.| Parameter | Type | Description |
|---|---|---|
| fileBase64 * | string | File contents, base64-encoded. |
| filename * | string | e.g. "receipt-2024-01.pdf". |
| mimeType * | string | Content type, e.g. "application/pdf" or "image/png". |
| type | string | File category. Lexware uses "voucher" for bookkeeping receipts. |
upload-file-from-urlDownload a file from a pre-authenticated share link and store it in Lexware, without the bytes passing through the model context — e.g. an email attachment saved to OneDrive/SharePoint via the Microsoft 365 tools. Only https URLs on an allow-listed host are accepted, re-checked after every redirect; arbitrary URLs are refused by design. Allow-listed here: ${allowedHosts.join(", ") || "(none — every URL is refused)"}.Limit 20 MB. If the file is on this machine rather than behind a link, use create-upload-ticket.| Parameter | Type | Description |
|---|---|---|
| filename | string | Overrides the name derived from the response. |
| mimeType | string | Overrides the content type from the response. |
| type | string | Lexware file category. "voucher" for bookkeeping receipts. |
| url * | string | Public https URL of the file (allow-listed hosts only). |
upload-voucher-fileAttach a file (receipt/scan) to a bookkeeping voucher via POST /v1/vouchers/{id}/files. Provide the file as base64 (inline; ~12 MB body cap, so keep the source under ~8 MB). To RE-LINK an already-uploaded file by id without re-sending bytes, set the voucher's `files` array via update-voucher instead.| Parameter | Type | Description |
|---|---|---|
| fileBase64 * | string | File contents, base64-encoded. |
| filename * | string | e.g. "receipt.pdf". |
| id * | string | The voucher id to attach the file to. |
| mimeType * | string | Content type, e.g. "application/pdf" or "image/png". |
Security checks
6 checks have not been run yet.