Sri Lanka Payslip

Official registry Other

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

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

Remote (streamable-http)
Claude Code
claude mcp add --transport http sri-lanka-payslip 'https://mypayslip.lk/api/mcp'
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "sri-lanka-payslip": {
            "type": "http",
            "url": "https://mypayslip.lk/api/mcp"
        }
    }
}
OCI package ghcr.io/buddhima-jd3/sri-lanka-payslip-mcp:2026.27.2
Claude Code
claude mcp add sri-lanka-payslip -- docker run -i --rm ghcr.io/buddhima-jd3/sri-lanka-payslip-mcp:2026.27.2
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "sri-lanka-payslip": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "ghcr.io/buddhima-jd3/sri-lanka-payslip-mcp:2026.27.2"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Sri Lanka Salary Calculator and Payslip Reference
  2. Try the calculator
  3. Verified example
  4. Reference implementation
  5. Use with an AI assistant
  6. Machine-readable references
  7. Primary sources
  8. Scope

Sri Lanka Salary Calculator and Payslip Reference

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:

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:

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:

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

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.

Frequently asked questions

What is Sri Lanka Payslip?

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

How do I install Sri Lanka Payslip?

It runs as a remote server. In Claude Code: claude mcp add --transport http sri-lanka-payslip 'https://mypayslip.lk/api/mcp'. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Sri Lanka Payslip need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Sri Lanka Payslip open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains Sri Lanka Payslip?

It is published by Buddhima-JD3. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.