Time & Astronomy
Current time by timezone, astronomy events, and moon phases
我該用這個嗎
品質與安全性
A
根據工具定義與協定合規性的自動化分析。
上下文成本
~397Token(工具定義)
~978 B典型回應大小
極小的注意力影響(128k 上下文的 0.31%)
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"time": {
"url": "https://time.memoryapi.org/mcp"
}
}
}遠端端點
https://time.memoryapi.org/mcpstreamable-http它能做什麼
工具清單
工具(3)
🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢get_current_time(timezone, format)
Get the current time in any timezone. Returns local datetime, UTC datetime, unix epoch, UTC offset, DST status, day of week, day of year, and week number.
輸入結構描述
{
"type": "object",
"properties": {
"timezone": {
"type": "string",
"description": "IANA timezone name (e.g. America/New_York, Europe/London, Asia/Tokyo). Defaults to UTC.",
"default": "UTC"
},
"format": {
"type": "string",
"description": "Response format: iso (datetime only), unix (epoch only), both (default)",
"default": "both"
}
}
}🟢get_astronomy(lat, lon, date, tz)
Get sunrise, sunset, and twilight times for any location using US Naval Observatory data. Also returns moonrise and moonset.
輸入結構描述
{
"type": "object",
"properties": {
"lat": {
"type": "number",
"description": "Latitude (default: 40.7128 — New York City)",
"default": 40.7128
},
"lon": {
"type": "number",
"description": "Longitude (default: -74.0060 — New York City)",
"default": -74.006
},
"date": {
"type": "string",
"description": "Date in YYYY-MM-DD format (default: today)"
},
"tz": {
"type": "number",
"description": "UTC offset in hours (e.g. -5 for EST, 1 for CET). Default: 0 (UTC)",
"default": 0
}
}
}🟢get_moon_phases(date, count)
Get upcoming moon phases (New Moon, First Quarter, Full Moon, Last Quarter) and current moon illumination percentage from the US Naval Observatory.
輸入結構描述
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Start date in YYYY-MM-DD format (default: today)"
},
"count": {
"type": "number",
"description": "Number of phases to return (default: 4, max: 99)",
"default": 4
}
}
}建議的提示詞
retrieve_data
Get details about [item] from Time & Astronomy
預期的工具:
get_current_timefetch_info
Fetch [information type] using Time & Astronomy
預期的工具:
get_current_time社群
證據
近期觀測
已驗證未記錄版本3 個工具
已驗證未記錄版本3 個工具