本项目是一个 MCP 服务器,可提供农历日期和凶吉查询功能,为用户带来便捷的农历信息服务。
此服务器能够提供农历日期和凶吉查询服务,通过特定的接口即可获取相关信息。
get_lunar
- 获取指定日期的农历信息get_taboo
- 查询当日宜忌事项接入配置如下:
{
"mcpServers": {
"lunar": {
"command": "tnpx",
"args": [
"-y",
"lunar-calendar-mcp"
]
}
}
}
本项目采用的技术栈如下:
属性 | 详情 |
---|---|
模型类型 | Model Context Protocol (MCP) |
训练数据 | 无 |
本项目采用 MIT License 开源协议。
欢迎提交 Issue 和 PR!
可参考:https://github.com/f/mcptools
brew tap f/mcptools
brew install mcp
npm run build
mcp tools node dist/index.js
返回:
get_lunar([date:str])
获取当天的农历日期
get_taboo([date:str])
获取当天的凶吉
mcp call get_lunar --params '{"date":"2025-04-10"}' node dist/index.jsg
返回:
农历乙巳年二月初五