MCP.so
登录

MCP Time Server in TypeScript

@kitemcp

关于 MCP Time Server in TypeScript

暂无概览

基本信息

分类

生产力

运行时

node

传输方式

stdio

发布者

kitemcp

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "kite-mcp-server-time": {
      "command": "node",
      "args": [
        "dist/index.js",
        "--transport=http"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Time Server in TypeScript?

A TypeScript implementation of an MCP (Model Context Protocol) server that provides time-related tools. It supports getting the current time in a specified timezone and converting times between different timezones, and is designed for developers building AI assistants that need timezone-aware operations.

How to use MCP Time Server in TypeScript?

Install dependencies with npm install, then build and start the server. Run with stdio transport using npm start or with HTTP transport using node dist/index.js --transport=http. Use an MCP client to invoke the provided tools.

Key features of MCP Time Server in TypeScript

  • Get current time in a specified IANA timezone
  • Convert time between different timezones with time difference calculation
  • Supports both stdio and HTTP transport options
  • Docker support for containerized deployment
  • Modular architecture separates server creation and transport binding

Use cases of MCP Time Server in TypeScript

  • Integrating timezone-aware time lookup into AI assistant conversations
  • Converting event times between timezones for scheduling and planning
  • Verifying whether a timezone is currently observing daylight saving time

FAQ from MCP Time Server in TypeScript

What tools does the server provide?

Two tools: get_current_time (returns current datetime in a given IANA timezone) and convert_time (converts a time between source and target IANA timezones and reports the time difference).

What transport options are available?

The server supports stdio transport (default, for local MCP client integration) and HTTP transport (exposes a POST /mcp endpoint and a GET /status health check on port 3000 by default).

What are the runtime requirements and dependencies?

Node.js 18+ is required. The server uses Express for HTTP transport, Luxon for timezone handling, Zod for schema validation, and the MCP TypeScript SDK.

How can I deploy the server with Docker?

Build the Docker image with docker build -t mcp-time-server ., then run with stdio or HTTP transport using the provided Docker commands or Docker Compose configuration.

What endpoints are available when using HTTP transport?

A POST /mcp endpoint for MCP protocol messages and a GET /status endpoint returning server status information.

评论

生产力 分类下的更多 MCP 服务器