Skip to main content
Glama
Widełki Płacowe MCP

Widełki Płacowe MCP

by renatachmiel
README.md
[English](README.md) | [Polski](README.pl.md)

# Widełki Płacowe MCP

Ask your assistant about pay in Poland: look up a salary range, turn gross pay into take-home pay, or compare an employment contract with a B2B offer. The server uses the same calculations as [widelkiplacowe.pl](https://widelkiplacowe.pl/).

[![CI](https://github.com/renatachmiel/widelki-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/renatachmiel/widelki-mcp/actions/workflows/ci.yml) [![Code: MIT](https://img.shields.io/badge/code-MIT-blue)](LICENSE) [![Release](https://img.shields.io/github/v/release/renatachmiel/widelki-mcp)](https://github.com/renatachmiel/widelki-mcp/releases/latest)

## Quick start

[![Add to Cursor](https://img.shields.io/badge/Add_to-Cursor-183C30)](https://cursor.com/install-mcp?name=widelki-mcp&config=eyJ1cmwiOiJodHRwczovL21jcC53aWRlbGtpcGxhY293ZS5wbC9tY3AifQ%3D%3D) [![Install in VS Code](https://img.shields.io/badge/Install_in-VS_Code-176CA4)](https://vscode.dev/redirect/mcp/install?name=widelki-mcp&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.widelkiplacowe.pl%2Fmcp%22%7D)

Endpoint: `https://mcp.widelkiplacowe.pl/mcp` · Streamable HTTP · read-only · free, no account or API key.

| Client | How to connect |
| --- | --- |
| Cursor (manual) | Add `"widelki-mcp": {"url": "https://mcp.widelkiplacowe.pl/mcp"}` under `mcpServers` in `.cursor/mcp.json`. Enable the server in MCP settings. |
| VS Code (manual) | Run **MCP: Add Server** from the Command Palette, choose **HTTP**, paste the endpoint and name it `widelki-mcp`. |
| Claude Desktop | **Settings → Connectors → Add custom connector**. Name it `Widełki Płacowe`, paste the endpoint and connect. |
| Claude Code | Run `claude mcp add --transport http widelki-mcp https://mcp.widelkiplacowe.pl/mcp`. Check the connection with `/mcp`. |
| ChatGPT (web) | If your workspace allows custom MCP servers, open **Plugins → + → Add custom MCP server**, enter the endpoint and choose **No authentication**. Install the plugin and select it with `@` in a chat. |

Try: “Use Widełki Płacowe to calculate take-home pay on PLN 8,000 gross a month in Poland in 2026. Show January and the annual monthly average.” Expand the tool call to see the figures and their source.

## Four tools

In v0.2.0, tool names, parameters, and server-generated descriptions and messages are in English. Occupation queries still work in Polish and English (for example, `programista` and `software engineer`). Occupation and source names stay in their original language.

| Tool | What it returns | Example question |
| --- | --- | --- |
| `find_occupation` | Matching occupations, with a slug or GUS group code for the next call | Which occupation matches “software engineer” in the Polish statistics? |
| `get_occupation_salary` | Survey deciles, indexed estimates and, for selected roles, statutory pay | For that occupation, what was the observed median and what range do you estimate for a senior in Warsaw? |
| `calculate_net_pay` | Month-by-month take-home pay and employer cost for 2026 or 2027; also works backwards from January net | What gross salary gives me PLN 7,000 take-home in January 2027 without PPK? |
| `compare_contracts` | A 2026 comparison of employment, B2B and a contract of mandate (*umowa zlecenie*), including the break-even B2B rate | How does PLN 10,000 gross as an employee compare with a monthly B2B invoice of PLN 13,000 before VAT? |

For occupation pay, call `find_occupation` first. Pass the returned slug or code to `get_occupation_salary`; if two occupations fit, ask which the user means.

Example `tools/call` arguments:

- `find_occupation`: `{"query":"software engineer"}`
- `get_occupation_salary`: `{"code":"251","level":"typical"}`
- `calculate_net_pay`: `{"amount":7000,"mode":"net","year":2027,"ppk":false}`. Use `"mode":"gross"` for a gross input.
- `compare_contracts`: `{"gross":10000,"b2bRate":13000,"b2bForm":"flat_rate","b2bFlatRate":0.12,"b2bSocialInsurance":"full","mandateGross":9000}`

`compare_contracts` also accepts January take-home pay in `employmentNet` in place of `gross`. The other `b2bForm` values are `flat_tax` and `progressive`; the other `b2bSocialInsurance` values are `reduced` and `start_relief`. Set mandate options with `mandateSick`, `mandatePit2`, `mandateStudent` and `mandateUnder26`. Both payroll tools accept `higherDeductibleExpenses` for the higher standard employment deduction.

Upgrading from v0.1.0? Refresh the tool list in your client and update any saved calls and result parsers. The old names and values are not accepted as aliases. See the [changelog](CHANGELOG.md#020) for the breaking changes.

## Read and cite a result

`result.structuredContent` contains the data (also serialized in `result.content[0].text`). A successful call includes `method`, `explanation`, `currency`, `asOfDate`, `nextSteps` and `disclaimer`. Keep the amount type (gross, take-home or B2B invoice before VAT), period, assumptions and sources with the number. Credit **widelkiplacowe.pl** by linking to the full `url` returned by the tool.

For example, `find_occupation` with `{"query":"software engineer","limit":0}` returns `result.isError: true` and this `result.structuredContent`:

```json
{
  "error": "The limit parameter must be an integer from 1 to 15.",
  "url": "https://widelkiplacowe.pl/widelki-dla-stanowiska/?utm_source=mcp",
  "ratesYear": null,
  "source": {
    "primary": "widelkiplacowe.pl Terms of Service",
    "sources": [{"name": "widelkiplacowe.pl Terms of Service", "url": "https://widelkiplacowe.pl/regulamin/?utm_source=mcp", "checked": "2026-11-03"}]
  },
  "disclaimer": "No result or calculation was returned. Contact: kontakt@widelkiplacowe.pl."
}
```

`ratesYear` identifies the year of the rules, not the survey year; `null` means no rate year applies. A validation error is not a zero salary. For JSON-RPC errors, read the source information in `error.data`.

## Where the numbers come from

| Kind of figure | Source and limits |
| --- | --- |
| Observed pay (`rawDeciles2024`) | [Statistics Poland (GUS), October 2024 earnings survey](https://stat.gov.pl/obszary-tematyczne/rynek-pracy/pracujacy-zatrudnieni-wynagrodzenia-koszty-pracy/struktura-wynagrodzen-wedlug-zawodow-za-pazdziernik-2024-r-,4,12.html), tables 13 and 2, checked 2026-11-02. The occupational deciles cover full-time employees in establishments with at least 10 workers, not B2B contractors or microbusinesses. |
| Estimated pay (`decilesIndexed`, `bandEstimate`) | The October 2024 deciles are adjusted by the GUS enterprise-sector wage index. The bundled snapshot uses the [October 2026 index value](https://stat.gov.pl/sygnalne/komunikaty-i-obwieszczenia/lista-komunikatow-i-obwieszczen/obwieszczenie-w-sprawie-przecietnego-miesiecznego-wynagrodzenia-w-sektorze-przedsiebiorstw-w-pazdzierniku-2026-r-,56,156.html), checked 2026-11-24. This is not a new occupation survey. Regional and seniority ranges are estimates too. |
| Advertised pay (`cbopOffers`, when available) | Aggregated [public employment office offers](https://oferty.praca.gov.pl/), fetched 2026-12-01 for the bundled snapshot. These are advertised amounts, not pay received. |
| Statutory rates and calculations | Public pay tables, minimum wages, taxes and contributions use the cited acts (Dz.U., M.P.) and ZUS guidance. For example, [ZUS contribution rates](https://www.zus.pl/baza-wiedzy/skladki-wskazniki-odsetki/skladki/wysokosc-skladek-na-ubezpieczenia-spoleczne) were checked 2026-11-02. Each `source.sources` entry carries its own `checked` date. |

These are estimates for comparison, not tax or legal advice. They do not predict an individual offer or payslip. See the [methodology](https://widelkiplacowe.pl/metodologia/).

## Usage, privacy and status

Keep requests reasonable. The hosted service limits each IP address to **60 POST requests per minute per Cloudflare edge location**. On HTTP `429`, wait for `Retry-After` (60 seconds) before retrying.

The application does not log raw tool inputs or request bodies. No names, identifiers or payslips are needed; use an occupation or a hypothetical amount. The edge rate limiter uses the connecting IP. Hosting infrastructure and your MCP client may process or log request metadata separately.

The server is tested after every change. [Health and version](https://mcp.widelkiplacowe.pl/health) · [CI runs](https://github.com/renatachmiel/widelki-mcp/actions). For a wrong figure or a connection problem, [open an issue](https://github.com/renatachmiel/widelki-mcp/issues/new/choose) or email [kontakt@widelkiplacowe.pl](mailto:kontakt@widelkiplacowe.pl). We usually reply within three working days. For security reports, use [private disclosure](SECURITY.md).

## Local development and updates

From the repository root, using the Node.js version in [`package.json`](package.json):

```sh
npm ci
npm test
npm run build
npm run smoke
```

`build` bundles the Worker without deploying it. `smoke` tests the hosted endpoint by default. To test your checkout instead, start `npx wrangler dev --config mcp/wrangler.jsonc` and, in a second terminal, run `npm run smoke -- http://localhost:8787/mcp`.

This repository is the source of the Worker in `mcp/`. The website is the source of the shared calculation modules and data. Its export workflow opens a PR with the exact approved files in `src/lib/`, `src/data/`, `public/data/gus-2024.json` and `public/data/oferty.json`. Do not copy or patch these files by hand. CI compares the results for 20 amounts to the grosz (PLN 0.01). See [Contributing](CONTRIBUTING.md).

Server releases follow [Semantic Versioning](https://semver.org/); `0.x` is the initial development series. See the [changelog](CHANGELOG.md). Code: [MIT](LICENSE). Project data: [CC BY 4.0](LICENSE-DATA), with attribution and applicable upstream rights.

## Planned, not shipped

Phase 2 would start with a separate CC BY 4.0 data repository. A JSON API with an OpenAPI 3.1 description would come later **only if the MCP server demonstrates traffic**. Directory submissions are also only a plan: Official MCP Registry, Glama, mcpservers.org, cursor.directory and mcprush. No submissions have been made.