Purpose
lexware-office-mcp is an unofficial MCP (Model Context Protocol) server for connecting MCP clients (such as Claude Desktop) to a Lexware Office account. It works through the official public REST API, using an API key that the account owner can generate and revoke. Users can ask about invoices, contacts, articles, vouchers, and other information in natural language, and the client retrieves it on their behalf.
Main capabilities
- Supports finding, reading, creating, and modifying contacts, vouchers, and documents, viewing unpaid items, downloading PDFs, uploading receipts, and posting them to the ledger.
get_profileCan query the currently connected account.- Includes seven built-in prompts for recurring monthly questions (such as open items, missing receipts, and customer status).
- Supports stdio (as a Claude Desktop extension or launched from PyPI) and streamable HTTP with a bearer token (published as a container image, with a Compose file provided).
- Downloaded files are written to a local download directory and reported both by path and by resource URI; the resource list is read when the client requests it, with support for
notifications/resources/list_changednotifications. read_downloadcan place downloaded content into answers;get_deeplinkcan turn IDs into web app links.- Uploads support PDF, JPEG, PNG, and XML (XRechnung), with a maximum of 5 MiB per file, and the source can be a local path or a URL.
Usage
- Installation: can be used as a Claude Desktop extension, a self-updating extension, or with
uvxfor any MCP client. - Configuration: configure through the browser, or use
--toolsto specify a JSON policy file and enable tools one by one. - Read-only by default:
--tools read-onlyprovides search, read, and download without writing. - Write tools must be enabled one by one and create real accounting records; the API cannot delete posted vouchers, and final invoices cannot be withdrawn through the API.
- On a new installation with no policy file, only the
server_statustool is provided. - You can use
LXO_MCP_KEPT_DOWNLOADSto control the number of cached downloads (default 100; 0 keeps all),LXO_MCP_DOWNLOAD_DIRto specify the download directory,LXO_MCP_UPLOAD_DIRto restrict the upload directory, andLXO_MCP_UPLOAD_URLSto restrict allowed URL prefixes. - The API key is stored only in
.env, will not be logged or returned.
Use cases
Suitable for small business users who need to query Lexware Office accounting data in natural language, especially read-type questions (unpaid items, customer orders, receipt attribution, etc.). Write operations are suitable for scenarios where contacts, vouchers, invoices need to be created or receipts need to be uploaded explicitly.
Limitations
- Unofficial project, not affiliated with Lexware; the API may change, rate-limit, or block at any time.
- Write operations create real and legally relevant records; vouchers cannot be deleted via the API, and final invoices cannot be withdrawn.
- Data may be incomplete or outdated, does not constitute tax, accounting, or legal advice, and must not be used for filing, auditing, or bookkeeping obligations.
- Provided "as is", without warranty; commercial use requires independently reviewing the Lexware API terms and retention and documentation obligations.
- Upload URLs must be explicitly allowed, otherwise they are not fetched; redirects are not followed, timeout is 30 seconds, files are truncated at 5 MiB.
- The download directory must not be the same as the directory containing the settings file.
- Specific fees, prices, platform support, etc. are not provided in the materials.