# mycal [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/Junhui20/malaysia-calendar-api  
**GitHub Stars:** 3  
**npm Downloads (last month):** 527  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mycal

## Description
Malaysia public holidays, school terms, business days & a leave optimizer (13 tools).

## Tools
Capabilities this server exposes over MCP:

- **get_malaysia_holidays** — Get Malaysia public holidays. Covers all 16 regions (13 states + 3 federal territories) including Islamic holidays with tentative/confirmed status.
- **check_malaysia_holiday** — Check if a specific date is a public holiday, weekend, or working day in Malaysia. Returns holiday details, school day status. Use when user asks 'is X a holiday?', 'do I work on X?'.
- **next_malaysia_holiday** — Find the next upcoming public holiday in Malaysia. Use when user asks 'when is the next holiday?'.
- **malaysia_business_days** — Count business/working days between two dates for a Malaysian state. Excludes weekends and public holidays.
- **malaysia_long_weekends** — Find all long weekends (3+ consecutive non-working days) in Malaysia for a given year.
- **malaysia_leave_optimizer** — Find the most efficient annual-leave days to take to maximise consecutive days off in Malaysia (e.g. 'take 2 days → get 5 off'). Ideal for planning trips around public holidays and weekends, per state.
- **list_malaysia_states** — List all 16 Malaysian regions (13 states + 3 federal territories) with weekend configurations and group assignments.
- **resolve_malaysia_state** — Resolve a state name or alias (e.g. 'KL', 'Penang', 'JB') to the canonical state code.
- **malaysia_holiday_changes** — Get recent changes to Malaysia holiday data (new holidays, confirmations, ad-hoc announcements).
- **malaysia_school_terms** — Get Malaysia school term dates and day counts. Group A = Kedah/Kelantan/Terengganu, Group B = all other states.
- **malaysia_school_holidays** — Get Malaysia school holidays including cuti penggal, mid-year break, year-end break, and KPM bonus holidays.
- **malaysia_exams** — Get Malaysia public exam schedule — SPM, STPM, MUET, PT3. Includes results announcement dates.
- **malaysia_is_school_day** — Check if a date is a school day in Malaysia. Accepts state (auto-resolves to group) or group directly. Combines public holidays, school holidays, and weekend status.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mycal": {
    "command": "npx",
    "args": ["@catlabtech/mycal-mcp-server"]
  }
}
```

## Documentation

## What mycal does

mycal provides MCP tools for querying Malaysia’s public and school calendars through an AI assistant. Holiday data covers 13 states and three federal territories, with regional differences, Islamic holiday status, and state-specific weekend rules. The calendar logic distinguishes Kumpulan A states—Kedah, Kelantan, and Terengganu, which use Friday–Saturday weekends—from Kumpulan B regions, which generally use Saturday–Sunday weekends.

The tool set also covers school terms, school holidays, public examination schedules, business-day calculations, and annual-leave planning. Holiday results can include confirmed or tentative status, while date checks can identify holidays, weekends, working days, and school days. Data is sourced from government materials including the official gazette, JAKIM, KPM, and MPM.

## How it works

The MCP server exposes 13 named tools to compatible AI clients. An assistant can request holiday lists by year, state, type, or other supported filters; check a particular date; or find the next upcoming holiday. State names and aliases such as KL, Penang, and JB can be resolved to canonical state codes before running regional calculations.

Business-day calculations exclude weekends and public holidays for the selected state. The long-weekend tool finds breaks of at least three consecutive non-working days, while the leave optimizer suggests annual-leave dates that produce longer consecutive breaks. School-day checks combine weekend status, public holidays, and school holidays, using either a state or a school-calendar group.

## Setup and configuration

Install the MCP package from npm and launch it with `npx`:

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

The configuration is documented for Claude Desktop and Claude Code. The package is also intended for MCP-compatible assistants. No API key or environment variable is needed for the shown local launch configuration.

## Tools and capabilities

- `get_malaysia_holidays` retrieves public holidays for Malaysia, with year, region, type, and status information.
- `check_malaysia_holiday` classifies a date as a holiday, weekend, or working day and can include school-day status.
- `next_malaysia_holiday` finds the next holiday for a selected region.
- `malaysia_business_days` counts working days between two dates.
- `malaysia_long_weekends` identifies three-day-or-longer breaks.
- `malaysia_leave_optimizer` recommends leave dates for longer consecutive breaks.
- `list_malaysia_states` returns regions and weekend configurations.
- `resolve_malaysia_state` maps common aliases to canonical state codes.
- `malaysia_holiday_changes` reports recent holiday-data changes.
- `malaysia_school_terms` and `malaysia_school_holidays` return term and break schedules.
- `malaysia_exams` provides SPM, STPM, MUET, and PT3 schedules, including result dates.
- `malaysia_is_school_day` checks whether a date is a school day for a state or calendar group.

## Limitations and notes

Islamic holidays may be marked tentative or confirmed. School calendars use Group A and Group B classifications rather than an independent timetable for every state. Johor’s historical weekend switch is tracked in the calendar logic. The project also publishes a REST API, TypeScript packages, iCal feeds, CSV exports, and multilingual holiday names, but those are separate interfaces from the MCP tool set.

_Full upstream README: https://allmcps.com/mcp/mycal/readme_

