Sri Lanka Payslip

io.github.Buddhima-JD3由 GitHub 帳號 Buddhima-JD3 發布v2026.27.2更新於 Oct 24, 2026

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

已驗證Streamable HTTP可網頁執行金融資料與分析

概覽

AI 產生的概覽

估算斯里蘭卡薪資單:APIT/PAYE、EPF、ETF、印花稅、淨薪資與雇主成本,並提供薪資參考與核對清單工具。

可以做什麼
  • 計算每月薪資單估算:APIT/PAYE、員工與雇主 EPF、雇主 ETF、印花稅、淨薪資及雇主成本
  • 取得維護中的 APIT、EPF、ETF 與印花稅假設,含官方來源與適用範圍限制
  • 取得編製或複核斯里蘭卡薪資單所需的欄位與算術核對項目
適用情境
適合需要估算或核對斯里蘭卡一般主要僱傭月薪、說明薪資單各項扣款,或檢查薪資單應包含哪些欄位的情況。
執行需求
不需帳號或 API 金鑰。可作為免驗證的遠端 Streamable HTTP 端點使用,也可透過 npx、npm 或公開的 AMD64/ARM64 容器映像在本機以 stdio 執行。本機模式不會將薪資輸入傳送到外部服務。
安裝前請注意
結果僅為一般主要僱傭的估算;獎金、離職給付、次要僱傭、非居民及特殊薪資情形可能需要不同稅表或專業複核,輸出不構成薪資、稅務或法律建議。遠端模式會將薪資輸入傳送至託管服務,該服務聲明不儲存這些輸入。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Sri Lanka Payslip,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.Buddhima-JD3%2Fsri-lanka-payslip/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "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.

來源:README.md,提交 fb2ebab

工具

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.

輸入參數grossSalary必填epfEtfEarningsBaseotherEmployeeDeductions

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.

無需輸入參數。

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.

無需輸入參數。

版本歷史

1
  1. v2026.27.2最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分