Lexware

io.github.lazyants由 GitHub 账号 lazyants 发布v5.4.1更新于 Nov 7, 2026

MCP server for the Lexware Office API — invoices, contacts, articles, and vouchers.

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向 Lexware Office API 的本地 MCP 服务器,让助手创建和读取发票、报价、联系人、商品及记账凭证。

可以做什么
  • 创建和读取发票、贷项通知、报价、订单确认、送货单、催款单等销售单据
  • 管理联系人与商品
  • 记录记账凭证和付款,并跨凭证类型搜索
  • 上传和下载文件,管理 webhook 订阅
  • 读取关于 API 约定、文本格式规则和 webhook 指南的参考资源
适用场景
适合让助手起草或查询 Lexware Office 中的发票、报价和联系人,或处理记账凭证与付款,而无需切换到 Lexware 网页端。拆分入口可只加载某一领域,以缩小工具列表。
运行要求
需要 Node.js 20 或更高版本,通过 npx 在本地运行。需要 Lexware Office API 令牌,建议存放在操作系统钥匙串(服务 lexware-mcp,账户 api-token),或通过 LEXWARE_API_TOKEN 环境变量提供。需要访问 Lexware Office API 的网络连接。
安装前请注意
创建、更新、删除、上传和 pursue 类工具会改动 Lexware 账户中的真实业务数据,pursue 工具会生成后续单据。设置 LEXWARE_READ_ONLY=true 可阻止所有改动数据的工具。API 令牌不要提交到版本库,优先使用钥匙串。工具注解只是提示,实际依赖令牌权限和客户端审批提示。这是非官方社区项目,与 Lexware 无关,建议先在非关键账户测试。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Lexware,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

lexware-mcp-server

[Listed on AgentHub: lexware] [Tests]

MCP server for the Lexware Office API. Manage invoices, contacts, articles, vouchers, and more through the Model Context Protocol.

Unofficial community project — not affiliated with Lexware GmbH or Haufe Group. See the Disclaimer.

Requirements

Quick start

1. Store the token in the OS keyring

The server reads the token from the OS keyring first (service lexware-mcp, account api-token) and falls back to the LEXWARE_API_TOKEN environment variable. The keyring is recommended: your MCP config then holds no credentials.

The commands below prompt for the token, so it never lands in your shell history or the process list.

macOS:

bash
security add-generic-password -s "lexware-mcp" -a "api-token" -w

Linux (needs a Secret Service / libsecret):

bash
secret-tool store --label="Lexware Office API" service lexware-mcp username api-token

For Windows, headless machines, and the environment-variable fallback, see the configuration guide.

2. Add the server to your MCP client

json
{  "mcpServers": {    "lexware": {      "command": "npx",      "args": ["-y", "@lazyants/lexware-mcp-server"]    }  }}

Put this in your client's MCP configuration, for example claude_desktop_config.json for Claude Desktop. In Claude Code, run:

bash
claude mcp add --scope user lexware -- npx -y @lazyants/lexware-mcp-server

npx downloads and runs the package; no separate install is needed. Restart the client, and the Lexware tools appear in its tool list.

Entry points

The package provides a full server and smaller split servers that each cover one area. Use a split server to reduce context size or to stay under your MCP client's tool limit.

CommandCovers
lexware-mcp-serverEverything below
lexware-mcp-salesInvoices, Credit Notes, Quotations, Order Confirmations, Delivery Notes, Down Payment Invoices, Dunnings, Voucherlist
lexware-mcp-contactsContacts, Articles
lexware-mcp-bookkeepingVouchers, Voucherlist, Payments
lexware-mcp-referenceCountries, Payment Conditions, Posting Categories, Profile, Print Layouts
lexware-mcp-systemEvent Subscriptions, Files, Recurring Templates

Run a split server with npx -y -p @lazyants/lexware-mcp-server lexware-mcp-sales. The configuration guide has client examples for split servers and for several Lexware accounts.

What the tools do

Tool names follow lexware_<action>_<resource>, for example lexware_create_invoice or lexware_list_voucherlist. They create and read sales vouchers such as invoices and quotations, manage contacts and articles, record bookkeeping vouchers, search across voucher types, upload and download files, and manage webhook subscriptions. Your MCP client's tool list, with each tool's description and input schema, is the authoritative inventory.

Every entry point also serves a read-only MCP resource, reference://lexware/api, with API conventions, text formatting rules, and webhook guidance.

The usage guide explains the API caveats: finalizing at creation, voucher search filters, voucher updates, file uploads and downloads, and webhooks.

Security

  • Use the OS keyring and never commit your API token to version control.
  • Create, update, delete, upload, and pursue tools change real business data in your Lexware account. A pursue tool creates a follow-up document.
  • Set LEXWARE_READ_ONLY=true to make the server refuse every tool that changes data. See Read-only mode.
  • Without read-only mode, two things stop unintended changes: the permissions of your Lexware API token, which Lexware enforces, and your MCP client's approval prompts. Tool annotations such as readOnlyHint are hints for the client, not checks.
  • Split servers offer fewer tools, but most of them still include tools that change data. For a conservative setup, see Limit what the server can change.
  • Requests that hit the rate limit (HTTP 429) are retried automatically with exponential backoff.

To report a vulnerability, see SECURITY.md.

Documentation

  • Configuration — keyring setup for macOS, Windows, and Linux; environment variables; Claude Code and Claude Desktop; split servers and multiple accounts; limiting what the server can change.
  • Usage notes — API behavior and caveats.
  • Releasing — maintainer release procedure.
  • Changelog

Releasing

Maintainers: follow the release guide. Never create a release with a bare gh release create; the guide's guarded tag sequence explains why and prevents republishing an old version.

Disclaimer

This is an unofficial, independent community project. It is not affiliated with, endorsed by, sponsored by, or supported by Lexware GmbH, Haufe Group, or any of their affiliates. For official Lexware support, contact Lexware directly — issues with this MCP server should be reported here, not to Lexware.

"Lexware" and "Lexware Office" are trademarks of their respective owners and are used in this project's name and documentation under nominative fair use, solely to identify the third-party API this client connects to.

Create, update, and delete operations modify real business data in your Lexware account. The authors provide this software "as-is" and accept no responsibility for unintended changes, data loss, or any other damages arising from its use. Test against a sandbox or non-critical account before running write operations against production data.

License

FSL-1.1-MIT — see LICENSE for the full terms.

来源:README.md,提交 9a214cf

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

5
  1. v5.4.1最新Nov 7, 2026
  2. v5.4.0Oct 26, 2026
  3. v5.3.2Oct 23, 2026
  4. v5.3.0Oct 3, 2026
  5. v5.2.0Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。