
jannikwempe/mcp-lexware-office 是从 https://github.com/jannikwempe/mcp-lexware-office. 导入的 MCP 服务器候选服务器。
概览
jannikwempe/mcp-lexware-office 是从 https://github.com/jannikwempe/mcp-lexware-office. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
Lexware Office(前称 Lexoffice)的 MCP 服务器。它允许支持 MCP 的助手通过 Lexware Office 公共 API 查询和管理联系人、销售文件、凭证、文件、付款、webhook 以及参考数据。
服务器使用 代码模式:它不再为每个 API 端点提供一个 MCP 工具,而是暴露两个工具——search 用于探索策划的 Lexware API 目录,execute 用于运行受限、沙箱化的 API 工作流。这使工具表面较小,同时涵盖整个 API,包括分页、聚合和多步报告,在一次调用中完成。
从 1.x 升级?遗留的每端点工具服务器在 2.0.0 中被移除了。参见 docs/guide.md#migrating-from-1x。
使用
contentPath上传?现在他们需要LEXWARE_OFFICE_UPLOAD_DIRS。参见 docs/guide.md#migrating-contentpath-requires-lexware_office_upload_dirs。
特色
- 广泛的Lexware Office API覆盖,适用于读写工作流程
- 销售文件:发票、报价单、订单确认、信用凭证、交货单、滞留通知和首付款发票
- 联系人管理:创建、读取并更新客户和供应商
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Lexware Office MCP Server
An MCP server for Lexware Office (formerly Lexoffice). It lets MCP-capable assistants query and manage contacts, sales documents, vouchers, files, payments, webhooks, and reference data through the Lexware Office public API.
The server uses Code Mode: instead of one MCP tool per API endpoint, it exposes two tools — search to explore a curated Lexware API catalog and execute to run constrained, sandboxed API workflows. This keeps the tool surface small while covering the whole API, including pagination, aggregation, and multi-step reporting in a single call.
Upgrading from 1.x? The legacy tool-per-endpoint server was removed in 2.0.0. See docs/guide.md#migrating-from-1x.
Using
contentPathuploads? They now requireLEXWARE_OFFICE_UPLOAD_DIRS. See docs/guide.md#migrating-contentpath-requires-lexware_office_upload_dirs.
Features
- Broad Lexware Office API coverage for read and write workflows
- Sales documents: invoices, quotations, order confirmations, credit notes, delivery notes, dunning notices, and down-payment invoices
- Contact management: create, read, and update customers and vendors
- Bookkeeping: vouchers, posting categories, payments, and file uploads
- Reference data: profile, countries, print layouts, payment conditions, recurring templates
- Webhooks: create, list, inspect, and delete event subscriptions
- Read-only by default: writes require explicit opt-in via environment variable
- Workflow prompts and skills: receipt uploads, revenue and profit reports, and invoices as MCP prompts and MCP Skills generated from the catalog
- Dry runs: preview the exact writes a workflow would send, including upload hashes, without sending them
How it works
The server exposes two MCP tools:
search— runs a sandboxed JavaScript async arrow function against a curated OpenAPI-lite Lexware catalog, withfind/describehelpers for a ranked, compact lookup.execute— runs a sandboxed JavaScript async arrow function with thelexwareSDK:lexware.requestfor relative/v1/...Lexware API calls, plus helpers for pagination, money, voucher updates, uploads and waiting (lexware.sleep).
Both tools declare MCP annotations (search is read-only; execute is marked destructive only when writes are enabled) and return structuredContent alongside the JSON text block. Built on the MCP TypeScript SDK v2 (protocol revision 2026-07-28 and 2025-era clients). See docs/guide.md.
Example execute call:
async () => {
const response = await lexware.request({
method: 'GET',
path: '/v1/contacts',
query: { name: 'Muster', page: 0, size: 10 }
});
return response.data;
}
安装
npx -y --package=github:JannikWempe/mcp-lexware-office#semver:^4 lexware-office配置
{
"mcpServers": {
"lexware-office": {
"command": "npx",
"args": ["-y", "--package=github:JannikWempe/mcp-lexware-office#semver:^4", "lexware-office"],
"env": {
"LEXWARE_OFFICE_API_KEY": "YOUR_API_KEY_HERE",
"LEXWARE_OFFICE_READ_ONLY": "true"
}
}
}
}