Sri Lanka Salary Calculator and Payslip Reference
MCP serverDev toolsYour AI can produce complete Sri Lankan payslip figures from a salary amount, covering APIT/PAYE tax, EPF and ETF contributions, stamp duty, and net pay. Every calculation is backed by sources, so the numbers can be checked. This is useful for preparing or verifying payslips for Sri Lankan employees.
Use Sri Lanka Salary Calculator and Payslip Reference in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Sri Lanka Salary Calculator and Payslip Reference and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the calculate sri lanka payslip tool from Sri Lanka Salary Calculator and Payslip Reference
No key or account is asked for. Not verified by us yet: Ahel has not run a call through it.
Details
Available today. Use it from your connected AI after setup.
No key or account is asked for. Not verified by us yet: Ahel has not run a call through it.
After adding it, give your AI a gross salary and ask for the payslip breakdown. It will return the tax, EPF, ETF, stamp duty, and net pay figures.
What your AI can do with it
- Calculate APIT/PAYE income tax on a salary
- Work out EPF and ETF contributions
- Compute stamp duty amounts
- Show net pay after all deductions
- Back each figure with its source
Install Sri Lanka Salary Calculator and Payslip Reference
The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.
Claude Code
claude mcp add --transport http --scope user sri-lanka-salary-calculator-and 'https://mypayslip.lk/api/mcp'Run it once in your project, then open /mcp to approve any sign-in the server asks for.
Claude Desktop
https://mypayslip.lk/api/mcpAdd a custom connector in Settings, paste this address, and approve the sign-in.
Cursor
cursor://anysphere.cursor-deeplink/mcp/install?name=sri-lanka-salary-calculator-and&config=eyJ1cmwiOiJodHRwczovL215cGF5c2xpcC5say9hcGkvbWNwIn0=Open the link and Cursor adds the server at that address.
ChatGPT
https://mypayslip.lk/api/mcpIn Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.
Codex
codex mcp add sri-lanka-salary-calculator-and --url 'https://mypayslip.lk/api/mcp'Run it once, then sign in with codex mcp login sri-lanka-salary-calculator-and if the server asks for an account.
From the project's README
As published by buddhima-jd3/sri-lanka-salary-calculator in README.md.
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
- Developer reference
- Sri Lanka salary calculator
- Embeddable salary calculator widget
- Payslip generator
- How to read and check a Sri Lankan payslip
- Calculation methodology
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:
| Item | Monthly amount |
|---|---|
| Gross salary | LKR 200,000 |
| APIT / PAYE | LKR 3,000 |
| Employee EPF (8%) | LKR 16,000 |
| Stamp duty | LKR 25 |
| Estimated net pay | LKR 180,975 |
| Employer EPF (12%) | LKR 24,000 |
| Employer ETF (3%) | LKR 6,000 |
Run the same case locally:
node examples/calculate.mjs 200000
Or call the hosted read-only API:
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:
npm install github:Buddhima-JD3/sri-lanka-salary-calculator
import { calculateSalary } from "sri-lanka-salary-calculator";
const result = calculateSalary({
grossSalary: 200000,
epfEtfEarningsBase: 200000,
});
console.log(result.netPay); // 180975
Verify the published examples:
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:
| 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:
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:
docker run -i --rm ghcr.io/buddhima-jd3/sri-lanka-payslip-mcp:2026.27.2
Add it to an MCP client configuration:
{
"mcpServers": {
"sri-lanka-payslip": {
"command": "npx",
"args": [
"-y",
"github:Buddhima-JD3/sri-lanka-salary-calculator"
]
}
}
}
Or start it from this repository:
npm install
npm run mcp
Machine-readable references
- OpenAPI 3.1 specification
- Calculation methodology and test cases
- Archived v2026.27.2 source
- Live OpenAPI: https://mypayslip.lk/openapi.json
- Live methodology: https://mypayslip.lk/calculation-methodology.json
- Agent guidance: https://mypayslip.lk/llms.txt
Primary sources
- Inland Revenue Department APIT tax tables
- Inland Revenue Department income tax
- Central Bank of Sri Lanka Employees' Provident Fund
- Employees' Trust Fund Board employer guidance
- Inland Revenue Department stamp duty
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.
Tools it offers (3)
What this server listed when Ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.
calculate_sri_lanka_payslipget_sri_lanka_payroll_referenceget_sri_lanka_payslip_checklist
Signals
- Last commit
- Jul 2026
Advanced
- Delivery
- sri-lanka-payslip MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
- Item type
- mcp-server
- Key
io-github-buddhima-jd3-sri-lanka-payslip- Source
- github.com/buddhima-jd3/sri-lanka-salary-calculator
- Hosted endpoint
https://mypayslip.lk/api/mcp
github.com/buddhima-jd3/sri-lanka-salary-calculator