MCP Time Server
About
Provides tools for getting the current time and date, and formatting timestamps in various formats and timezones.
Details
- Author
- pierregode
- Categories
- Developer Tools
Jump to
Example Configuration for Claude Desktop
edit claude_desktop_config.json bash { "mcpServers": { "time-server": { "command": "node", "args": ["C:\\Users\\youruser\\Documents\\timeMCP\\timeserver.js"], "env": {} } } }
Get the current time in various formats.
- format(optional): "iso", "local", "utc", or "unix" (default: "iso")
- timezone(optional): Timezone string like "America/New_York" (default: "local")
{ "format": "local", "timezone": "Europe/London" }
Get the current date in various formats.
- format(optional): "iso", "local", "short", "long", or "custom" (default: "iso")
- customFormat(optional): JSON string of Intl.DateTimeFormat options (when format is "custom")
- timezone(optional): Timezone string (default: "local")
{ "format": "long", "timezone": "Asia/Tokyo" }
Get comprehensive date and time information.
- timezone(optional): Timezone string (default: "local")
{ "timezone": "America/Los_Angeles" }
- timestamp(required): Unix timestamp in milliseconds
- format(optional): "iso", "local", "utc", or "custom" (default: "iso")
- timezone(optional): Timezone string (default: "local")
{ "timestamp": 1703097600000, "format": "local", "timezone": "UTC" }
To use this server with an MCP client (like Claude Desktop), add it to your MCP configuration:
Add to yourclaude_desktop_config.json:
{ "mcpServers": { "time-server": { "command": "node", "args": ["/path/to/your/mcp-time-server/server.js"], "env": {} } } }
For other MCP clients, refer to their documentation on how to configure MCP servers. The server uses stdio transport and follows the standard MCP protocol.
Current time (iso): 2024-12-20T14:30:45.123Z
Current date (long): Friday, December 20, 2024
{ "timestamp": 1703097845123, "iso": "2024-12-20T14:30:45.123Z", "local": "12/20/2024, 2:30:45 PM", "utc": "Fri, 20 Dec 2024 14:30:45 GMT", "unix": 1703097845, "year": 2024, "month": 12, "day": 20, "hour": 14, "minute": 30, "second": 45, "dayOfWeek": "Friday", "timezone": "America/New_York" }```
To run in development mode with debugging:
The server includes comprehensive error handling for:
- Invalid timezones
- Invalid timestamps
- Malformed custom format strings
- Missing required parameters
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Create crafted UI components inspired by the best 21st.dev design engineers.
Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server
An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .
MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent
ALAPI MCP Tools,Call hundreds of API interfaces via MCP
AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform
MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.
APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.
One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.
Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB
Provides tools for getting the current time and date, and formatting timestamps in various formats and timezones.
A Model Context Protocol (MCP) server that provides time and date functionality. This server exposes tools for getting current time, date, and formatting timestamps in various formats and timezones.
- get_current_time: Get current time in ISO, local, UTC, or Unix timestamp format
- get_current_date: Get current date in various formats (ISO, local, short, long, custom)
- get_datetime_info: Get comprehensive date/time information including timezone details
- format_timestamp: Format any Unix timestamp to readable formats
git clone https://github.com/PierreGode/timeMCP.git cd timeMCP
-
Save the server code astimeserver.jsand the package configuration aspackage.json
The server runs on stdio transport (standard input/output):
To run the server, you need to add it to your MCP configuration. For example, if you are using Claude Desktop, you can do this by modifying theclaude_desktop_config.jsonfile, for some reason Claude might not recognize the server untill you reinstall the claude desktop app, so you might need to do that after adding the server.
Example Configuration for Claude Desktop
edit claude_desktop_config.json bash { "mcpServers": { "time-server": { "command": "node", "args": ["C:\\Users\\youruser\\Documents\\timeMCP\\timeserver.js"], "env": {} } } }
Get the current time in various formats.
- format(optional): "iso", "local", "utc", or "unix" (default: "iso")
- timezone(optional): Timezone string like "America/New_York" (default: "local")
{ "format": "local", "timezone": "Europe/London" }
Get the current date in various formats.
- format(optional): "iso", "local", "short", "long", or "custom" (default: "iso")
- customFormat(optional): JSON string of Intl.DateTimeFormat options (when format is "custom")
- timezone(optional): Timezone string (default: "local")
{ "format": "long", "timezone": "Asia/Tokyo" }
Get comprehensive date and time information.
- timezone(optional): Timezone string (default: "local")
{ "timezone": "America/Los_Angeles" }
- timestamp(required): Unix timestamp in milliseconds
- format(optional): "iso", "local", "utc", or "custom" (default: "iso")
- timezone(optional): Timezone string (default: "local")
{ "timestamp": 1703097600000, "format": "local", "timezone": "UTC" }
To use this server with an MCP client (like Claude Desktop), add it to your MCP configuration:
Add to yourclaude_desktop_config.json:
{ "mcpServers": { "time-server": { "command": "node", "args": ["/path/to/your/mcp-time-server/server.js"], "env": {} } } }
For other MCP clients, refer to their documentation on how to configure MCP servers. The server uses stdio transport and follows the standard MCP protocol.
Current time (iso): 2024-12-20T14:30:45.123Z
Current date (long): Friday, December 20, 2024
{ "timestamp": 1703097845123, "iso": "2024-12-20T14:30:45.123Z", "local": "12/20/2024, 2:30:45 PM", "utc": "Fri, 20 Dec 2024 14:30:45 GMT", "unix": 1703097845, "year": 2024, "month": 12, "day": 20, "hour": 14, "minute": 30, "second": 45, "dayOfWeek": "Friday", "timezone": "America/New_York" }```
To run in development mode with debugging:
The server includes comprehensive error handling for:
- Invalid timezones
- Invalid timestamps
- Malformed custom format strings
- Missing required parameters
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Create crafted UI components inspired by the best 21st.dev design engineers.
Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server
An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .
MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent
ALAPI MCP Tools,Call hundreds of API interfaces via MCP
AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform
MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.
APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.
One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.
Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





