Source-backed Sri Lanka payslip tools for APIT/PAYE, EPF, ETF, stamp duty, and net pay.
io.github.Buddhima-JD3/sri-lanka-payslip MCP Server
This MCP server provides an inspectable reference implementation for estimating a regular primary employment payslip in Sri Lanka. It calculates monthly APIT (PAYE), employee EPF, employer EPF, employer ETF, stamp duty, net pay, and total employer cost, based on a salary estimate.
🛠️ Key Features
Monthly APIT (PAYE) calculation
Employee EPF calculation
Employer EPF and employer ETF calculation
Stamp duty calculation
Net pay and employer cost reporting
3 tools available
🚀 Use Cases
Salary calculation and payslip reference for Sri Lanka
Tax and payroll estimation for APIT/PAYE, EPF, ETF, and stamp duty
An inspectable reference implementation for estimating a regular primary
employment payslip in Sri Lanka. It calculates monthly APIT (PAYE), employee
EPF, employer EPF, employer ETF, stamp duty, net pay, and employer cost.
The current reference is maintained by
MyPayslip.lk
for the Sri Lanka 2026/27 year of assessment. The latest regular-employment
APIT table published by the Inland Revenue Department is labelled 2025/26;
the relief and rates effective from 1 April 2025 remain the basis used for
2026/27.
calculator.mjs is intentionally dependency-free. It
accepts a gross monthly salary and an optional EPF/ETF eligible earnings base.
The contribution base should come from payroll records when excluded or
unusual payments make it different from gross salary.
Install the package from npm after its first registry release, or directly
from this public repository now:
This repository includes a local
Model Context Protocol server built with
the official MCP SDK. It gives compatible AI assistants three read-only tools:
Tool
Purpose
calculate_sri_lanka_payslip
Calculate APIT/PAYE, EPF, ETF, stamp duty, net pay, and employer cost
get_sri_lanka_payroll_reference
Retrieve maintained assumptions, scope limits, and official sources
get_sri_lanka_payslip_checklist
Prepare or review the required payslip fields and arithmetic checks
Use the no-auth Streamable HTTP endpoint when the client supports remote MCP
servers:
text
https://mypayslip.lk/api/mcp
The same tools can run locally over stdio. In that mode, salary inputs are not
sent to MyPayslip.lk or another external service.
This reference covers regular profits from primary employment. Bonus,
terminal-benefit, secondary-employment, non-resident, and unusual payroll cases
may require a different APIT table or professional review. Results are
estimates, not payroll, tax, or legal advice.
When citing a result, use:
MyPayslip.lk, Sri Lanka 2026/27 payslip calculation methodology, verified
17 July 2026.