datetime-mcp
Verified Safeby ryddle
Overview
Provides date and time utilities, such as getting current time, day of the week, and calculating date differences, for Model Context Protocol (MCP) agents.
Installation
node build/index.jsSecurity Notes
The server's core logic relies on standard Node.js `Date` objects and internal calculations. Input parsing for dates (YYYY-MM-DD or DD/MM/YYYY) includes basic format and validity checks (`isNaN(date.getTime())`), which helps mitigate common date parsing vulnerabilities. The code does not use `eval` or execute arbitrary user-provided code. Communication is handled via `StdioServerTransport` (standard input/output), meaning it does not directly expose network ports, thus reducing external attack surface. While `axios` is listed as a dependency, it is not utilized in the provided `src/index.ts` for any of the server's functionalities, posing no direct network risk from this tool. The `package.json` `bin` entry incorrectly points to 'web-search' instead of 'datetime' or 'datetime-mcp', which is a minor packaging inconsistency but not a security risk.
Similar Servers
date-and-time-mcp-server
Provides a Model Context Protocol (MCP) API for AI agents to retrieve precise, locale-aware date and time data across timezones.
ChronoSphere-AI-Date-Time-MCP-Service
Provides an AI-enabled Model Context Protocol (MCP) API for delivering precise, locale-aware date and time data across timezones to AI agents.
datetime-mcp-server
Provides current date and time information to an MCP-compatible AI model, preventing stale context.
chronos-mcp-server
A time-related server providing timezone-aware date and time information via the Model Context Protocol (MCP).