@dandeliongold/mcp-time
Overview
@mcp-time is an MCP server that provides the current time in ISO format (YYYY-MM-DD HH:mm:ss) using JavaScript Date. It is designed to work with the Claude desktop app on both Windows and macOS.
To use @dandeliongold/mcp-time, install it via npm and configure it in your Claude desktop configuration file. You can then make JSON-RPC requests to get the current time or calculate time differences.
- Returns current time in ISO format - Calculates time differences between timestamps and current time - Supports both minutes and seconds intervals - Cross-platform compatibility for Windows and macOS - Simple JSON-RPC interface - Detailed error handling
- Integrating time functionalities into applications using Claude.
- Calculating time differences for scheduling and planning.
- Providing real-time time data in applications.
Add to your AI client
Use these steps to connect @dandeliongold/mcp-time in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-time-dandeliongold": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-time-dandeliongold"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-time-dandeliongold": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-time-dandeliongold"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-time-dandeliongold": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-time-dandeliongold"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-time-dandeliongold": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-time-dandeliongold"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-time-dandeliongold": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-time-dandeliongold"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-time-dandeliongold": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-time-dandeliongold"
]
}
}
}FAQ
How do I install @dandeliongold/mcp-time?
You can install it using npm with the command: `npm install @dandeliongold/mcp-time`.
Is @dandeliongold/mcp-time compatible with all operating systems?
Yes, it supports both Windows and macOS.
What is the format of the time returned?
The time is returned in ISO format: YYYY-MM-DD HH:mm:ss.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1464,"uuid":"315cb380-ff28-4e77-8cc7-b04d520046e7","name":"mcp-time","title":"@dandeliongold/mcp-time","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/83384332?v=4","created_at":"2025-02-20T15:55:25.928Z","updated_at":"2025-02-23T07:21:40.347Z","status":"created","author_name":"dandeliongold","author_avatar_url":"https://avatars.githubusercontent.com/u/83384332?v=4","tags":"mcp,claude,model-context-protocol,mcp-server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/dandeliongold/mcp-time","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]