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 分