Date arithmetic: day differences, business days, age, leap years, day-of-week, add/subtract.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Adds years/months/days to date. years/months are applied together with end-of-month clamping — e.g. 2026-01-31 + 1 month = 2026-02-28, not an overflowed 2026-03-03. days is then applied as plain calendar-day arithmetic.
YYYY-MM-DD
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Adds years/months/days to date. years/months are applied together with end-of-month clamping — e.g. 2026-01-31 + 1 month = 2026-02-28, not an overflowed 2026-03-03. days is then applied as plain calendar-day arithmetic.
| Argument | Type | Description |
|---|---|---|
| date* | string | YYYY-MM-DD |
| days | integer | |
| years | integer | |
| months | integer |
{
"type": "object",
"required": [
"date"
],
"properties": {
"date": {
"type": "string",
"description": "YYYY-MM-DD"
},
"days": {
"type": "integer"
},
"years": {
"type": "integer"
},
"months": {
"type": "integer"
}
},
"additionalProperties": false
}Age in whole years as of asOf (optional, defaults to the current UTC date). A Feb-29 birthDate is treated as falling on March 1 in a non-leap asOf year.
| Argument | Type | Description |
|---|---|---|
| asOf | string | YYYY-MM-DD, defaults to today |
| birthDate* | string | YYYY-MM-DD |
{
"type": "object",
"required": [
"birthDate"
],
"properties": {
"asOf": {
"type": "string",
"description": "YYYY-MM-DD, defaults to today"
},
"birthDate": {
"type": "string",
"description": "YYYY-MM-DD"
}
},
"additionalProperties": false
}Counts days in [from, to] (inclusive on both ends) whose weekday is in weekdays (default mon-fri) and which aren't in holidays.
| Argument | Type | Description |
|---|---|---|
| to* | string | YYYY-MM-DD |
| from* | string | YYYY-MM-DD |
| holidays | null | array | YYYY-MM-DD dates to exclude |
| weekdays | null | array | sun/mon/tue/wed/thu/fri/sat, default mon-fri |
{
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string",
"description": "YYYY-MM-DD"
},
"from": {
"type": "string",
"description": "YYYY-MM-DD"
},
"holidays": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"description": "YYYY-MM-DD dates to exclude"
},
"weekdays": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"description": "sun/mon/tue/wed/thu/fri/sat, default mon-fri"
}
},
"additionalProperties": false
}Day of the week for date: both the weekday name and its ISO 8601 weekday number (1=Monday..7=Sunday).
| Argument | Type | Description |
|---|---|---|
| date* | string | YYYY-MM-DD |
{
"type": "object",
"required": [
"date"
],
"properties": {
"date": {
"type": "string",
"description": "YYYY-MM-DD"
}
},
"additionalProperties": false
}Day difference between two YYYY-MM-DD dates: to minus from, in whole days. Negative if to is before from.
| Argument | Type | Description |
|---|---|---|
| to* | string | YYYY-MM-DD |
| from* | string | YYYY-MM-DD |
{
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string",
"description": "YYYY-MM-DD"
},
"from": {
"type": "string",
"description": "YYYY-MM-DD"
}
},
"additionalProperties": false
}Checks whether year is a leap year in the Gregorian calendar.
| Argument | Type | Description |
|---|---|---|
| year* | integer |
{
"type": "object",
"required": [
"year"
],
"properties": {
"year": {
"type": "integer"
}
},
"additionalProperties": false
}