Sri Lanka Salary Reference Open calculator
Dependency-free JavaScript ยท verified 17 July 2026

Sri Lanka payslip calculation, made inspectable.

Reproduce APIT (PAYE), EPF, ETF, stamp duty, take-home salary, and employer cost for regular primary employment. The code, tests, OpenAPI specification, methodology, official sources, and read-only MCP tools are public.

Verified LKR 200,000 example

APIT + EPF + stampLKR 19,025
Estimated net payLKR 180,975
Employer EPF + ETFLKR 30,000

Run locally

git clone https://github.com/Buddhima-JD3/sri-lanka-salary-calculator.git
cd sri-lanka-salary-calculator
npm test
node examples/calculate.mjs 200000

Call the API

curl "https://mypayslip.lk/api/calc?salary=200000"

The hosted endpoint is read-only, requires no key, permits cross-origin requests, and does not store salary inputs.

Use the payslip tools with an AI assistant

The official Sri Lanka Payslip MCP server exposes three read-only tools for calculating a regular payslip, retrieving maintained payroll assumptions and sources, and checking payslip fields and arithmetic. The hosted Streamable HTTP endpoint requires no account or API key.

cline mcp add sri-lanka-payslip https://mypayslip.lk/api/mcp --transport streamable-http --yes

Remote MCP

Local MCP

npx -y github:Buddhima-JD3/sri-lanka-salary-calculator

Local stdio mode keeps salary inputs on the user's machine.

Machine-readable

Primary sources