mcp-tung-shing
中国传统黄历 MCP 服务 | Chinese Traditional Almanac MCP Service
claude mcp add --transport stdio baranwang-mcp-tung-shing npx -y mcp-tung-shing@latest
How to use
This MCP server provides Chinese Almanac (Tong-Sheng) calculations and information. It supports converting between Gregorian and lunar calendars, providing daily auspicious/inauspicious guidance, hourly (shi chen) fortunes, and other traditional metaphysical elements such as 五行 and星宿. The primary tool exposed is get-tung-shing, which retrieves 黄历 data for a specified date range and can include hourly information. To use it, call the tool within your MCP configuration and pass parameters to tailor the results to your needs. The tool returns structured data about the chosen date(s) including宜忌 details, and can filter results by specific types of 宜 or 忌 if you need to narrow down the output.
Tools available:
- get-tung-shing: fetch 黄历 information for a given startDate; optionally includeHours for hourly fortunes; specify days to extend the date range; apply tabooFilters to filter宜忌 items by type (1 for 宜, 2 for 忌) and value to match specific items.
Example usage scenarios include:
- Retrieve today's黄历 with default settings.
- Retrieve the next 7 days with hourly information and filter to show only certain 宜忌 items.
- Retrieve data for a specific date range and inspect 农历 converted dates, 吉凶宜忌, and 时辰信息.
How to install
Prerequisites:
- Node.js (recommended: LTS, v14+)
- npm or pnpm
Installation steps:
- Ensure you have Node.js and npm installed. Verify:
node -v
npm -v
- In your MCP configuration, add the Tung-Shing server entry as shown in the README. You can also test directly using npx:
npx -y mcp-tung-shing@latest
This will fetch the latest mcp-tung-shing package and start the MCP server in your environment (as configured).
- If you’re managing MCP servers via a central config, place the following in your MCP config file under mcpServers:
{
"mcpServers": {
"tung-shing": {
"command": "npx",
"args": ["-y", "mcp-tung-shing@latest"]
}
}
}
- Start or reload your MCP service manager to pick up the new server configuration. The exact command depends on your MCP environment, but typically looks like:
# If your MCP manager exposes a start/reload command:
pm run mcp-start
- Test the endpoint by requesting data through your MCP client, using the get-tung-shing tool with parameters described in the README.
Additional notes
Tips and notes:
- The package name in the MCP config uses mcp-tung-shing; this aligns with the NPM package mcp-tung-shing published to npm.
- The default get-tung-shing operation returns one day of data; set days to fetch multiple days and includeHours to get hourly fortunes.
- If you plan to filter results, use tabooFilters with type 1 (宜) or 2 (忌) and specify the value(s) you want to include.
- When using npx to fetch the latest version, ensure your environment has network access to npm registry; network issues can prevent fetching the latest release.
- If you upgrade, verify compatibility with your MCP runtime and node version.
- If you encounter missing data for a given date, check for updates or issues in the upstream mcp-tung-shing package and consider pinning a specific version.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.
promptboard
The Shared Whiteboard for Your AI Agents via MCP. Paste screenshots, mark them up, and share with AI.