Back to Home
ryddle icon

datetime-mcp

Verified Safe

by 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

Run Command
node build/index.js

Security 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

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens20
Stars0
Forks0
Last Update2025-12-14

Tags

DateTimeUtilitiesMCPNode.jsAgentTool