Please report security issues privately. Open a GitHub security advisory on this repository, or email the maintainers. Do not open a public issue for a vulnerability. We aim to acknowledge reports within a few business days.
This server brokers access to real accounting data. When you self-host it:
- Protect
/mcp. Always set a strongMCP_AUTH_TOKEN(e.g.openssl rand -hex 32). The server refuses to start without one unless you explicitly setMCP_ALLOW_UNAUTHENTICATED=true— only ever do that for trusted local testing. - Treat
LEXWARE_API_KEYlike banking credentials. Store it in a secret manager (e.g. Google Secret Manager), never in the image or in version control. - Use the least capability you need. Leave
LEXWARE_ENABLE_FINALIZE=falseunless you intend to let the agent issue legally binding invoices; considerLEXWARE_READ_ONLY=truefor read-only deployments. - Keep logs clean. The server never logs secrets or request/response bodies
unless you opt into
LEXWARE_DEBUG_LOGGING=true. - Serve over HTTPS. Terminate TLS in front of the server (Cloud Run does this for you).