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

lich-viet-mcp

v0.1.0

Published

MCP server exposing the Vietnamese lunar calendar algorithm (Hồ Ngọc Đức / Meeus 1998) as tools for AI agents

Readme

lich-viet-mcp

MCP server exposing the Vietnamese lunar calendar algorithm (Hồ Ngọc Đức / Jean Meeus 1998 at UTC+7) as tools for AI agents.

Lets Claude Desktop, Copilot, and other MCP-compatible AI clients answer Vietnamese lunar-calendar questions deterministically instead of hallucinating. Backed by the same algorithm powering Lịch Việt PWA — validated across 51,135 consecutive days (1960–2099) with 0 errors.


Quick start — Claude Desktop

Add this to your Claude Desktop config:

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

{
  "mcpServers": {
    "lich-viet": {
      "command": "npx",
      "args": ["-y", "lich-viet-mcp"]
    }
  }
}

Restart Claude Desktop. You can now ask questions like:

  • "Convert 1 May 2026 to Vietnamese lunar date" → Claude calls solar_to_lunar → returns Rằm tháng Ba năm Bính Tuất.
  • "Is 1 May 2026 a Hoàng Đạo day?" → Claude calls check_hoang_dao.
  • "What Vietnamese holidays fall on 20 October 2026?" → Claude calls get_vn_holidays.

Tools

| Tool | Input | Output | |---|---|---| | solar_to_lunar | {day, month, year} | {ld, lm, ly, leap, validated} | | lunar_to_solar | {lunar_day, lunar_month, lunar_year, is_leap?} | {d, m, y, validated} or {error} | | get_can_chi_day | {day, month, year} | {canChi, validated} e.g. "Ất Hợi" | | get_can_chi_year | {year} | {canChi, validated} e.g. "Bính Tuất 🐶" | | check_hoang_dao | {day, month, year} | {isHoangDao, validated} | | get_vn_holidays | {day, month, year} | {holidays: [{name, type, src}], validated} |

validated field: true when the input year is within the algorithm's validated range (1960–2099). Values outside that range are still computed but flagged validated: false.


Examples

Solar → Lunar

Input:  { "day": 1, "month": 5, "year": 2026 }
Output: { "ld": 15, "lm": 3, "ly": 2026, "leap": false, "validated": true }

→ "1 May 2026" is Rằm tháng Ba năm 2026 (full moon of the 3rd lunar month).

Year zodiac

Input:  { "year": 2026 }
Output: { "canChi": "Bính Tuất 🐶", "validated": true }

→ 2026 is the Year of the Dog (Bính Tuất).

Vietnamese holidays

Input:  { "day": 20, "month": 10, "year": 2026 }
Output: {
  "holidays": [{ "name": "🌸 Phụ nữ Việt Nam", "type": "holiday", "src": "duong" }],
  "validated": true
}

Local development

git clone https://github.com/bao-vn/lich-viet-pwa.git
cd lich-viet-pwa/mcp-server
npm install
npm test       # smoke test all 6 tools
npm start      # start the MCP stdio server (stdin/stdout)

Inspect tools interactively with:

npx @modelcontextprotocol/inspector node index.js

Algorithm & accuracy

  • Source: Hồ Ngọc Đức port of Jean Meeus, Astronomical Algorithms (1998)
  • Timezone: UTC+7 (105°E, Vietnamese official)
  • Validated range: 1960–2099 (51,135 days, 0 errors vs. reference)
  • Out-of-range inputs: still computed, flagged validated: false in response

Same algorithm as Lịch Việt PWA — the authoritative implementation.


Links

  • PWA app: https://bao-vn.github.io/lich-viet-pwa/
  • Source (all of it): https://github.com/bao-vn/lich-viet-pwa
  • Business docs / PRD / ADRs: docs/business/
  • Issue tracker: https://github.com/bao-vn/lich-viet-pwa/issues

License

MIT · © bao-vn