npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@havahr/mcp-calculators

v0.2.0

Published

HavaHR MCP server for Malaysian statutory payroll calculators (EPF, SOCSO, EIS, PCB).

Downloads

62

Readme

@havahr/mcp-calculators

Local Model Context Protocol server for Malaysian statutory payroll math — EPF, SOCSO, EIS, PCB, and employer cost — using the same engine as the free calculators on havahr.com.

Public install guide: havahr.com/tools/malaysia-payroll-mcp

Estimates only — not official advice. Confirm with KWSP / PERKESO / LHDN or a payroll professional for filing.

What you get

| Tool | Purpose | |------|---------| | calculate_malaysia_payroll | Net pay + EPF/SOCSO/EIS/PCB + employer contributions | | calculate_epf | KWSP contributions | | calculate_socso | PERKESO Category 1/2 | | calculate_eis | SIP contributions + citizen/PR eligibility | | calculate_pcb | Monthly tax deduction (MTD) estimate | | calculate_employer_cost | Gross + employer statutory outlay | | calculate_overtime | EA 1955 overtime & public holiday pay (1.5×/2×/3×) with 45h/104h compliance checks | | calculate_leave_proration | Annual leave proration for mid-year joiners/leavers | | check_employment_act_coverage | Employment Act 1955 coverage check (RM4,000 threshold) | | calculate_hrd_corp_levy | HRD Corp (HRDF) levy — mandatory 1% or voluntary 0.5% |

Safety

  • No auth, workspace data, or network calls from calculator tools
  • Pure calculation (bundled HavaHR statutory tables)
  • Keep this package calculator-only — do not add authenticated ESS tools here

Requirements

  • Node.js 20+
  • An MCP host that supports local stdio servers (Cursor, Claude Desktop, Claude Code, ChatGPT desktop / Codex, VS Code, Windsurf, Zed, …)

Install (public)

Add to your host config:

{
  "mcpServers": {
    "havahr-calculators": {
      "command": "npx",
      "args": ["-y", "@havahr/mcp-calculators"]
    }
  }
}

ChatGPT desktop / Codex (~/.codex/config.toml):

[mcp_servers.havahr-calculators]
command = "npx"
args = ["-y", "@havahr/mcp-calculators"]
  • VS Code: use root key servers instead of mcpServers (.vscode/mcp.json).
  • Zed: use root key context_servers in settings.json.
  • Claude Code: claude mcp add --transport stdio havahr-calculators -- npx -y @havahr/mcp-calculators
  • Codex CLI: codex mcp add havahr-calculators -- npx -y @havahr/mcp-calculators (not chatgpt.com in the browser)

Restart the host after saving.

Run manually

npx -y @havahr/mcp-calculators

Logs go to stderr; stdout is reserved for MCP JSON-RPC.

Install (monorepo contributors)

cd /ABSOLUTE/PATH/TO/hava4
npm install
npm run build -w @havahr/mcp-calculators

Then point your host at packages/mcp-calculators/dist/index.js, or run:

npm start -w @havahr/mcp-calculators

Try it

Ask your host:

What is take-home pay for RM4,000 gross in Malaysia at age 43?

Sanity check: EPF employee ≈ RM440, employer ≈ RM520.

Related