Lunar Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Lunar Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
中文 | English
A Model Context Protocol (MCP) server for Chinese traditional calendar functions, built with Python 3.12 and lunar-python.
uvx bach-lunar-mcpThat's it! No installation, no virtual environment setup, no dependencies to manage. UVX will automatically download and run the server.
#### Cursor IDE
{
"mcpServers": {
"lunar-calendar": {
"command": "uvx",
"args": ["bach-lunar-mcp"]
}
}
}#### Claude Desktop
{
"mcpServers": {
"lunar-calendar": {
"command": "uvx",
"args": ["bach-lunar-mcp"]
}
}
}#### Cherry Studio
{
"mcpServers": {
"lunar-calendar": {
"command": "uvx",
"args": ["bach-lunar-mcp"]
}
}
}📦 PyPI Package: https://pypi.org/project/bach-lunar-mcp/ 📖 Quick Start Guide: QUICKSTART_UVX.md
🎋 BaZi Calculation - Calculate eight characters for fortune telling 📅 Calendar Conversion - Convert between solar and lunar calendars 🌙 Huangli Query - Chinese almanac with daily recommendations 🔮 Daily Fortune - Daily fortune and recommendations ⭐ Solar Terms - Query 24 solar terms for any year 🧮 Wu Xing Analysis - Five elements analysis from birth info
git clone <repository-url>
cd lunar-mcp-servercurl -LsSf https://astral.sh/uv/install.sh | shuv syncThis will automatically:
Configure in your MCP client (e.g., Claude Desktop):
{
"mcpServers": {
"lunar-calendar": {
"command": "uv",
"args": ["run", "python", "-m", "src.server"],
"cwd": "/path/to/lunar-mcp-server"
}
}
}You can also use the helper functions directly:
# Run with uv
uv run python -c "
from src.utils import LunarHelper
result = LunarHelper.solar_to_lunar(2024, 1, 1)
print(result['lunar_date_chinese']) # 二〇二三年冬月二十
"
# Calculate BaZi
uv run python -c "
from src.utils import LunarHelper
result = LunarHelper.get_bazi(1990, 1, 1, 8, 30)
print(result['bazi_string']) # 己巳 丙子 丙寅 壬辰
"Calculate BaZi (Eight Characters) for fortune telling.
Parameters:
birth_date: Birth date in YYYY-MM-DD formatbirth_time: Birth time in HH:MM formatExample:
{
"birth_date": "1990-01-01",
"birth_time": "08:30"
}Convert between solar and lunar calendars.
Parameters:
date: Date in YYYY-MM-DD formatconvert_to: "lunar" or "solar"is_leap: Is leap month (optional)Example:
{
"date": "2024-01-01",
"convert_to": "lunar"
}Query Chinese almanac information for a specific date.
Parameters:
date: Date in YYYY-MM-DD formatExample:
{
"date": "2024-01-01"
}Get daily fortune and recommendations.
Parameters:
date: Date in YYYY-MM-DD formatExample:
{
"date": "2024-01-01"
}Query 24 solar terms for a specific year.
Parameters:
year: Year to queryExample:
{
"year": 2024
}Analyze Wu Xing (Five Elements) from birth information.
Parameters:
birth_date: Birth date in YYYY-MM-DD formatbirth_time: Birth time in HH:MM formatExample:
{
"birth_date": "1990-01-01",
"birth_time": "08:30"
}# Quick functionality test
uv run python quick_test.py
# Run MCP server
uv run python run_server.py
# Test specific functionality
uv run python -c "from src.utils import LunarHelper; print('✅ Import works!')"
# Install dev dependencies (optional)
uv add --dev pytest black mypy# Format code
black src/
isort src/
# Type checking
mypy src/This project is licensed under the MIT License - see the LICENSE file for details.
Note: This is a traditional calendar tool for educational and entertainment purposes. Please use responsibly.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.