«بروتوكول سياق النموذج» (MCP) يتيح للمساعد الذكي استدعاء أدوات على خادم. يشغّل ClockCrest خادم MCP عاماً فيه 16 أداة للقراءة فقط — وهي عمليات واجهة JSON نفسها وينفّذها الكود نفسه — فيستعلم المساعد عن الأوقات والتواريخ والعطل بدل أن يخمّنها.
نقطة الوصول
العنوان: https://clockcrest.com/mcp — بطريقة HTTP POST فقط.
النقل: Streamable HTTP وبلا حالة. كل طلب POST يُجاب برد JSON-RPC واحد من نوع application/json، فلا بثّ SSE ولا معرّف جلسة.
المصادقة: لا توجد. كل أداة للقراءة فقط وتعيد بيانات مرجعية عامة أو نتيجة حساب، فليس هناك ما يحميه رمز دخول.
دعم CORS مفتوح، فتستطيع العملاء العاملة في المتصفح الاتصال.
إصدارات البروتوكول
يعلن الخادم هذه الإصدارات في ردّه على server/discover (التُقط بتاريخ 2026-12-01): 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26.
2026-07-28: بلا مصافحة. يحمل كل طلب إصدار البروتوكول في params._meta وفي الترويستين MCP-Protocol-Version و Mcp-Method (ومعهما Mcp-Name في tools/call)، وتُطابَق مع محتوى الطلب. الطلب server/discover مدعوم.
2025-11-25, 2025-06-18, 2025-03-26: مصافحة initialize ثم طلبات عادية. لا يُصدَر معرّف جلسة.
ربط عميل
في أي عميل MCP يدعم الخوادم البعيدة، أضِف خادماً من نوع «HTTP» (ويسمّى أيضاً «Streamable HTTP») بالعنوان أعلاه ومن دون مصادقة. ومن سطر أوامر Claude Code:
claude mcp add --transport http clockcrest https://clockcrest.com/mcp
وتقرأ عملاء كثيرة مدخلة JSON بهذا الشكل (يختلف اسم المفتاح واسم الملف من عميل إلى آخر):
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2025-11-25",
"capabilities": {
"tools": {}
},
"serverInfo": {
"name": "clockcrest",
"title": "ClockCrest time tools",
"version": "1.1.0"
},
"instructions": "Time, date, calendar, holiday, astronomy, weather and market-hours tools from clockcrest.com. Public and read-only: no authentication. Zones are IANA names (Europe/Paris); countries are ISO 3166-1 alpha-2 codes (FR); dates are YYYY-MM-DD; coordinates are decimal degrees. Use find_timezone or search_city to turn a place name into a zone and coordinates. Holiday data covers 2025–2028 (source: Nager.Date); calculated prayer times and Hijri dates can differ from local announcements, exchange holidays are not modelled, and get_weather forwards rounded coordinates to MET Norway (credit \"Weather data from MET Norway\") — every result carries its source and notes."
}
}
ثم استدعاء أداة. تحمل النتيجة البيانات مرتين: في structuredContent، وبالصيغة نفسها نصاً في خانة text.
المعاملات الخاطئة لأداة تُعدّ خطأ أداة لا خطأ بروتوكول: ينجح الاستدعاء مع isError: true ومع كائن الخطأ نفسه المستخدم في الواجهة نصاً، ليقرأه النموذج ويصحّح نفسه.
{
"jsonrpc": "2.0",
"id": 4,
"result": {
"content": [
{
"type": "text",
"text": "{\"error\":{\"code\":\"invalid_timezone\",\"message\":\"Unknown time zone in \\\"tz\\\". Use an IANA name such as Europe/Paris.\"}}"
}
],
"isError": true
}
}
أما مشكلات البروتوكول فتستخدم رموز أخطاء JSON-RPC:
-32700 — محتوى الطلب ليس JSON صالحاً
-32600 — ليس طلب JSON-RPC 2.0، أو دفعة طلبات، أو طريقة أو نوع محتوى أو مصدر خاطئ، أو محتوى أكبر من المسموح
-32601 — طريقة غير معروفة
-32602 — معاملات غير صالحة، أو اسم أداة غير معروف
-32603 — خطأ داخلي
-32020 — ترويسة بروتوكول ناقصة أو لا تطابق محتوى الطلب
-32022 — إصدار بروتوكول غير مدعوم
الأدوات
الأدوات الـ16 بالترتيب الذي يعيده tools/list. الوصف هو النص الإنجليزي الذي يصل إلى النموذج. كل أداة موسومة بأنها للقراءة فقط، وأن تكرارها لا يغيّر شيئاً، وأنها لا تتصل بأنظمة خارجية.
get_current_time
الوقت الحالي في منطقة زمنية
Current date and time in an IANA time zone, with its UTC offset, abbreviation, whether daylight saving time is in effect, and the next offset change. Use find_timezone first if you only have a city or country name.
Converts a wall-clock time from one IANA time zone to another. Says explicitly how a non-existent (daylight-saving gap) or repeated (overlap) time was resolved.
Finds the IANA time zone of a city or country from its name (English, Arabic or local spelling) and returns the current local time there. Countries with several zones list each zone with its largest cities.
{
"type": "object",
"properties": {
"q": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "City or country name (any language the index knows, e.g. Cairo, القاهرة, Le Caire) or an ISO country code"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"description": "Maximum number of city matches (1–10). Default 5.",
"default": 5
}
},
"required": [
"q"
],
"additionalProperties": false
}
{
"query": "Kathmandu",
"at": "2026-12-01T13:46:27Z",
"countries": [],
"cities": [
{
"name": "Kathmandu",
"nameAr": "كاتماندو",
"alternateNames": ["كاتماندو", "काठमाडौं", "Katmandou", "Katmandú", "Катманду", "加德滿都"],
"country": "NP",
"countryName": "Nepal",
"timeZone": "Asia/Kathmandu",
"lat": 27.7,
"lon": 85.32,
"population": 1442271,
"slug": "kathmandu",
"url": "https://clockcrest.com/time/kathmandu/",
"utcOffset": "+05:45",
"local": "2026-12-01T19:31:27"
}
],
"notes": [
"A country can span several time zones: each one is listed with its largest cities. City matches are ordered by relevance, then population.",
"The index holds GeoNames populated places of 15,000+ people (about 34,000 cities). Smaller places are not in it.",
// … 1 more
],
"source": "GeoNames",
"sourceUrl": "https://www.geonames.org",
"license": "CC BY 4.0",
"lastUpdated": "2026-11-30",
"timeZoneSource": "IANA tz database (runtime Intl)"
}
مختصر: القوائم الطويلة تعرض عنصرها الأول ثم سطراً بالشكل «// … N more».
search_city
البحث عن المدن بالاسم
Searches about 34,000 world cities by name (any case, accents optional, Arabic and local names understood) and returns each match's country, IANA time zone, coordinates and population. Use the coordinates and zone with get_sunrise_sunset or get_prayer_times.
مختصر: القوائم الطويلة تعرض عنصرها الأول ثم سطراً بالشكل «// … N more».
calculate_business_days
عدّ أيام العمل بين تاريخين
Business days between two dates (both inclusive) in a country, excluding its weekend days and nationwide public holidays. Lists the holidays that were excluded. Holiday data covers 2025–2028.
Finds the date that is N business days after (or, with a negative N, before) a start date in a country, skipping its weekend days and nationwide public holidays. Holiday data covers 2025–2028; a calculation that leaves those years is refused rather than guessed.
{
"country": "EG",
"countryName": "Egypt",
"start": "2026-12-30",
"startWeekday": "Wednesday",
"startIsBusinessDay": true,
"days": 5,
"result": "2027-01-06",
"resultWeekday": "Wednesday",
"calendarDays": 7,
"weekend": ["Friday", "Saturday"],
"holidaysSkipped": [],
"rules": "Weekend days and nationwide public holidays are not business days; regional holidays are treated as business days. The start date itself is not counted: the result is the 5 business days after it.",
"notes": ["The weekend used for EG is the one documented for that country."],
"source": "Nager.Date",
"sourceUrl": "https://date.nager.at",
"lastUpdated": "2026-11-30",
"dataYears": [2025, 2026, 2027, 2028]
}
get_calendar
تقويم شهر مع أسابيع ISO وعطلة نهاية الأسبوع والعطل
A month as a grid of ISO weeks (Monday first) with ISO week numbers; with a country, its weekend days and public holidays are marked and the business days of the month are counted.
{
"year": 2026,
"month": 12,
"monthName": "December",
"country": "FR",
"countryName": "France",
"weekStart": "Monday",
"weekend": ["Sunday", "Saturday"],
"daysInMonth": 31,
"businessDays": 22,
"weeks": [
{
"isoWeek": 49,
"isoWeekYear": 2026,
"days": [
null,
// … 6 more
]
},
// … 4 more
],
"holidays": [
{
"date": "2026-12-25",
"name": "Christmas Day",
"localName": "Noël",
"nationwide": true,
"types": ["Public"]
}
],
"notes": [
"Rows are ISO 8601 weeks (Monday to Sunday); null cells pad the first and last week. Week 1 is the week that contains the first Thursday of the year.",
// … 2 more
],
"source": "Nager.Date",
"sourceUrl": "https://date.nager.at",
"dataYears": [2025, 2026, 2027, 2028],
"lastUpdated": "2026-11-30"
}
مختصر: القوائم الطويلة تعرض عنصرها الأول ثم سطراً بالشكل «// … N more».
convert_calendar
تحويل تاريخ بين أنظمة التقويم
Converts a date between the Gregorian, Hijri (Umm al-Qura), Persian (Solar Hijri) and Hebrew calendars. Hijri results are the calculated Umm al-Qura calendar: the day a religious month really begins depends on local moon sighting and can differ by a day or two.
{
"start": "2024-02-29",
"startWeekday": "Thursday",
"end": "2026-12-01",
"endWeekday": "Tuesday",
"days": 1006,
"negative": false,
"weeks": {
"weeks": 143,
"days": 5
},
"calendar": {
"years": 2,
"months": 9,
"days": 2
},
"notes": [
"\"days\" is end minus start (the end date is not counted; negative when end is before start). \"weeks\" and \"calendar\" describe the absolute difference.",
"\"calendar\" counts whole years and months first, then the remaining days; a month-end start is clamped (31 January + 1 month = 28 or 29 February)."
],
"source": "Proleptic Gregorian calendar arithmetic"
}
add_duration
إضافة سنوات وأشهر وأسابيع وأيام إلى تاريخ
Adds or subtracts years, months, weeks and days to a calendar date and returns the resulting date with its weekday and ISO week. Give at least one unit. Month ends are clamped (31 January + 1 month = 28 or 29 February).
{
"date": "2024-01-31",
"weekday": "Wednesday",
"added": {
"years": 0,
"months": 1,
"weeks": 0,
"days": 0
},
"result": "2024-02-29",
"resultWeekday": "Thursday",
"resultIsoWeek": 9,
"resultIsoWeekYear": 2024,
"daysBetween": 29,
"notes": [
"Years and months are added first, clamping to the last day of the month when needed (31 January + 1 month = 28 or 29 February); weeks and days are added afterwards."
],
"source": "Proleptic Gregorian calendar arithmetic"
}
get_sunrise_sunset
الشروق والغروب والزوال والشفق
Sunrise, sunset, solar noon, day length and twilight times for coordinates on a date, in the given time zone. Reports polar day or polar night explicitly instead of inventing times. Use search_city to get coordinates and the zone of a city.
{
"date": "2026-12-01",
"lat": 30.06,
"lon": 31.25,
"timeZone": "Africa/Cairo",
"sunrise": {
"utc": "2026-12-01T04:33:21Z",
"local": "2026-12-01T06:33:21+02:00"
},
"sunset": {
"utc": "2026-12-01T14:54:38Z",
"local": "2026-12-01T16:54:38+02:00"
},
"solarNoon": {
"utc": "2026-12-01T09:43:59Z",
"local": "2026-12-01T11:43:59+02:00"
},
"dayLengthSeconds": 37277,
"dayLength": "10:21:17",
"polar": null,
"polarNote": null,
"twilight": {
"civil": {
"dawn": {
"utc": "2026-12-01T04:07:21Z",
"local": "2026-12-01T06:07:21+02:00"
},
"dusk": {
"utc": "2026-12-01T15:20:38Z",
"local": "2026-12-01T17:20:38+02:00"
}
},
"nautical": {
"dawn": {
"utc": "2026-12-01T03:37:49Z",
"local": "2026-12-01T05:37:49+02:00"
},
"dusk": {
"utc": "2026-12-01T15:50:10Z",
"local": "2026-12-01T17:50:10+02:00"
}
},
"astronomical": {
"dawn": {
"utc": "2026-12-01T03:08:50Z",
"local": "2026-12-01T05:08:50+02:00"
},
"dusk": {
"utc": "2026-12-01T16:19:09Z",
"local": "2026-12-01T18:19:09+02:00"
}
}
},
"notes": [
"Sunrise and sunset are the moments the Sun's upper limb is on a sea-level horizon with standard refraction (centre 0.833° below it). Typical accuracy is 1–2 minutes below 72° latitude; terrain, elevation and unusual refraction are not modelled.",
// … 2 more
],
"source": "NOAA solar position algorithm (Jean Meeus, Astronomical Algorithms)",
"sourceUrl": "https://gml.noaa.gov/grad/solcalc/calcdetails.html"
}
مختصر: القوائم الطويلة تعرض عنصرها الأول ثم سطراً بالشكل «// … N more».
get_moon_phase
طور القمر ونسبة الإضاءة والأطوار القادمة
Phase of the Moon (name, illuminated fraction, age in days) now or on a date, plus the times of the next new moon, first quarter, full moon and last quarter in UTC.
{
"date": "2026-12-01",
"at": "2026-12-01T12:00:00Z",
"phase": "last-quarter",
"phaseName": "Last Quarter",
"illumination": 0.4747,
"illuminationPercent": 47.5,
"ageDays": 22.21,
"cycleAngle": 272.8,
"waxing": false,
"nextNewMoon": "2026-12-09T00:51:46Z",
"nextFirstQuarter": "2026-12-17T05:42:35Z",
"nextFullMoon": "2026-12-24T01:28:08Z",
"nextLastQuarter": "2026-12-30T18:59:29Z",
"notes": [
"A date without a time is evaluated at 12:00:00 UTC.",
"The phase is geocentric: it is the same everywhere on Earth at a given instant. Principal phases (new, quarters, full) are reported for about half a day either side of their exact moment.",
// … 1 more
],
"source": "Jean Meeus, Astronomical Algorithms (2nd ed.), chapters 48–49"
}
مختصر: القوائم الطويلة تعرض عنصرها الأول ثم سطراً بالشكل «// … N more».
get_prayer_times
مواقيت الصلاة
Calculated Islamic prayer times (Fajr, sunrise, Dhuhr, Asr, Maghrib, Isha) for coordinates on a date, with the method parameters used. These are calculations: local mosques and authorities may differ by a few minutes, so point users to their local timetable. Use search_city to get coordinates and the zone of a city.
{
"date": "2026-12-01",
"lat": 30.06,
"lon": 31.25,
"timeZone": "Africa/Cairo",
"times": {
"fajr": {
"utc": "2026-12-01T03:01:40Z",
"local": "2026-12-01T05:01:40+02:00"
},
"sunrise": {
"utc": "2026-12-01T04:33:21Z",
"local": "2026-12-01T06:33:21+02:00"
},
"dhuhr": {
"utc": "2026-12-01T09:43:59Z",
"local": "2026-12-01T11:43:59+02:00"
},
"asr": {
"utc": "2026-12-01T12:35:32Z",
"local": "2026-12-01T14:35:32+02:00"
},
"maghrib": {
"utc": "2026-12-01T14:54:38Z",
"local": "2026-12-01T16:54:38+02:00"
},
"isha": {
"utc": "2026-12-01T16:16:45Z",
"local": "2026-12-01T18:16:45+02:00"
}
},
"method": {
"id": "egyptian",
"name": "Egyptian General Authority of Survey",
"fajrAngle": 19.5,
"ishaAngle": 17.5,
"ishaMinutesAfterMaghrib": null,
"ramadan": null
},
"asr": {
"school": "standard",
"shadowFactor": 1
},
"highLatitudeApproximation": false,
"polar": false,
"notes": [
"Calculated times. Mosques and local religious authorities may publish times that differ by a few minutes (rounding, safety margins, a different method or local practice); follow the local timetable where one exists.",
// … 3 more
],
"methods": ["mwl", "umm-al-qura", "egyptian", "karachi", "isna"],
"source": "Solar position: NOAA algorithm (Jean Meeus); angles: the published parameters of each method"
}
مختصر: القوائم الطويلة تعرض عنصرها الأول ثم سطراً بالشكل «// … N more».
get_weather
توقعات الطقس لمكان (MET Norway)
Weather forecast from MET Norway for coordinates or a city: current temperature, symbol, wind, humidity and next-hour precipitation, 24 hourly steps and 7 daily summaries (low, high, precipitation). Values are SI (°C, m/s, mm). This tool calls MET Norway's public API (cached); credit "Weather data from MET Norway" when you show the data.
{
"type": "object",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude in decimal degrees, north positive (−90 to 90). Use with lon, instead of city."
},
"lon": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude in decimal degrees, east positive (−180 to 180). Use with lat, instead of city."
},
"city": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "City instead of coordinates: a city slug of clockcrest.com (e.g. new-york) or a name looked up in the city index (e.g. Oslo, القاهرة)"
},
"tz": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9_+\\-/]+$",
"description": "IANA time zone for local times and daily grouping. Default: the city's zone, or UTC with coordinates."
}
},
"required": [],
"additionalProperties": false
}
{
"location": {
"lat": 59.9,
"lon": 10.8,
"elevation": 138,
"name": null,
"country": null,
"timeZone": "Europe/Oslo"
},
"updated": "2026-12-01T12:35:33Z",
"expires": "2026-12-01T13:53:01Z",
"current": {
"time": "2026-12-01T13:00:00Z",
"local": "2026-12-01T14:00:00+01:00",
"temperature": 7.7,
"symbol": "lightrain",
"windSpeed": 5.8,
"windDirection": 188,
"humidity": 99.9,
"cloudCover": 100,
"pressure": 1014,
"precipitationNextHour": 0.1
},
"hourly": [
{
"time": "2026-12-01T13:00:00Z",
"local": "2026-12-01T14:00:00+01:00",
"temperature": 7.7,
"symbol": "lightrain",
"windSpeed": 5.8,
"windDirection": 188,
"precipitation": 0.1,
"humidity": 99.9
},
// … 23 more
],
"daily": [
{
"date": "2026-12-01",
"min": 6.7,
"max": 7.7,
"symbol": "lightrain",
"precipitation": 1.1
},
// … 6 more
],
"units": {
"temperature": "celsius",
"windSpeed": "m/s",
"windDirection": "degrees",
"precipitation": "mm",
"humidity": "%",
"cloudCover": "%",
"pressure": "hPa"
},
"notes": [
"Forecast for the coordinates snapped to a 0.1° grid (about 11 km); \"location\" gives the point used. \"current\" is the forecast step for the present hour, not a station observation.",
// … 3 more
],
"source": "MET Norway Locationforecast 2.0",
"sourceUrl": "https://api.met.no/weatherapi/locationforecast/2.0/documentation",
"attribution": "Weather data from MET Norway",
"license": "CC BY 4.0",
"licenseUrl": "https://creativecommons.org/licenses/by/4.0/"
}
مختصر: القوائم الطويلة تعرض عنصرها الأول ثم سطراً بالشكل «// … N more».
get_market_hours
ساعات التداول الاعتيادية في البورصات وحالتها
Regular trading hours of major stock exchanges and whether each is open right now according to its weekly timetable, with the next open and close in UTC. Exchange holidays and early closes are NOT modelled — tell the user to check the exchange calendar (sourceUrl) for those.
{
"at": "2026-12-01T13:46:27Z",
"exchange": "nyse",
"count": 1,
"exchanges": [
{
"id": "nyse",
"name": "NYSE",
"fullName": "New York Stock Exchange",
"city": "New York",
"country": "US",
"region": "americas",
"timeZone": "America/New_York",
"tradingDays": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"open": "09:30",
"close": "16:00",
"lunchBreak": null,
"closingAuction": null,
"sourceUrl": "https://www.nyse.com/markets/hours-calendars",
"status": {
"state": "closed",
"isOpen": false,
"localTime": "2026-12-01T08:46:27-05:00",
"nextEvent": {
"kind": "open",
"at": "2026-12-01T14:30:00Z",
"local": "2026-12-01T09:30:00-05:00"
},
"nextOpen": "2026-12-01T14:30:00Z",
"nextClose": "2026-12-01T21:00:00Z"
}
}
],
"notes": [
"Exchange holidays, early closes and unscheduled halts are NOT modelled: \"status\" is what the regular weekly timetable says. Check the exchange's own calendar (\"sourceUrl\") before relying on it.",
// … 2 more
],
"source": "Each exchange's published trading hours (see \"sourceUrl\" per exchange)",
"lastUpdated": "2026-11-30"
}
مختصر: القوائم الطويلة تعرض عنصرها الأول ثم سطراً بالشكل «// … N more».
الحدود
محتوى الطلب حتى 16 كيلوبايت (16,384 بايت)، وما زاد يُقابَل بالرمز HTTP 413.
رسالة JSON-RPC واحدة في كل طلب POST: دفعات الطلبات مرفوضة.
طريقة POST فقط. الطلب GET يعيد 405 لأنه لا يوجد بثّ من الخادم إلى العميل.
أدوات فقط: لا يقدّم الخادم موارد (resources) ولا قوالب (prompts) ولا sampling.
المعاملات التي لا تعرّفها الأداة مرفوضة (مخطط مدخلاتها مغلق).
لا حدّ لعدد الطلبات لكل عميل، وشروط الاستخدام المنصف هي شروط واجهة JSON نفسها: لا تستدعِ أداة بشكل متكرر لبيانات لم تتغيّر.
بماذا جرى اختباره
لا تتضمن هذه القائمة إلا ما شُغِّل فعلاً على كود الخادم:
طلبات JSON-RPC خام بواسطة curl: الطلب initialize، وإشعار initialized، والطلبان tools/list و tools/call بالإصدار 2025-11-25، ثم tools/call بالإصدار 2026-07-28 مع ترويساته.
الدالة fetch في Node.js: السكربت الذي التقط كل أمثلة هذه الصفحة يستدعي كل واحدة من الأدوات الـ16 مرة.
عميل HTTP في Playwright ضمن الاختبارات الشاملة وعلى الدوال الحقيقية: نمطا البروتوكول، ومسارات الأخطاء، وحدّ حجم المحتوى، والطلب التمهيدي في CORS.
اختبارات وحدات تستدعي معالج الطلبات مباشرة لكل أداة وتطابق كل نتيجة مع مخطط مخرجاتها.
جرى اختباره مع عميل TypeScript الرسمي لـ MCP (@modelcontextprotocol/sdk 1.32.2، نقل Streamable HTTP): الطلبات initialize و ping و tools/list، ثم tools/call لكل الأدوات الـ16 بمعاملات صحيحة وخاطئة؛ وتحقق العميل من مطابقة كل structuredContent لمخطط مخرجاتها.
جرى اختباره مع أداة MCP Inspector الرسمية من سطر الأوامر (@modelcontextprotocol/inspector 2.13.0): الطلبان tools/list و tools/call، بما في ذلك أخطاء الأدوات وأداة غير معروفة.
لم يُختبر مع عميل ذكاء اصطناعي أو بيئة تطوير بعينها. تعليمات الربط أعلاه تتبع مواصفة MCP وطريقة الإعداد الموثّقة لدى العملاء، لكننا لم نتحقق منها داخل تلك المنتجات.
شروط الاستخدام المنصف ومصادر البيانات وحدودها هي نفسها في الواجهة: راجع نظرة المطوّرين العامة.