Sri Lanka Payslip

io.github.Buddhima-JD3Published by GitHub account Buddhima-JD3v2026.27.2Updated Oct 24, 2026

Source-backed Sri Lanka payslip tools for APIT/PAYE, EPF, ETF, stamp duty, and net pay.

VerifiedStreamable HTTPWeb executableFinanceData & Analytics

Overview

AI-generated overview

Estimates Sri Lankan payslips: APIT/PAYE, EPF, ETF, stamp duty, net pay and employer cost, plus payroll reference and checklist tools.

What you can do
  • Calculate a monthly payslip estimate: APIT/PAYE, employee and employer EPF, employer ETF, stamp duty, net pay and employer cost
  • Retrieve the maintained APIT, EPF, ETF and stamp-duty assumptions with official sources and scope limits
  • Get the fields and arithmetic checks needed to prepare or review a Sri Lankan payslip
When to use it
Useful when an assistant needs to estimate or sanity-check a regular primary-employment salary in Sri Lanka, explain the deductions behind a payslip, or review which fields a payslip should contain.
Requirements
No account or API key. Runs either as a remote no-auth Streamable HTTP endpoint or locally over stdio via npx, npm, or a public AMD64/ARM64 container image. Local mode keeps salary inputs off external services.
Before you install
Results are estimates for regular primary employment only; bonus, terminal-benefit, secondary-employment, non-resident and unusual cases may need a different table or professional review, and outputs are not payroll, tax or legal advice. Remote mode sends salary inputs to the hosted service, which states it does not store them.

Installation

In SourceWeft

  1. Open Sri Lanka Payslip in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.Buddhima-JD3%2Fsri-lanka-payslip/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "sri-lanka-payslip": {
      "type": "http",
      "url": "https://mypayslip.lk/api/mcp"
    }
  }
}

README

Sri Lanka Salary Calculator and Payslip Reference

[sri-lanka-salary-calculator MCP server]

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.

Try the calculator

No account is required. The hosted calculator runs in the browser, and the public calculation API does not store salary inputs.

Verified example

For a monthly gross salary and EPF/ETF contribution base of LKR 200,000:

ItemMonthly amount
Gross salaryLKR 200,000
APIT / PAYELKR 3,000
Employee EPF (8%)LKR 16,000
Stamp dutyLKR 25
Estimated net payLKR 180,975
Employer EPF (12%)LKR 24,000
Employer ETF (3%)LKR 6,000

Run the same case locally:

bash
node examples/calculate.mjs 200000

Or call the hosted read-only API:

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

Reference implementation

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:

bash
npm install github:Buddhima-JD3/sri-lanka-salary-calculator
js
import { calculateSalary } from "sri-lanka-salary-calculator";
const result = calculateSalary({  grossSalary: 200000,  epfEtfEarningsBase: 200000,});
console.log(result.netPay); // 180975

Verify the published examples:

bash
npm test

Use with an AI assistant

This repository includes a local Model Context Protocol server built with the official MCP SDK. It gives compatible AI assistants three read-only tools:

ToolPurpose
calculate_sri_lanka_payslipCalculate APIT/PAYE, EPF, ETF, stamp duty, net pay, and employer cost
get_sri_lanka_payroll_referenceRetrieve maintained assumptions, scope limits, and official sources
get_sri_lanka_payslip_checklistPrepare 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.

Official MCP Registry: io.github.Buddhima-JD3/sri-lanka-payslip

Agent-oriented installation instructions are available in llms-install.md.

The Registry package is a public AMD64/ARM64 container:

bash
docker run -i --rm ghcr.io/buddhima-jd3/sri-lanka-payslip-mcp:2026.27.2

Add it to an MCP client configuration:

json
{  "mcpServers": {    "sri-lanka-payslip": {      "command": "npx",      "args": [        "-y",        "github:Buddhima-JD3/sri-lanka-salary-calculator"      ]    }  }}

Or start it from this repository:

bash
npm installnpm run mcp

Machine-readable references

Primary sources

Scope

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.

Source: README.md at commit fb2ebab

Tools

3

calculate_sri_lanka_payslip

Calculate a Sri Lanka payslip

Estimate monthly APIT/PAYE, employee and employer EPF, ETF, stamp duty, net pay, and employer cost for regular primary employment in Sri Lanka.

ParametersgrossSalaryrequiredepfEtfEarningsBaseotherEmployeeDeductions

get_sri_lanka_payroll_reference

Get the Sri Lanka payroll reference

Return the maintained APIT, EPF, ETF, and stamp-duty assumptions with official Sri Lankan sources and scope limits.

Takes no parameters.

get_sri_lanka_payslip_checklist

Get a Sri Lanka payslip checklist

Return the fields and checks needed to prepare or review a Sri Lankan employee payslip.

Takes no parameters.

Version history

1
  1. v2026.27.2LatestSep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts