SnelStart Web MCP
English · Nederlands
A local stdio MCP server for SnelStart Web. It uses the Web API, refreshes its sign-in and opens the selected administration before requesting accounting data. This is an unofficial integration. SnelStart documents its partner API separately. SnelStart API integration
Install with a coding assistant
Copy this prompt into Codex, Claude Code, or another assistant that can run local shell commands.
Install the SnelStart Web MCP on this machine from https://github.com/Martijn-minus/snelstart-web-mcp.
On macOS or Linux, download and run the install.sh script from the repository root.
Check that Google Chrome is available for browser sign-in.
Find the installed snelstart-mcp executable with uv tool dir --bin if it is outside PATH.
Run snelstart-mcp login --method browser and let me complete sign-in in Chrome.
Register the MCP with this client using snelstart-mcp install <client> --apply. Ask me
which client to use if you cannot identify it. If I requested the bundled skills,
add --with-skills for Codex or Claude Code. If I requested hooks for Codex, add
--with-hooks. Then run snelstart-mcp doctor and tell
me which administration is selected, what write access it has, and whether an
update is available. Keep credentials private and leave write permissions and
accounting records untouched. Tell me if the MCP client needs to reconnect.
Install on macOS or Linux
Paste this into Terminal. You can also download install.sh and run bash install.sh.
curl -fsSLo install-snelstart-mcp.sh https://raw.githubusercontent.com/Martijn-minus/snelstart-web-mcp/main/install.sh && bash install-snelstart-mcp.sh
The script checks for Python 3.11 or newer, including Homebrew and the Python supplied by macOS developer tools. It installs uv if needed and uses a user-local Python 3.13 if it can't find a compatible interpreter. It installs everything in your user account. Open a new terminal if the script updates your PATH. If you already have uv, you can install directly with uv tool install 'snelstart-web-mcp[browser]'.
Run snelstart-mcp login --method browser, then snelstart-mcp doctor to check access. Use snelstart-mcp install codex --apply to register with Codex, or see client registration for other clients. Run uv tool update-shell if the executable directory is missing from PATH.
For GitHub main builds, use uv tool install 'snelstart-web-mcp[browser] @ git+https://github.com/Martijn-minus/snelstart-web-mcp.git'.
Optional bookkeeping skills
snelstart-reconcileguides invoice, attachment, and payment checks against bank and processor evidence.snelstart-year-endguides ledger exports, opening and closing balance checks, and VAT comparisons.
To install the package and skills together, pass --with-skills codex or --with-skills claude-code to the downloaded Bash installer. To register the MCP and install the skills in one command, use the CLI.
snelstart-mcp install codex --with-skills --apply
If the server is already registered, use snelstart-mcp install codex --skills-only --apply. Leave off --apply to preview the files. The installer preserves existing skills when their contents differ. Begin a fresh client session to load the new skills. Codex skill locations · Claude Code skills
Optional Codex hooks
The hooks add a reminder to verify the administration and the requested change before a bookkeeping write, followed by a read-back reminder. They also surface an available package update after snelstart_status or snelstart_check_update reports one. The MCP profile's write permissions govern bookkeeping access.
snelstart-mcp install codex --hooks-only
snelstart-mcp install codex --hooks-only --apply
Use --with-hooks when registering the server. The Bash installer also accepts --with-hooks, with or without --with-skills codex. The installer merges the definitions into $CODEX_HOME/hooks.json (default ~/.codex/hooks.json). Open /hooks in the Codex CLI to review and trust the definitions. You can also disable them there. Codex hook documentation
Windows
The server uses Unix file locking, so native Windows and Git Bash are unsupported. On Windows, run the Linux installer and MCP server inside WSL. Browser OAuth needs Google Chrome running inside WSL. If that isn't available, use the token-only HAR import. Microsoft WSL setup
Check for updates
Releases use YYYY.M.D calendar versions. snelstart-mcp --version also shows the date in full.
snelstart-mcp update --check
snelstart-mcp update
If you installed a version before the updater existed, run uv tool upgrade snelstart-web-mcp once. snelstart-mcp update uses the active uv tool installation and keeps its source and extras. Reconnect the MCP client after an upgrade. From a source checkout, update the checkout and run uv sync --locked.
doctor and snelstart_status show whether an update is available. For PyPI installs, the check compares package versions. For GitHub installs tracking main, it compares the installed public commit with the current branch. The MCP caches successful checks for one hour and asks the client to report an available update. Call snelstart_check_update to check immediately. Checks use public package metadata and send no SnelStart account data.
Quick start from a source checkout
-
With
uvinstalled on macOS or Linux, open the repository root and install the locked dependencies.uv sync --frozen uv run --frozen snelstart-mcp status
-
Follow Sign in if
statussays sign-in is required. Rundoctorto verify access and see the selected administration, write access, token expiry, and available administration UUIDs.uv run --frozen snelstart-mcp doctor
-
Register the server in Codex and start a fresh Codex session. For another client, use its installer target.
uv run --frozen snelstart-mcp install codex --apply
-
In your MCP client, call
snelstart_statusand check the selected administration. If necessary, find the intended UUID withsnelstart_list_administrationsand select it withsnelstart_select_administration. -
Try a read with the prompt “Show the balance sheet and profit and loss through 2025-12-31 for the selected SnelStart administration.” This uses
snelstart_balance_sheet. See the tool reference for other workflows and AGENTS.md for instructions aimed at coding agents.
Commands such as doctor, status, login, writes and install show a readable summary in an interactive terminal. Piped or redirected output defaults to JSON. Use doctor --json for explicit JSON or doctor --text to keep the summary when redirecting it to a file. The same flags apply to the other commands that return results.
Client registration
Preview or apply a registration from the same directory.
uv run --frozen snelstart-mcp install all
uv run --frozen snelstart-mcp install codex claude-code antigravity --apply
| Target | Registration |
|---|---|
codex |
User registration via the codex CLI |
claude-code |
User registration via the claude CLI |
claude-desktop |
Claude Desktop user configuration on macOS |
antigravity |
Antigravity App, IDE and CLI user configuration |
cursor |
Cursor global MCP configuration |
vscode |
VS Code user MCP configuration for the default profile |
gemini |
Gemini CLI user settings |
opencode |
Global OpenCode settings, with a schema selected from the installed CLI version |
windsurf |
Windsurf Cascade global MCP configuration |
zed |
Zed user settings |
stdio |
Generic mcpServers registration, including the MCP settings files used by Cline and Roo Code |
The installer uses the absolute path of the installed executable. Keep the virtual environment at that path or update the registration if you move the repository. Preview writes no client settings. With --apply, file-based registrations merge into plain JSON and preserve existing settings and servers. If an existing file uses JSON with comments, merge the preview snippet in the client's config editor. Use --client-config PATH for a different file location or editor profile. Use --config-dir PATH before install to start the MCP with a separate accounting profile.
For other clients, install stdio prints a reusable snippet. Add --client-config PATH --apply to merge it into a local file that uses an mcpServers map.
Client configuration holds the executable and arguments. Sign-in remains in the SnelStart profile. Restart or reload the MCP connection in the client after registration. The local server supports macOS and Linux.
Sign in
The MCP stores its local configuration and tokens under ~/.config/snelstart-mcp. Its directory is private (0700) and profile files are restricted to the current user (0600). A valid profile refreshes access tokens automatically. Set SNELSTART_CONFIG_DIR or pass --config-dir PATH before the subcommand to use another profile.
Browser OAuth
With Google Chrome installed, run the following command from the MCP directory.
uv run --frozen --extra browser snelstart-mcp login --method browser
Complete sign-in in the separate Chrome window that opens. The MCP validates the OAuth state and exchanges the authorization code using PKCE. It stores the resulting tokens in the selected local profile. Run uv run --frozen snelstart-mcp doctor to verify access. Existing credential profiles can use uv run --frozen snelstart-mcp login --method credentials.
Token-only HAR recovery
Follow these steps if the interactive OAuth window is unavailable.
-
Sign in to the official SnelStart Web page in Chrome with network recording off. Complete any interactive sign-in prompts there.
-
Open DevTools → Network after sign-in, clear the log and enable Preserve log. Open the intended administration and look for a successful
/oauth/tokenrefresh response. Export the capture outside Git once the refresh is visible. -
Import the HAR without
--save-passwordand verify the profile. HAR response bodies can contain tokens even when the export is sanitized. Keep the file private and remove it when you are done.uv run --frozen snelstart-mcp import-har /path/to/capture.har uv run --frozen snelstart-mcp doctor
The legacy setup and import-har --save-password commands store a plaintext password in the profile. Use browser OAuth or the token-only workflow for new profiles in this repository.
Language and input
The MCP interface uses English tool names, argument names, option values, help and errors. It works the same way in a Dutch or English conversation. Set dates in ISO YYYY-MM-DD format. The API routes and raw data fields owned by SnelStart retain their original spelling. The user's language does not change a request or translate accounting data.
Tools
Administration and access
| Tool | What it does |
|---|---|
snelstart_status |
Shows the selected administration, sign-in and refresh status, effective write settings, and update availability. |
snelstart_check_update |
Checks the installed package's public source for a newer version. |
snelstart_list_administrations |
Lists the administrations accessible to the signed-in account. |
snelstart_select_administration |
Opens an administration by UUID and saves that selection locally. |
snelstart_list_operations |
Searches the API catalog and returns exact operation names and parameters. Set read_only: false to include write operations. |
snelstart_read |
Runs an allowlisted read. Pass query values as parameters and search-body fields as filters. |
snelstart_write |
Sends a permitted catalog mutation using operation, payload and optional query parameters. |
snelstart_audit_log |
Lists recent calls for the selected administration with their outcome and elapsed time. |
The catalog records known Web API operations. Availability depends on the administration, the account's permissions and the SnelStart package.
Purchases, sales and payments
| Tool | What it does |
|---|---|
snelstart_search_purchases |
Lists purchases for an inclusive date range. Set review_only: true to find entries SnelStart has flagged for review. |
snelstart_get_entry |
Reads details for a purchase, general journal entry, opening balance entry or bank entry by UUID. |
snelstart_purchase_payments |
Reads payments and settlements recorded against a purchase. |
snelstart_purchase_evidence |
Reads purchase records, recorded settlements, and optional attachment metadata for up to 20 purchase UUIDs. |
snelstart_list_attachments |
Lists files linked to a purchase, bank entry or journal entry and returns their download identifiers. |
snelstart_download_document |
Downloads an attachment by UUID or a sales invoice PDF by invoice-number ID. Returns a private local path and checksum. |
snelstart_upload_purchase_pdf |
Submits a local PDF as a new purchase for SnelStart's recognition and review workflow. Returns a processing ID. |
snelstart_purchase_upload_status |
Reads the processing status for that ID. |
snelstart_search_sales |
Searches sales invoices by customer, invoice number or status. |
snelstart_sales_booking_details |
Reads sales booking details for up to 20 booking UUIDs. |
snelstart_search_relations |
Searches customers or suppliers by name or number. |
snelstart_bank_journals |
Lists bank and cash journals, including their ledger UUIDs. |
snelstart_bank_entries |
Lists a journal's entries in an inclusive date range. Accepts a search term and a marked-only filter. |
snelstart_find_payment_matches |
Searches for candidate invoices for an incoming or outgoing payment. |
For an invoice review, search the period, open each purchase using kind: "purchase", and read its attached invoice and recorded settlements. Compare the booking to the document and check the corresponding bank entry if payment evidence is needed. For lists with skip and take, advance through all pages before reporting a period total.
Example purchase filter for entries flagged during November 2026.
{"start_date":"2026-11-01","through_date":"2026-11-30","review_only":true,"take":50}
Download a purchase PDF
- Find the invoice with
snelstart_search_purchasesusing a date range and, if available, the invoice number asquery. - Pass the purchase entry UUID as
entry_idtosnelstart_list_attachmentswithkind: "purchase". - Pass the PDF's
attachmentIdentifierasattachment_idtosnelstart_download_document. The tool returns the path to the private local file.
Submit a new purchase PDF
- Check that the selected administration is the one intended for the upload. For scoped write access, grant both upload operations listed below.
- Call
snelstart_upload_purchase_pdfwith the selected administration UUID asadministration_idand an absolute local PDF path asfile_path. The tool accepts one PDF of up to 25 MiB and returns aninstance_id. - Call
snelstart_purchase_upload_statuswith that ID and the same administration UUID. Once processing completes, review the recognized invoice under Inkopen → Te controleren. SnelStart purchase recognition
With scoped permissions, grant both operations for the same administration.
uv run snelstart-mcp writes grant ADMINISTRATION_UUID 'GET /Attachments/GetAttachmentUploadUriNew'
uv run snelstart-mcp writes grant ADMINISTRATION_UUID 'POST /Purchases/CreateInkoopVoorBijlage'
The profile keeps a local receipt keyed by administration and PDF checksum. Repeating a confirmed submission returns its existing processing ID. After an unconfirmed submission, check the purchase overview before attempting to send the document again.
Financial reports and tax
| Tool | What it does |
|---|---|
snelstart_chart_of_accounts |
Lists ledger accounts and their identifiers. |
snelstart_balance_sheet |
Reads the balance sheet, profit and loss, and reporting categories for a through_date. |
snelstart_financial_result |
Reads the financial result for start_date through through_date using the report called by the Tax Monitor. |
snelstart_ledger_entries |
Reads one page of postings for an account through a given date. |
snelstart_export_ledger_entries |
Reads and checks all pages for up to 20 account UUIDs, then exports the requested date range to a private JSONL file. Returns a path, SHA-256, and per-account counts. |
snelstart_vat_returns |
Lists existing VAT returns in their recorded states. |
snelstart_vat_return_details |
Reads the details of up to 20 VAT returns by public UUID. |
snelstart_supplemental_vat_years |
Lists years eligible for a supplemental VAT return. |
snelstart_year_end_review |
Reads open entries, open purchases, open sales or year-end bookings for a year, when available. |
For 2025 and November 2026 balances, call snelstart_balance_sheet separately with 2025-12-31 and 2026-11-30. For detailed VAT returns, start with snelstart_vat_returns and pass the public identifiers as return_ids to snelstart_vat_return_details.
For a multi-account review, pass ledger_ids, start_date, and through_date to snelstart_export_ledger_entries. Each line of the export contains ledger_id and the original entry. The export only includes entries within the inclusive date range. fetched_rows counts the rows the API reported through the closing date and exported_rows counts the rows within the requested period. A pagination or connection failure discards the incomplete export. Treat the file as private accounting data.
{"operation":"GET /BtwAangiftes/Get","parameters":{"id":123}}
ICP returns are available through snelstart_read with GET /IcpAangiftes/GetIcpAangiftes and numeric skip and top query parameters. The Tax Monitor's final reservation for income or corporate tax remains in SnelStart Web. Its financial-result input is available in the MCP. SnelStart Tax Monitor documentation
Archives
| Tool | What it does |
|---|---|
snelstart_create_year_archive |
Creates a local, checksummed archive of a year's supported data and any supplied official files. |
snelstart_list_archives |
Lists local archive names and paths. |
snelstart_verify_archive |
Validates the manifest, allowed archive members, sizes and SHA-256 checksums. |
snelstart_extract_archive |
Verifies and extracts an archive into a new private local folder. |
Write permissions
Bookkeeping writes are disabled by default. Run these commands from the MCP directory.
uv run snelstart-mcp writes list
uv run snelstart-mcp writes list --available
- Current permissions are shown by
writes list. It shows whether write access is global, scoped, or read-only, and lists scoped grants by administration UUID.writes list --jsonexposes the global switchallow_writesand thewrite_permissionsmap. In the MCP,snelstart_statusshows the global switch and the grants for the selected administration only. - Available operations are shown by
writes list --available. Use the exact entry, including its HTTP method, when making a grant. Catalog entries describe eligible operations. SnelStart still enforces the account's own permissions. - Storage is
~/.config/snelstart-mcp/config.jsonby default. The same fields live inconfig.jsonunder the directory selected withSNELSTART_CONFIG_DIRor--config-dir. Use the CLI to change the permissions for the same profile that your MCP client launches.
snelstart_list_administrations returns the administration UUID in the identifier field. The following commands grant and revoke one operation for that UUID and turn off all writes.
uv run snelstart-mcp writes grant ADMINISTRATION_UUID 'POST /MemoriaalBoekingen/Create'
uv run snelstart-mcp writes revoke ADMINISTRATION_UUID 'POST /MemoriaalBoekingen/Create'
uv run snelstart-mcp writes off
A grant stays active until revoked. It applies to every record covered by the operation in that administration, across MCP clients sharing the profile. writes off disables global writing and clears all grants. The legacy writes on switch enables all eligible operations across the profile, subject to the SnelStart account's permissions. The server sends a failed write only once. Client-side confirmations are managed separately.
Year archives
Call snelstart_create_year_archive with year and through_date. Supply official_zip_path to include the original audit file and attachments downloaded from SnelStart Web. Separate source files can be supplied as auditfile_path, attachments_zip_path and bacpac_path. Set live_export: false to package files without reading the administration.
The MCP export records available balance, ledger, purchase, sales, bank, general journal and VAT datasets. It checks pagination and invoice date ranges, and the archive manifest records the scope and SHA-256 of each member. A local export is a point-in-time view assembled from multiple calls. The official XAF remains the source for the journal export.
Use the returned archive filename with snelstart_verify_archive or snelstart_extract_archive. Archives are stored under ~/.config/snelstart-mcp/backups. The reader also supports earlier archive files. Local extraction does not change SnelStart. A native .bacpac backup is needed to restore an administration in SnelStart 12. See official Web exports and native backup and recovery.
Audit log and rollback design
The server records MCP call timestamps, tool names, outcomes and durations in audit/<administration-uuid>.sqlite3 inside the active profile. Calls made before choosing an administration go to audit/profile.sqlite3. A call stays in the database for the administration selected at its start, including its outcome if the selection changes. Each database uses file permissions 0600. Inputs, response bodies, credentials and tokens are omitted. A call without a recorded result appears as pending.
When opening a scope, the MCP copies matching events from an older shared audit.sqlite3, including outcomes written after a switch. The original file stays in place and later reads can pick up events still written there by an older process.
doctor shows the selected scope's database path, outcome counts and latest call. Use audit to inspect local history offline.
snelstart-mcp audit --limit 10
snelstart-mcp audit --administration ADMINISTRATION_UUID --json
snelstart-mcp audit --profile
The log covers MCP calls made through this profile. Verify accounting changes against the affected records in SnelStart.
A verified mutation log would add an entry-specific before state, an expected change, a durable intent, and a read-after-write check. A timeout after sending a write would remain unresolved until the record can be read back. A rollback would be a new, explicit operation with a check that the record has not changed in the meantime. This is a proposed design. Automatic rollback and financial mutations are not exercised by the tests.
Code and tests
The server registers separate groups for connection, bookkeeping and archive tools. The client owns administration context and API requests. Pydantic contracts live in src/snelstart_mcp/models/ and fixed string enums in src/snelstart_mcp/enums/. The MCP advertises flat tool arguments for client compatibility. Year collection and archive storage are separate modules.
uv run ruff check src tests
uv run ruff format --check src tests
uv run --frozen --extra browser basedpyright
uv run pytest --cov=snelstart_mcp --cov-branch --cov-report=term-missing tests
SNELSTART_RUN_LIVE=1 uv run pytest -q tests/test_live.py
The live test requires exactly one administration named mcp-test. It signs in using a separate temporary profile, stores test tokens only in that profile and opens only the test administration. It uses read routes and verifies that bookkeeping writes are blocked.
Pre-commit and distribution builds
From the repository root, install or run the hooks.
uv run --frozen --extra browser pre-commit install
uv run --frozen --extra browser pre-commit run --all-files
The hooks run BasedPyright on the package and Ruff linting and formatting on the package and tests. They also check JSON, YAML and TOML, trailing whitespace, final newlines, merge markers, large files and private keys.
The SnelStart MCP GitHub Actions workflow runs the hooks and offline tests on Python 3.11 and 3.13. It builds a wheel and source distribution, validates the metadata with Twine, and saves both files in the run's snelstart-mcp-distributions artifact. From the repository root, run uv build --no-sources to build the same formats locally. PyPI publishing documentation
Publishing a calendar release
Set the version in pyproject.toml to the release date as YYYY.M.D and update uv.lock with uv lock. Use .post1, .post2, and so on for additional releases on the same date. Tag the reviewed commit as v<VERSION>. The PyPI workflow builds the tag, checks that its name matches the version, and publishes via the repository's pypi environment.
gh workflow run workflow.yml --ref "v$(uv run --frozen python -c 'from importlib.metadata import version; print(version("snelstart-web-mcp"))')"
The PyPI Trusted Publisher must match this repository and workflow.yml. PyPI Trusted Publishing
Metadata
Release files for snelstart-web-mcp 2026.11.24.post2
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 |
|---|---|---|---|---|
| snelstart_web_mcp-2026.11.24.post2.tar.gz | 94.0 kB | With provenance | Details for snelstart_web_mcp-2026.11.24.post2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snelstart_web_mcp-2026.11.24.post2-py3-none-any.whl | Python 3 | none | any | Details for snelstart_web_mcp-2026.11.24.post2-py3-none-any.whl |
Total release size: 173.5 kB
Release files / snelstart_web_mcp-2026.11.24.post2.tar.gz
| Download URL | snelstart_web_mcp-2026.11.24.post2.tar.gz |
|---|---|
| Size | 94.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18f8c830d70d573a0e4e221b25b3eb325b19b67f93b6c156c5a128c42b0e66ce
|
|
BLAKE2b-256 checksum How to use checksums |
fd69b78c88d290321b2c895dc6098ad762bbf72e946754cac674b9929ae4f07e
|
| 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 Nov 24, 2026.
Transparency logRelease files / snelstart_web_mcp-2026.11.24.post2-py3-none-any.whl
| Download URL | snelstart_web_mcp-2026.11.24.post2-py3-none-any.whl |
|---|---|
| Size | 79.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aae256b7e6ab3bea2a15d77f122eb27bb199931802fc1fe01a023e2b51cc246c
|
|
BLAKE2b-256 checksum How to use checksums |
8da072f8106918b7239faec6ebd5917cadd117ce7aaa4aee62af22cfd885b437
|
| 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 Nov 24, 2026.
Transparency logSecurity for snelstart-web-mcp 2026.11.24.post2
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
Both files in this release have been uploaded with provenance metadata.
Attestation for snelstart_web_mcp-2026.11.24.post2.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 Nov 24, 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.