@Dandeliongold/ Time
БесплатноНе проверенProvides current time and time difference calculations in ISO format (YYYY-MM-DD HH:mm:ss) using JavaScript Date. Supports both Windows and macOS for use with C
Описание
Provides current time and time difference calculations in ISO format (YYYY-MM-DD HH:mm:ss) using JavaScript Date. Supports both Windows and macOS for use with Claude desktop.
README
An MCP server for getting current time in ISO format (YYYY-MM-DD HH:mm:ss) using JavaScript Date. This server works with the Claude desktop app on both Windows and macOS.
Components
Tools
getCurrentTime- Returns the current time in ISO format
- No input parameters required
- Returns:
{ "time": "2024-02-08 11:04:33", "success": true }
Example JSON-RPC request:
{ "jsonrpc": "2.0", "id": 1, "method": "getCurrentTime" }Example JSON-RPC response:
{ "jsonrpc": "2.0", "id": 1, "result": { "time": "2024-02-08 11:04:33", "success": true } }getTimeDifference- Calculates the time difference between a given timestamp and the current time
- Parameters:
timestamp: ISO format timestamp (YYYY-MM-DD HH:mm:ss)interval: 'minutes' (default) or 'seconds'
- Returns a signed difference value following this convention:
- Positive values (+) indicate future timestamps ("in X minutes/seconds")
- Negative values (-) indicate past timestamps ("X minutes/seconds ago")
- Zero (0) indicates same timestamp
Example JSON-RPC request:
{ "jsonrpc": "2.0", "id": 1, "method": "getTimeDifference", "params": { "timestamp": "2024-02-08 12:30:00", "interval": "minutes" } }Example JSON-RPC responses:
// For a past timestamp (30 minutes ago) { "jsonrpc": "2.0", "id": 1, "result": { "difference": -30, "interval": "minutes", "inputTimestamp": "2024-02-08 12:30:00", "currentTime": "2024-02-08 13:00:00" } } // For a future timestamp (in 45 minutes) { "jsonrpc": "2.0", "id": 1, "result": { "difference": 45, "interval": "minutes", "inputTimestamp": "2024-02-08 13:45:00", "currentTime": "2024-02-08 13:00:00" } }
Features
- Get current time in YYYY-MM-DD HH:mm:ss format
- Calculate time differences between timestamps and current time
- Intuitive positive/negative values for future/past times
- Support for both minutes and seconds intervals
- Cross-platform support for Windows and macOS
- Simple JSON-RPC interface
- Consistent ISO-style date formatting
- Error handling with detailed error messages
Installation
npm install @dandeliongold/mcp-time
Usage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"time": {
"command": "npx",
"args": [
"@dandeliongold/mcp-time"
]
}
}
}
Development
- Clone the repository
- Install dependencies
npm install - Run tests
npm test - Start development server
npm run dev
License
MIT License - see LICENSE for details
Установка @Dandeliongold/ Time
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/dandeliongold/mcp-timeFAQ
@Dandeliongold/ Time MCP бесплатный?
Да, @Dandeliongold/ Time MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для @Dandeliongold/ Time?
Нет, @Dandeliongold/ Time работает без API-ключей и переменных окружения.
@Dandeliongold/ Time — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить @Dandeliongold/ Time в Claude Desktop, Claude Code или Cursor?
Открой @Dandeliongold/ Time на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare @Dandeliongold/ Time with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
