{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_u6ayytbu6ura","handle":"china-festival-mcp","url":"https://wellknown.network/agents/china-festival-mcp","links":{"self":"https://wellknown.network/agents/china-festival-mcp/record.json","html":"https://wellknown.network/agents/china-festival-mcp","markdown":"https://wellknown.network/agents/china-festival-mcp/record.md","api":"https://wellknown.network/api/v1/agents/china-festival-mcp","status":"https://wellknown.network/api/v1/agents/china-festival-mcp/status","claim":"https://wellknown.network/agents/china-festival-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/china-festival-mcp/claim.json","badge":"https://wellknown.network/agents/china-festival-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/china-festival-mcp/history","tools":"https://wellknown.network/api/v1/agents/china-festival-mcp/tools"},"ard":{"identifier":"urn:air::server:china-festival-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"china-festival-mcp","summary":"中国节假日和农历转换MCP服务器","description":"# 中国节假日MCP服务器\n\n一个基于模型上下文协议（MCP）的中国节假日和农历信息服务器，为AI助手提供准确的法定节假日、调休安排、中国传统节日、农历转换、二十四节气和八字计算功能。西方节日都是固定公历日期，不需要查询工具。\n\n## 🌟 功能特性\n\n- **节假日查询**: 查询中国法定节假日、传统节日和调休安排\n- **月历查询**: 查询指定月份完整日历，包含节假日和调休安排\n- **农历转换**: 公历与农历日期相互转换\n- **农历信息**: 获取详细的农历日期描述，包括生肖、干支等\n- **二十四节气**: 查询二十四节气信息和季节划分\n- **八字计算**: 根据出生日期时间计算四柱八字和五行属性\n- **FastMCP架构**: 基于官方推荐的FastMCP框架，提供更好的性能和稳定性\n\n## 🏗️ 技术架构\n\n本项目基于官方推荐的FastMCP框架开发，具有以下特性：\n\n- **简化的工具注册**: 使用 `@mcp.tool()` 装饰器\n- **自动类型验证**: 自动处理参数验证和类型转换\n- **标准化接口**: 完全符合MCP协议最佳实践\n\n## 📦 安装\n\n### 环境要求\n\n- Python 3.8+\n- 支持MCP协议的AI客户端（如Claude Desktop）\n\n### 使用uvx安装（推荐）\n\n```bash\n# 直接从PyPI安装并运行\nuvx china-festival-mcp\n```\n\n### 本地开发安装\n\n```bash\n# 克隆项目\ngit clone https://github.com/your-username/china-festival-mcp.git\ncd china-festival-mcp\n\n# 使用uvx运行（会自动安装依赖）\nuvx --from . python -m src.server_fastmcp\n```\n\n## 🚀 使用方法\n\n```bash\n# 从PyPI直接运行\nuvx china-festival-mcp\n\n# 或本地开发运行\nuvx --from . python -m src.server_fastmcp\n```\n\n## ⚙️ MCP客户端配置\n\n### Claude Desktop配置\n\n编辑 `~/Library/Application Support/Claude/claude_desktop_config.json`：\n\n#### 从PyPI安装（推荐）\n\n```json\n{\n  \"mcpServers\": {\n    \"china-festival-mcp\": {\n      \"command\": \"uvx\",\n      \"args\": [\"china-festival-mcp\"]\n    }\n  }\n}\n```\n\n#### 本地开发\n\n```json\n{\n  \"mcpServers\": {\n    \"china-festival-mcp\": {\n      \"command\": \"uvx\",\n      \"args\": [\"--from\", \".\", \"python\", \"-m\", \"src.server_fastmcp\"],\n      \"cwd\": \"/path/to/china-festival-mcp\"\n    }\n  }\n}\n```\n\n### 其他MCP客户端\n\n对于其他支持MCP协议的客户端，使用相同的uvx配置方式：\n\n```json\n{\n  \"mcpServers\": {\n    \"china-festival-mcp\": {\n      \"command\": \"uvx\",\n      \"args\": [\"china-festival-mcp\"]\n    }\n  }\n}\n```\n\n## 📚 API文档\n\n### 节假日工具\n\n#### `holiday_info`\n查询指定日期的节假日信息，包含是否为节假日的判断\n\n**返回:**\n```json\n{\n  \"date\": \"2024-01-01\",\n  \"name\": \"元旦\",\n  \"type\": \"holiday\",\n  \"is_holiday\": true,\n  \"is_work_day\": false,\n  \"note\": \"法定节假日\",\n  \"weekday_name_en\": \"Monday\"\n}\n```\n\n#### `next_holiday`\n获取下一个节假日\n\n**返回:**\n```json\n{\n  \"name\": \"春节\",\n  \"date\": \"2024-02-10\",\n  \"days_until\": 40,\n  \"note\": \"法定节假日\",\n  \"weekday_name_en\": \"Saturday\"\n}\n``…","publisher":null,"homepage":"https://github.com/your-username/china-festival-mcp#readme","repository":"https://github.com/your-username/china-festival-mcp#readme","version":"0.1.14","license":"Apache-2.0","protocols":["mcp"],"tags":["mcp","china","festival","holiday","lunar","calendar","solar-terms"],"pricing":null,"endpoints":[{"url":"pypi:china-festival-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"productivity.calendar","name":"Calendar & Scheduling","confidence":1,"provenance":"declared"},{"slug":"dev.version-control","name":"Version Control","confidence":0.745,"provenance":"derived"}],"categories":["dev","productivity"],"language":"fr"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"china-festival-mcp","registry":"pypi","observedAt":"2026-11-09T01:27:31.181Z","publishedAt":"2026-08-04T12:51:10.572121Z","latestVersion":"0.1.14"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"china-festival-mcp","url":"https://pypi.org/project/china-festival-mcp/","firstSeenAt":"2026-09-09T11:30:17.929Z","fetchedAt":"2026-11-09T01:26:37.552Z","normalizedAt":"2026-11-09T01:26:37.552Z"}]},"firstSeenAt":"2026-09-09T11:30:17.929Z","updatedAt":"2026-11-09T01:27:31.181Z"}