Skip to content
MCP server
Registry

Malaysia Payroll MCP Server

Statutory deductions and employer contributions in Malaysia (EPF, SOCSO, SKBBK, EIS, MTD/PCB), cited

Malaysia Payroll scores 70 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 4 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 87 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by davidyapccMITTypeScript0 stars
Trust score
70Good
Trust score 70 of 100, Good

Good trust

70 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 70 comes from

22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "davidyapcc-malaysia-payroll-mcp": {      "command": "npx",      "args": [        "-y",        "malaysia-payroll-mcp@0.3.0"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools4Tool docs quality grade C

All capabilities
  • EPF employee and employer contributions, from the Third Schedule in effect

  • MTD (PCB) income tax deduction: LHDN's formula with the working shown for a tax resident, or the flat 30% for a non-resident (taxResident: false). Standard reliefs only (individual, spouse, children, EPF, plus a TP1 total)

  • One month's payslip: every deduction above, net pay, and the employer's contributions and total cost. Runs the three calculators in one call and feeds the employee EPF into MTD

  • SOCSO, SKBBK (Lindung 24 Jam) and EIS contributions, from the PERKESO tables in effect

About

malaysia-payroll-mcp

An MCP server that works out Malaysian statutory payroll deductions (EPF, SOCSO, SKBBK, EIS and MTD/PCB) for one employee's monthly salary, and cites the official rate table or rule behind every number.

Status: pre-release. EPF, SOCSO, SKBBK, EIS, MTD, net pay and the 35-case two-layer agent eval are in. Tagged releases are on GitHub, with changes listed in the changelog; nothing is published to npm yet.

Tools

ToolWhat it works out
calculate_epfEPF employee and employer contributions, from the Third Schedule in effect
calculate_socso_eisSOCSO, SKBBK (Lindung 24 Jam) and EIS contributions, from the PERKESO tables in effect
calculate_mtdMTD (PCB) income tax deduction: LHDN's formula with the working shown for a tax resident, or the flat 30% for a non-resident (taxResident: false). Standard reliefs only (individual, spouse, children, EPF, plus a TP1 total)
calculate_net_payOne month's payslip: every deduction above, net pay, and the employer's contributions and total cost. Runs the three calculators in one call and feeds the employee EPF into MTD

Every result echoes the pay period it used (the current month in Malaysia if you don't pass one), and carries citations, an explanation rendered from them, and a disclaimer.

Resources

Every rate table the tools read is also a read-only resource, as JSON with amounts in sen: payroll://tables/{kind}/{effectiveFrom}, where kind is epf, socso, skbbk, eis or mtd (LHDN's tax schedule). For example, payroll://tables/epf/2025-10-01 is the EPF Third Schedule from 1 Oct 2025. resources/list shows them all, and the template completes both parts.

Not tax advice, and not verified by KWSP, PERKESO or LHDN. Fixed monthly salaries only: overtime, commission, bonuses and arrears aren't supported, and neither is zakat.

Install

Nothing is on npm yet, so build from source. You need Node 24 or later and pnpm.

git clone https://github.com/davidyapcc/malaysia-payroll-mcp.git
cd malaysia-payroll-mcp
pnpm install
pnpm build

Usage

The server runs over stdio. Replace /absolute/path/to with where you cloned it.

Claude Code:

claude mcp add malaysia-payroll -- node /absolute/path/to/malaysia-payroll-mcp/dist/entry/stdio.js

Claude Desktop, in claude_desktop_config.json:

{
  "mcpServers": {
    "malaysia-payroll": {
      "command": "node",
      "args": ["/absolute/path/to/malaysia-payroll-mcp/dist/entry/stdio.js"]
    }
  }
}

Example

Calling calculate_epf with these arguments:

{ "monthlySalary": 5000, "age": 34, "citizenship": "malaysian", "payPeriod": "2026-10" }

returns the following (amounts in RM, output from a real run):

{
  "payPeriod": "2026-10",
  "monthlySalary": 5000,
  "part": "A",
  "employee": 550,
  "employer": 650,
  "total": 1200,
  "citations": [
    {
      "item": "EPF",
      "employee": 550,
      "employer": 650,
      "rule": "Part A applies to Malaysians, permanent residents and non-Malaysians registered before 1 Aug 1998, under 60. Up to RM20,000 the schedule's band amounts apply.",
      "tableRow": "Part A, RM4,980.01 to RM5,000.00",
      "source": {
        "title": "EPF Act 1991, Third Schedule (from 1 October 2025)",
        "url": "https://www.kwsp.gov.my/documents/d/guest/third_schedule_from_-1-october-2025",
        "retrieved": "2026-10-23"
      },
      "effectiveFrom": "2025-10-01"
    }
  ],
  "explanation": "EPF: employee RM550.00, employer RM650.00. Part A applies to Malaysians, permanent residents and non-Malaysians registered before 1 Aug 1998, under 60. Up to RM20,000 the schedule's band amounts apply. Table row: Part A, RM4,980.01 to RM5,000.00. Source: EPF Act 1991, Third Schedule (from 1 October 2025), in effect from 2025-10-01.",
  "disclaimer": "Not tax or legal advice, and not verified by KWSP, PERKESO or LHDN. Fixed monthly salaries only: overtime, commission, bonuses and arrears are not supported. Check results against the cited source."
}

Docs

Development

Needs Node 24 or later and pnpm (the version is pinned in package.json).

pnpm install
pnpm check          # generated tables, Biome lint and format check, tsc, Vitest
pnpm gen:tables     # regenerate src/tables/generated/ after editing docs/data/
pnpm test:coverage  # tests with v8 coverage
pnpm eval           # run 35-case two-layer agent eval (requires ANTHROPIC_API_KEY or OPENAI_API_KEY)
pnpm eval:local     # same eval on a local model through Ollama, free (needs Ollama running)
pnpm eval:compare   # model comparison: several models over repeated runs (see below)
pnpm build          # compile to dist/

To change a rate, edit or add a CSV in docs/data/ (with its entry in docs/data/sources.json), run pnpm gen:tables and commit both. Never edit src/tables/generated/ by hand: CI rejects it (ADR 0003).

pnpm eval loads .env automatically if present and writes evals/results/scorecard.json and evals/results/scorecard.md:

  • Set ANTHROPIC_API_KEY to run with Claude (claude-haiku-4-5 by default).
  • Or set OPENAI_API_KEY to run with OpenAI (gpt-4o-mini by default; override provider with EVAL_PROVIDER=openai|anthropic|ollama and models with EVAL_AGENT_MODEL / EVAL_JUDGE_MODEL).
  • Or set EVAL_PROVIDER=ollama to run on a local open-weight model with Ollama, with no key and no cost (qwen3:8b by default; OLLAMA_BASE_URL defaults to http://localhost:11434/v1). Pull the model first, for example ollama pull qwen3:8b.
  • With Ollama, <think>...</think> reasoning that some models write into their answer is removed before grading.
  • EVAL_JUDGE_PROVIDER runs the judge on a different provider from the agent, for example a local agent graded by gpt-4o (ADR 0005).

Agent implementations

EVAL_AGENT_IMPL picks the agent under test: loop (default) is the hand-rolled tool loop in evals/runner.ts; agents-sdk is the same agent built on the OpenAI Agents SDK, which discovers and calls this server's tools through its MCP support. It runs on openai or ollama, and is graded by the same checks and judge (ADR 0006).

EVAL_PROVIDER=ollama EVAL_AGENT_IMPL=agents-sdk pnpm eval

Comparing models

pnpm eval:compare runs the whole suite EVAL_COMPARE_RUNS times (default 3) for each model in EVAL_COMPARE_MODELS, grades every model with the one judge named by EVAL_JUDGE_MODEL (required, so rows are comparable), and writes evals/results/comparison-<time>.md and .json: gate passes, Layer 1 pass rate (mean, min and max across runs), must-pass failures, rubric mean over the cases the judge scored, hallucinated citations, agent and judge errors, seeded controls caught, case latency, minutes per run, and the machine's hardware. It reports and never fails on the gate.

# Local agents graded by gpt-4o
EVAL_PROVIDER=ollama EVAL_JUDGE_PROVIDER=openai EVAL_JUDGE_MODEL=gpt-4o \
  EVAL_COMPARE_MODELS="qwen3:8b,llama3.1:8b,qwen3:14b" pnpm eval:compare
# Everything local and free
EVAL_PROVIDER=ollama EVAL_JUDGE_MODEL=qwen3:14b EVAL_COMPARE_MODELS="qwen3:8b,llama3.1:8b" pnpm eval:compare
# The Agents SDK agent in place of the hand-rolled loop
EVAL_PROVIDER=ollama EVAL_AGENT_IMPL=agents-sdk EVAL_JUDGE_MODEL=qwen3:14b EVAL_COMPARE_MODELS="qwen3:8b" pnpm eval:compare

Releasing

Bump version in package.json, server.json (both places) and src/version.ts, update the changelog, merge, then push a tag with the bare version number (for example git tag 0.3.0 && git push origin 0.3.0). .github/workflows/publish.yml checks the versions match, runs pnpm check, publishes to npm through trusted publishing (with provenance, no stored token) and lists the version on the MCP Registry under io.github.davidyapcc/malaysia-payroll-mcp. Then create a GitHub release for the tag from its changelog entry; if any number changed, the release notes say "results changed" (see Versioning).

Licence

MIT

Frequently asked questions

What is Malaysia Payroll MCP Server?

Statutory deductions and employer contributions in Malaysia (EPF, SOCSO, SKBBK, EIS, MTD/PCB), cited

How do I install Malaysia Payroll MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Malaysia Payroll MCP Server runs locally from the npm package malaysia-payroll-mcp with the command npx -y malaysia-payroll-mcp@0.3.0.

Is Malaysia Payroll MCP Server free and open source?

Yes. Malaysia Payroll MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Malaysia Payroll MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Malaysia Payroll MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Malaysia Payroll MCP Server provide?

Malaysia Payroll MCP Server provides 4 tools: calculate_epf, calculate_mtd, calculate_net_pay, and calculate_socso_eis. See the full tool list for descriptions and parameters.

How is Malaysia Payroll MCP Server's trust score calculated?

Malaysia Payroll MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server