# Malaysia Payroll

> Malaysia Payroll is an open-source MCP server for finance and payments. MCP server that calculates Malaysian payroll statutory deductions with cited rate tables. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/davidyapcc/malaysia-payroll-mcp
- **MCP Registry name:** io.github.davidyapcc/malaysia-payroll-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-23

## About

Malaysian payroll teams and developers often need EPF, SOCSO, SKBBK, EIS and MTD/PCB figures for a single employee's pay. This MCP server computes those deductions and employer contributions for a monthly salary, and attaches the rate table or rule behind each figure so the numbers can be traced.

It exposes four tools: separate calculators for EPF, SOCSO with SKBBK and EIS, and MTD income tax, plus a net pay tool that runs all three and returns a full payslip with employer cost. Each result states the pay period used, which defaults to the current month in Malaysia. The rate tables are also available as read-only JSON resources, with amounts in sen, keyed by contribution type and effective date.

The server suits HR and payroll software builders, accountants and AI assistants that need a consistent statutory calculation for fixed monthly salaries. It is pre-release and must be built from source, since it is not yet on npm.

## Features

- **Statutory contribution calculators:** Computes EPF, SOCSO, SKBBK and EIS amounts for employee and employer from the rate tables in effect.
- **MTD tax estimate:** Works out MTD (PCB) deductions for tax residents with standard reliefs, or a flat 30% for non-residents.
- **Full payslip in one call:** Net pay tool returns every deduction, net pay and total employer cost for a month.
- **Cited results:** Every figure comes with the rule, table row and official source it was taken from.
- **Rate tables as resources:** Each rate table is exposed as a read-only JSON resource by type and effective date.

## Good for

- Generate a monthly payslip with statutory deductions for a Malaysian employee
- Estimate employer EPF and SOCSO cost when budgeting a new hire
- Check an MTD deduction for a tax resident with standard reliefs
- Feed verified Malaysian rate tables into an HR or payroll application

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add malaysia-payroll-mcp -- npx -y malaysia-payroll-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add malaysia-payroll-mcp -- npx -y malaysia-payroll-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.malaysia-payroll-mcp]
command = "npx"
args = ["-y", "malaysia-payroll-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user malaysia-payroll-mcp npx -- -y malaysia-payroll-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "malaysia-payroll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "malaysia-payroll-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 4 tools changes data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `calculate_epf`: EPF employee and employer contributions from the Third Schedule in effect.
- `calculate_socso_eis`: SOCSO, SKBBK (Lindung 24 Jam) and EIS contributions from the PERKESO tables in effect.
- `calculate_mtd`: MTD (PCB) income tax deduction with standard reliefs for tax residents, or flat 30% for non-residents.
- `calculate_net_pay` (name suggests: changes): One month's payslip with all deductions, net pay and employer contributions and total cost.

## FAQ

### Does Malaysia Payroll handle overtime or bonuses?

No. It supports fixed monthly salaries only; overtime, commission, bonuses and arrears are not supported, and neither is zakat.

### How do I install Malaysia Payroll?

Nothing is published to npm yet. Clone the repository, run pnpm install and pnpm build, then add the built stdio entry to your MCP client.

### Which MCP clients can use Malaysia Payroll?

The server runs over stdio. The README gives setup steps for Claude Code and Claude Desktop.

### Are the results verified by the government agencies?

No. The README states the output is not tax advice and not verified by KWSP, PERKESO or LHDN.

### Is Malaysia Payroll free?

Yes. Malaysia Payroll is open source, so you can use and self-host it for free.

### How do I add Malaysia Payroll to Claude Code?

Run this command in your terminal: claude mcp add malaysia-payroll-mcp -- npx -y malaysia-payroll-mcp

### What are the best alternatives to Malaysia Payroll?

The closest alternatives to Malaysia Payroll are My Net Worth — Malaysian take-home pay, SwiftPesa African Money Data, MCP Korea Worklife, SalaryNet Payroll and 中国社保与薪税计算器 (China Shebao & Payroll Tax MCP).

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [My Net Worth — Malaysian take-home pay](https://ai-powered.com/mcp/my-net-worth-malaysian-take-home-pay): My Net Worth — Malaysian take-home pay is an MCP server for finance and payments.
- [SwiftPesa African Money Data](https://ai-powered.com/mcp/swiftpesa-african-money-data): SwiftPesa African Money Data is a free MCP server for finance and payments.
- [MCP Korea Worklife](https://ai-powered.com/mcp/mcp-korea-worklife): MCP Korea Worklife is an open-source MCP server for finance and payments.
- [SalaryNet Payroll](https://ai-powered.com/mcp/salarynet-payroll): SalaryNet Payroll is a freemium MCP server for finance and payments.
- [中国社保与薪税计算器 (China Shebao & Payroll Tax MCP)](https://ai-powered.com/mcp/china-shebao-and-payroll-tax-mcp): 中国社保与薪税计算器 (China Shebao & Payroll Tax MCP) is a free MCP server for finance and payments.
- [UK Data: UK business calculators](https://ai-powered.com/mcp/uk-data-uk-business-calculators): UK Data: UK business calculators is a freemium MCP server for finance and payments.
- [takehomecompass.com](https://ai-powered.com/mcp/takehomecompass-com): takehomecompass.com is an MCP server for finance and payments.
- [Platformtaxhub MCP](https://ai-powered.com/mcp/platformtaxhub-mcp): Platformtaxhub MCP is an open-source MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/malaysia-payroll
