Malaysia Payroll
MCP server that calculates Malaysian payroll statutory deductions with cited rate tables
Malaysia Payroll is an open-source MCP server for finance and payments. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, Linux
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 0.3.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add malaysia-payroll-mcp -- npx -y malaysia-payroll-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"malaysia-payroll-mcp": {
"command": "npx",
"args": [
"-y",
"malaysia-payroll-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"malaysia-payroll-mcp": {
"command": "npx",
"args": [
"-y",
"malaysia-payroll-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add malaysia-payroll-mcp -- npx -y malaysia-payroll-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.malaysia-payroll-mcp]
command = "npx"
args = ["-y", "malaysia-payroll-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"malaysia-payroll-mcp": {
"command": "npx",
"args": [
"-y",
"malaysia-payroll-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "malaysia-payroll-mcp": { "command": "npx", "args": [ "-y", "malaysia-payroll-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "malaysia-payroll-mcp": { "command": "npx", "args": [ "-y", "malaysia-payroll-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "malaysia-payroll-mcp": { "command": "npx", "args": [ "-y", "malaysia-payroll-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "malaysia-payroll-mcp": { "command": "npx", "args": [ "-y", "malaysia-payroll-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Malaysia Payroll
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.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
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_payName suggests: changes
- One month's payslip with all deductions, net pay and employer contributions and total cost.
What it does
- 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
Pricing
Open source
Open source under MIT licence; no paid plan listed.
Malaysia Payroll 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.
