Aquamatrix SIMAR MCP Server
An async Model Context Protocol server exposing the read-only billing features of the Aquamatrix SIMAR Python SDK. Unofficial and not affiliated with SIMAR or Aquamatrix.
Tools
get_invoices: fetch one page of invoice history with optional date filtering.get_pending_invoices: list invoices the SDK recognizes as unpaid.get_billing_summary: return the portal's invoice-to-pay and failed-invoice counts.
All tools are read-only. Invoice amounts are returned as decimal strings; dates use ISO YYYY-MM-DD strings. Credentials are supplied only through the server process environment, never through tool calls.
Requirements and installation
- Python 3.14 or newer.
- A SIMAR portal account.
python -m pip install aquamatrix-simar-mcp
Set SIMAR_NIF and SIMAR_PASSWORD in the MCP server process environment. Optionally set SIMAR_BASE_URL when using a compatible portal host.
Docker Compose
The Compose example runs Streamable HTTP inside a container and publishes it only on host loopback. Set credentials in the process environment or an ignored .env file; do not commit secrets.
export SIMAR_NIF='your-nif'
export SIMAR_PASSWORD='your-password'
docker compose up --build -d
The MCP endpoint is http://127.0.0.1:8000/mcp. Set MCP_PORT to change the port. The container opts into 0.0.0.0 only within its network namespace; Docker's host-side port binding remains 127.0.0.1. See the container guide before changing the network exposure.
Run
For local MCP hosts, use stdio:
aquamatrix-simar-mcp
For a local HTTP client, use current Streamable HTTP:
MCP_TRANSPORT=streamable-http aquamatrix-simar-mcp
The HTTP server binds to 127.0.0.1:8000 by default. It has no HTTP authentication; do not expose it directly to an untrusted network. SSE is intentionally not provided because Streamable HTTP is the current standard transport.
Configuration:
| Variable | Default | Description |
|---|---|---|
SIMAR_NIF |
Required | SIMAR account NIF |
SIMAR_PASSWORD |
Required | SIMAR account password |
SIMAR_BASE_URL |
https://www.aquamatrix.pt |
Portal base URL |
MCP_TRANSPORT |
stdio |
stdio or streamable-http |
MCP_HOST |
127.0.0.1 |
HTTP bind address; loopback only |
MCP_ALLOW_NON_LOOPBACK |
false |
Explicit opt-in to a non-loopback bind, intended for container networking |
MCP_PORT |
8000 |
HTTP port |
Development
python -m pip install -e '.[dev]'
pytest
ruff check .
mypy src
See PRD.md, ARCH.md, and AGENTS.md for scope, design, and contributor requirements.
Documentation
The documentation site includes installation, Docker Compose, security, and publishing guidance. GitHub Pages is built and deployed by GitHub Actions.
Author and license
Copyright (c) 2026 Oldemar Jesus oldemego@gmail.com. MIT licensed; see LICENSE.
Metadata
Release files for aquamatrix-simar-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aquamatrix_simar_mcp-0.1.0.tar.gz | 613.3 kB | With provenance | Details for aquamatrix_simar_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aquamatrix_simar_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aquamatrix_simar_mcp-0.1.0-py3-none-any.whl |
Total release size: 621.2 kB
Release files / aquamatrix_simar_mcp-0.1.0.tar.gz
| Download URL | aquamatrix_simar_mcp-0.1.0.tar.gz |
|---|---|
| Size | 613.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf403885a79696bf7977f89ffdd5414e5acb168e55645c641308b8494dfa9430
|
|
BLAKE2b-256 checksum How to use checksums |
6db0dd10cfa0f929a2e9d55c8ffb74d72c2311fdcfe32c1d2aa81a0089fa0044
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / aquamatrix_simar_mcp-0.1.0-py3-none-any.whl
| Download URL | aquamatrix_simar_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44373a7e2697aa3f2139add638f142e2e39c1e29cb906864e78887be1518a5ef
|
|
BLAKE2b-256 checksum How to use checksums |
46b5fe46de4fb0a64529e0d71bfbe880746a664f76bbe24b96d749aa06d9b8df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for aquamatrix-simar-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aquamatrix_simar_mcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.