MCP.so
登录

MCP Time Server in TypeScript

@kitemcp

基本信息

分类

生产力

传输方式

stdio

作者

kitemcp

关于 MCP Time Server in TypeScript

暂无概览

MCP Time Server in TypeScript 配置

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

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

MCP Time Server in TypeScript 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 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

常见问题

1

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).

2

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).

3

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.

4

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.

5

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 服务器