{"_id":"@adia1223/mcp-datetime-tools","_rev":"2-36d808c183f5f1eb484db25efc2a08b8","name":"@adia1223/mcp-datetime-tools","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@adia1223/mcp-datetime-tools","version":"1.0.0","keywords":["mcp","modelcontextprotocol","datetime","time","date","timestamp","timezone","ai","llm"],"author":{"name":"adia1223"},"license":"MIT","_id":"@adia1223/mcp-datetime-tools@1.0.0","maintainers":[{"name":"adia1223","email":"24707297@qq.com"}],"bin":{"mcp-datetime-tools":"build/index.js"},"dist":{"shasum":"0d0e177187f6c966bfee860ef580a0e325026044","tarball":"https://registry.npmjs.org/@adia1223/mcp-datetime-tools/-/mcp-datetime-tools-1.0.0.tgz","fileCount":7,"integrity":"sha512-XM1xDYCGC4HUSSBDyUQvuO+okn/CZF5r5by8jX+3V0ltTckV1RE68cm49rXwBdwy/9xyXf2fTwle59mFhNiakg==","signatures":[{"sig":"MEQCIGLUdh9R+hnn6e6Waf9V6/E1OXl77qTnE61bCJQtPWAdAiBRXBFzJ6WX2G4JP0wRgjbM95omgLU4r2oLTocNCDNDWA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25902},"main":"./build/index.js","type":"module","types":"./build/index.d.ts","engines":{"node":">=18.0.0"},"scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","start":"node build/index.js","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"adia1223","email":"24707297@qq.com"},"_npmVersion":"10.8.2","description":"MCP server providing datetime utilities - get current time, format dates, calculate time differences","directories":{},"_nodeVersion":"20.18.1","dependencies":{"zod":"^3.23.8","@modelcontextprotocol/sdk":"^1.23.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24"},"_npmOperationalInternal":{"tmp":"tmp/mcp-datetime-tools_1.0.0_1764232364454_0.9957504378755988","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@adia1223/mcp-datetime-tools","version":"1.1.0","description":"MCP server providing datetime utilities - get current time, format dates, calculate time differences","type":"module","bin":{"mcp-datetime-tools":"build/index.js"},"main":"./build/index.js","types":"./build/index.d.ts","scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","start":"node build/index.js","prepare":"npm run build","watch":"tsc --watch"},"keywords":["mcp","modelcontextprotocol","datetime","time","date","timestamp","timezone","ai","llm"],"author":{"name":"adia1223"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/adia1223/mcp-datetime-tools.git"},"homepage":"https://github.com/adia1223/mcp-datetime-tools#readme","bugs":{"url":"https://github.com/adia1223/mcp-datetime-tools/issues"},"dependencies":{"@modelcontextprotocol/sdk":"^1.23.0","zod":"^3.23.8"},"devDependencies":{"@types/node":"^20.11.24","typescript":"^5.3.3"},"engines":{"node":">=18.0.0"},"_id":"@adia1223/mcp-datetime-tools@1.1.0","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-a0EZR34qTS1DboJPSUeeOgs8jcXgtsm+AJVhsHP9EBFOPm+vxcazxJ8tqDGt4khxI7IX8FwiokWq0o+N8Ft2Qg==","shasum":"b3addbf6e52653b56d91f3d70e889259861a6d31","tarball":"https://registry.npmjs.org/@adia1223/mcp-datetime-tools/-/mcp-datetime-tools-1.1.0.tgz","fileCount":7,"unpackedSize":26215,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG3Nmpjt5aflpwge24cI9qrz8lQINU1l8zym/ahfuawZAiA/UPS8vfu8D/rbTNtr1C5QfDE+nvBDTbxpmdhBXrZIKg=="}]},"_npmUser":{"name":"adia1223","email":"24707297@qq.com"},"directories":{},"maintainers":[{"name":"adia1223","email":"24707297@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-datetime-tools_1.1.0_1764551575345_0.3023059057143256"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-27T08:32:44.393Z","modified":"2025-12-01T01:12:55.772Z","1.0.0":"2025-11-27T08:32:44.636Z","1.1.0":"2025-12-01T01:12:55.546Z"},"author":{"name":"adia1223"},"license":"MIT","keywords":["mcp","modelcontextprotocol","datetime","time","date","timestamp","timezone","ai","llm"],"description":"MCP server providing datetime utilities - get current time, format dates, calculate time differences","maintainers":[{"name":"adia1223","email":"24707297@qq.com"}],"readme":"# MCP DateTime Tools\n\n一个简单高效的 MCP 服务器，提供日期时间相关的实用工具。帮助 AI 获取当前时间、格式化日期、计算时间差等。\n\n## 为什么需要这个工具？\n\nAI 模型不知道\"现在\"是什么时候。这个 MCP 服务器让 AI 能够：\n- 获取当前准确时间\n- 进行时间计算和转换\n- 处理不同时区的时间\n\n## 工具列表\n\n| 工具 | 描述 |\n|------|------|\n| `get_current_time` | 获取当前时间（时间戳 + 格式化字符串） |\n| `format_date` | 格式化日期为指定格式 |\n| `time_diff` | 计算两个时间之间的差值 |\n| `add_time` | 对时间进行加减运算 |\n| `get_timestamp` | 获取时间戳（秒/毫秒） |\n| `parse_timestamp` | 将时间戳解析为日期时间 |\n\n## 安装\n\n```bash\nnpx -y @adia1223/mcp-datetime-tools\n```\n\n## 配置\n\n在 MCP 配置文件中添加：\n\n```json\n{\n  \"mcpServers\": {\n    \"datetime-tools\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@adia1223/mcp-datetime-tools\"]\n    }\n  }\n}\n```\n\n## 使用示例\n\n### 获取当前时间\n```\n工具: get_current_time\n参数: { \"timezone\": \"Asia/Shanghai\" }\n```\n\n### 格式化日期\n```\n工具: format_date\n参数: { \"date\": \"2024-12-25\", \"format\": \"relative\" }\n输出: \"28天后\"\n```\n\n### 计算时间差\n```\n工具: time_diff\n参数: { \"start\": \"2024-01-01\", \"end\": \"2024-12-31\" }\n```\n\n### 时间加减\n```\n工具: add_time\n参数: { \"days\": 7, \"hours\": 3 }\n输出: 当前时间 + 7天3小时\n```\n\n## 支持的时区\n\n使用 IANA 时区名称，例如：\n- `Asia/Shanghai` - 中国\n- `America/New_York` - 美东\n- `Europe/London` - 伦敦\n- `Asia/Tokyo` - 东京\n\n## License\n\nMIT\n","readmeFilename":"README.md","homepage":"https://github.com/adia1223/mcp-datetime-tools#readme","repository":{"type":"git","url":"git+https://github.com/adia1223/mcp-datetime-tools.git"},"bugs":{"url":"https://github.com/adia1223/mcp-datetime-tools/issues"}}