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

@catlabtech/mycal-mcp-server

v0.1.1

Published

MCP (Model Context Protocol) server exposing the Malaysia Calendar API as 12 tools for Claude, ChatGPT, and other AI agents

Downloads

209

Readme

@catlabtech/mycal-mcp-server

MCP (Model Context Protocol) server exposing the Malaysia Calendar API as 12 ready-to-use tools for Claude, ChatGPT, and other AI agents.

Data sourced from the official Malaysian government gazette (JPM BKPP), JAKIM, KPM, and MPM.

Why

LLMs are notoriously bad at Malaysia-specific calendar questions:

  • They get Islamic holidays wrong (incorrect Hijri → Gregorian mapping)
  • They don't know about cuti peristiwa announced after their training cutoff
  • They confuse state-specific vs federal holidays
  • They default to Sat–Sun weekends — wrong for Kedah, Kelantan, Terengganu (Fri–Sat)

Drop this MCP server into your AI client and all those questions get answered from the live gazette-backed API instead of hallucinated.

Setup with Claude Desktop

Edit your Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Add (or merge into the existing mcpServers block):

{
  "mcpServers": {
    "malaysia-calendar": {
      "command": "npx",
      "args": ["-y", "@catlabtech/mycal-mcp-server"]
    }
  }
}

Completely quit Claude Desktop and reopen. Test with:

"Is March 21, 2026 a public holiday in Selangor?" "What are the long weekends for KL in 2026?"

Setup with Claude Code

claude mcp add malaysia-calendar --scope user -- npx -y @catlabtech/mycal-mcp-server

Or commit to your repo's .mcp.json for team-wide setup. Verify with /mcp in a Claude Code session.

Available tools (12)

| Tool | What it does | |------|-------------| | get_malaysia_holidays | List holidays (filter by year, state, type, status, month) | | check_malaysia_holiday | Is this date a holiday, weekend, working day, or school day? | | next_malaysia_holiday | Next N upcoming holidays | | malaysia_business_days | Count working days in range, or add N business days to a date | | malaysia_long_weekends | All 3+ day non-working stretches in the year | | list_malaysia_states | 16 states + 3 FTs with weekend config | | resolve_malaysia_state | Alias (kl, jb, n9) → canonical code | | malaysia_holiday_changes | Recent additions / changes — useful for cuti peristiwa tracking | | malaysia_school_terms | KPM school term dates + school-day counts | | malaysia_school_holidays | Cuti penggal, pertengahan, akhir, perayaan | | malaysia_exams | SPM, STPM, MUET, PT3 schedules | | malaysia_is_school_day | Is this date a school day for this state/group? |

How it works

Your AI client                MyCal MCP server            Calendar API
(Claude, etc.)      ──────▶   (local npx process)  ────▶  (Cloudflare Workers)
            stdio JSON-RPC                           HTTPS

The server runs locally via npx. It speaks MCP over stdio on one side and HTTPS to the API on the other. Nothing to host yourself. No API key needed.

Troubleshooting

"Command not found: npx" — install Node 18+ from nodejs.org.

"Server disconnected" / MCP not responding — check node -v is ≥ 18. Older Node versions lack ESM/fetch features the server needs.

First call is slownpx downloads the package on first use. Subsequent calls are fast.

Corporate network blocked — the server needs outbound HTTPS to mycal-api.huijun00100101.workers.dev.

Documentation

Related packages

License

MIT — © catlab.tech

Issues and contributions: github.com/Junhui20/malaysia-calendar-api