# hilan-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/udah1/hilan-mcp  
**GitHub Stars:** 6  
**npm Downloads (last month):** 570  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hilan-mcp

## Description
Pull Hilan (Hilanet / חילן, חילנט) payslips and Form 106 into any AI assistant.

## Tools
Capabilities this server exposes over MCP:

- **dismissUpdateNotice** — Call this after the user declines an update offered via an "_updateNotice" field on a previous tool response, passing that same version string, so hilan-mcp stops mentioning that specific version. It will still notify about a newer version later.
- **listTenants** — List configured Hilan tenants (no secrets returned)
- **syncPayslips** — Log into a Hilan tenant (using previously ingested credentials) and sync recent payslips (structured Bruto/Neto/parts + PDF)
- **downloadCombinedPayslipsPdf** — Downloads ONE PDF covering every payslip in a date range (instead of one file per month) — handy for printing/sharing a multi-year span at once. Automatically splits into multiple files for very long ranges (Hilan's combined-PDF endpoint has a practical ceiling of roughly 12-15 years per file due to a URL-length limit on their end).
- **getPersonalDetails** — Logs in and fetches personal details (name, national ID, birthdate, address, phone, email, work start date, job type). This is a live lookup, not stored in the local database.
- **resyncPayslipMonth** — Re-fetch a single specific month (structured data, and by default the PDF too), overwriting whatever is already stored for it. Use this to retry one bad/truncated PDF, or to quickly check one month's numbers, instead of re-running syncPayslips over the whole history.
- **syncForm106** — Log into a Hilan tenant and download Form 106 (annual tax summary) for a given year, or the default year
- **getSalaryTrends** — Computes salary growth trends from locally-synced payslips (no live login needed): yearly average Bruto/Neto, year-over-year % change between adjacent years, CAGR between the first and last full (12-month) calendar year, overall growth (first vs. last synced month), and notable jumps (>=10% YoY change in Bruto). Prefer this over raw `query` for "how has my salary grown" style questions — it also groups/sorts by actual calendar year, which plain `period` text sorting gets wrong across years (e.g. "01_2011" sorts before "02_2010").
- **listTables** — List queryable tables (payslips, form106 — credentials/sessions are never exposed here)
- **describeTable** — Get columns and indexes for a table (payslips or form106 only)
- **query** — Execute a SELECT-only SQL query against payslips/form106 (allowlisted; credentials/sessions/tenants are never reachable)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hilan-mcp": {
    "command": "npx",
    "args": ["-y","hilan-mcp"],
    "env": {
      "COMPANY_URL": "",
      "COMPANY_TENANT": "",
      "COMPANY_CODE": "",
      "HILAN_DB_KEY": "",
      "NODE_EXTRA_CA_CERTS": ""
    }
  }
}
```

**Requires environment variables:** `COMPANY_URL`, `COMPANY_TENANT`, `COMPANY_CODE`, `HILAN_DB_KEY`, `NODE_EXTRA_CA_CERTS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What hilan-mcp MCP server does

The hilan-mcp MCP server retrieves payroll information from Hilan, also known as Hilanet or חילן/חילנט, for configured employer tenants. It can collect structured payslip fields and their PDFs, download annual Form 106 PDFs, and produce one combined PDF for a selected month range. Data is kept locally in an encrypted SQLite database so later analysis can use synchronized records rather than contacting Hilan for every question.

The server supports multiple tenants. During credential setup, it inspects the selected tenant's login form instead of assuming that every employer uses the same fields. A tenant can be identified by a subdomain, a full company URL, or a numeric organization code.

## How it works

Because Hilan does not provide an official API, the server launches a real headless Chromium browser through Playwright. After login, it reuses the authenticated browser context to call Hilan's internal `.asmx` JSON endpoints and retrieve PDF files. This preserves the cookies and headers established by the normal page load.

The local database uses SQLCipher-backed SQLite. Its encryption key is not written to disk in plaintext. The key can be stored in the operating system credential store, including macOS Keychain, Windows DPAPI, or Linux Secret Service, or supplied through `HILAN_DB_KEY`.

## Setup and configuration

Run setup in your own terminal rather than entering Hilan credentials into an assistant conversation:

```bash
npx hilan-mcp setup --tenant <subdomain-or-organization-code>
```

The setup flow installs the required Chromium browser, detects the tenant's login fields, prompts for credentials, and initializes the database encryption key. `npx hilan-mcp setup-key` can store that key in the operating system credential store for unattended server startup.

With no command-line arguments, the package starts an MCP server over stdio. A client can launch it with `npx -y hilan-mcp`. `COMPANY_URL`, `COMPANY_TENANT`, or `COMPANY_CODE` can provide a default tenant, in that priority order. `NODE_EXTRA_CA_CERTS` is available for networks using a TLS-intercepting corporate proxy.

## Tools and capabilities

- `listTenants` shows configured tenants without exposing secrets.
- `syncPayslips` retrieves structured data and PDFs for the last requested number of months.
- `resyncPayslipMonth` refreshes one month and replaces its stored data.
- `syncForm106` downloads a Form 106 PDF for a specified year.
- `downloadCombinedPayslipsPdf` creates a PDF covering a month range.
- `getSalaryTrends` calculates annual averages, year-over-year percentages, CAGR, and notable raises locally.
- `listTables` describes the local queryable schema.
- `query` runs read-only SQL against stored payslip and Form 106 data.
- `getPersonalDetails` performs a live lookup without persisting the result.
- `dismissUpdateNotice` suppresses a particular version's update notice.
- `debugCallAsmx` provides raw endpoint exploration and is disabled by default.

## Limitations and notes

The server depends on Hilan's web login flow and internal endpoints, so changes to that service may affect retrieval. Questions about a month can be answered locally only after that month has been synchronized. The database key must be available through the credential store, `HILAN_DB_KEY`, or an interactive fallback; the latter requires a human response and is not suitable for normal unattended use. Native dependency installation may require allowing the `better-sqlite3-multiple-ciphers` install script on npm 12 or newer.

_Full upstream README: https://allmcps.com/mcp/hilan-mcp/readme_

