Download the PHP package jacomeit/lexware-php-mcp without Composer

On this page you can find all versions of the php package jacomeit/lexware-php-mcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lexware-php-mcp

lexware-php-mcp

Deutsch

CI PHP 8.4+

Unofficial. Not affiliated with Haufe Group. Lexware and lexoffice are trademarks of Haufe Group.

lexware-php-mcp is an unofficial, read-only Model Context Protocol server for Lexware Office (formerly lexoffice), written in PHP on top of the official PHP MCP SDK.

Ask Claude things like "Which invoices are overdue?" and get answers straight from your account.

No PHP needed: for Claude Desktop on macOS and Windows there is a one-click extension, see Quick start.

Why a PHP server?

The existing Lexware MCP servers are written in TypeScript or Python. This one is the PHP-native option, and that is the point: it is not a claim that PHP is technically better, but that PHP shops should not need a second runtime to give an AI assistant access to their bookkeeping.

Example questions

Status

v0.3.0, early but usable. See the changelog. Currently available tool:

Tool What it does
open_items Unpaid sales invoices (open and overdue), oldest due date first, with days overdue and totals per currency. Optional filters: overdueOnly, contact. Amounts are gross.

Planned: voucher search, voucher detail with net amounts, contact search, revenue per period. See ADR 0001.

Safety

Found a security problem? Please report it privately, see SECURITY.md.

Use of the Lexware API is governed by the Public API Lizenz- und Nutzungsbedingungen.

Quick start: Claude Desktop, no PHP needed

You need a Lexware Office public API key: https://app.lexware.de/addons/public-api. Nothing else has to be installed; the download contains everything, PHP included.

  1. Download the extension for your system from the latest release:
  2. Double-click the file. Claude Desktop opens and shows the extension. If double-clicking does not work, open Settings > Extensions > Advanced settings > Install Extension… in Claude Desktop and pick the file.
  3. Click Install and paste your API key when asked. Claude Desktop stores it in its secure storage; it does not end up in a configuration file. Claude Desktop shows a warning before installing because the extension is not signed. Signing costs money for a certificate, which this free project does without; the code is open for review on GitHub. Confirm with Install.
  4. Make sure the extension is switched on, then ask: "Which invoices are overdue?"

To update, download the new .mcpb and install it the same way.

The Windows extension is built and tested automatically (start-up and a TLS connection to the Lexware API), but the maintainer has not tried it on a Windows PC. Reports are welcome as an issue.

Standalone binary: Claude Code and other MCP clients

Every release also contains the server as a single executable file, again with PHP built in:

System File
macOS, Apple silicon lexware-php-mcp-macos-arm64
macOS, Intel lexware-php-mcp-macos-x86_64
Linux, x86_64 lexware-php-mcp-linux-x86_64
Linux, ARM64 lexware-php-mcp-linux-arm64
Windows, x86_64 lexware-php-mcp-windows-x86_64.exe

SHA256SUMS in the release lets you verify the download (shasum -a 256 -c SHA256SUMS --ignore-missing).

On macOS and Linux, make the file executable. The binaries are not signed, so on macOS also remove the download quarantine, otherwise Gatekeeper refuses to start the file:

Register it with Claude Code:

By default the entry applies to the current project only. Add --scope user to make it available everywhere. Check with claude mcp list, or run /mcp inside a session. The key is stored in plain text in Claude Code's configuration; keep it private.

Linux needs the usual CA certificates for HTTPS (package ca-certificates, installed on desktop systems anyway).

Installation from source (PHP developers)

If you already work with PHP, you can run the server from source instead.

Requirements:

To update later: git fetch --tags && git checkout <new-tag> && composer install --no-dev.

A lexware-php-mcp.phar is attached to every release as well; it runs with php lexware-php-mcp.phar.

Claude Desktop with a manual configuration

The extension above is the easier way. If you prefer to configure the server yourself, add one entry under mcpServers in claude_desktop_config.json:

The file usually contains other settings already. Do not paste a second { ... } block at the end: add the "lexware-php-mcp" entry inside the existing "mcpServers" object, or create "mcpServers" as a new top-level key if it is missing. Check the result with python3 -m json.tool claude_desktop_config.json before restarting Claude Desktop.

macOS: API key from the Keychain

Store the key once; the command prompts for it, so it never ends up in your shell history:

Entry for mcpServers (adjust both paths; which php shows yours). With a standalone binary, replace /opt/homebrew/bin/php /absolute/path/to/lexware-php-mcp/bin/lexware-php-mcp by the path of the binary:

Other systems: API key in the config

The key is then stored in plain text in that file; keep it private.

Quit Claude Desktop completely, start it again and ask: "Which invoices are overdue?" If the server does not show up, check the log (macOS: ~/Library/Logs/Claude/mcp-server-lexware-php-mcp.log).

Claude Code from source

Configuration

Variable Required Default
LEXWARE_API_KEY yes none
LEXWARE_API_BASE_URL no https://api.lexware.io

Development

Debug the server interactively with the MCP Inspector. The Inspector starts the server with a minimal environment, so pass the key with -e; a variable set in your shell does not reach it:

Tests never touch the real API; they use Symfony's MockHttpClient and MockClock.

Standalone builds

The workflow .github/workflows/release.yml builds the PHAR (Box, config box.json), the static binaries (static-php-cli: PHP plus the PHAR in one file) and the Claude Desktop extensions (build-tools/package-mcpb.sh, manifest in build-tools/mcpb/). It runs on pull requests that touch the build, and on a version tag it attaches everything to a draft release. Check any build with build-tools/smoke-test.sh <command>; with SMOKE_TEST_TLS=1 it also sends one request with an invalid key to the real API and expects HTTP 401. Keep version in build-tools/mcpb/manifest.json in line with ServerFactory::VERSION (a test checks it).

License

MIT, see LICENSE.


All versions of lexware-php-mcp with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
mcp/sdk Version ^0.8.1
symfony/clock Version ^7.4 || ^8.0
symfony/http-client Version ^7.4 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jacomeit/lexware-php-mcp contains the following files

Loading the files please wait ...