MCP.so
登录

MCP Current Datetime Server

@ks217

关于 MCP Current Datetime Server

Simple MCP server to return current datetime

基本信息

分类

其他

许可证

MIT license

运行时

node

传输方式

stdio

发布者

ks217

配置

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

{
  "mcpServers": {
    "mcp-current-datetime": {
      "command": "node",
      "args": [
        "build/index.js"
      ]
    }
  }
}

工具

未检测到工具

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

概览

What is MCP Current Datetime Server?

It is an MCP (Model Context Protocol) server that provides the current datetime in ISO 8601 format via a single tool called get-current-datetime. It supports both stdio and HTTP transport layers, making it suitable for integration with MCP-compatible clients like Claude Desktop and VS Code Copilot.

How to use MCP Current Datetime Server?

Install Node.js v16 or higher, then run npm install and npm run build to build the project. Start the server with node build/index.js for default stdio mode, or add --http to run an HTTP server on port 3000 that accepts JSON‑RPC 2.0 POST requests at / or /mcp. Integration examples for Claude Desktop and VS Code Copilot are provided in the README.

Key features of MCP Current Datetime Server

  • Tool get-current-datetime returns the current datetime as an ISO 8601 string.
  • Supports stdio (default) and HTTP transport modes.
  • HTTP mode includes CORS enabled for all origins.
  • No parameters required for the tool.
  • Easy to install and run with Node.js.

Use cases of MCP Current Datetime Server

  • Providing a reliable current timestamp to AI agents during conversations.
  • Logging or recording events with precise ISO 8601 timestamps.
  • Integrating with MCP-compatible apps such as Claude Desktop or VS Code Copilot.
  • Testing MCP server implementations with a simple, stateless tool.

FAQ from MCP Current Datetime Server

What are the prerequisites to run this server?

Node.js version 16 or higher and npm are required.

How do I run the server in HTTP mode?

Use the --http flag: node build/index.js --http. The server listens on port 3000 by default.

Can I use this server with Claude Desktop?

Yes. Add a stdio configuration in your Claude Desktop settings using the full path to the built index.js file (see the integration example in the README).

Does the server require any authentication or API key?

No. The tool requires no parameters and the server has no built-in authentication.

What transport modes are available?

Two modes are available: stdio (default) and HTTP. In HTTP mode, the server accepts JSON‑RPC 2.0 POST requests on / or /mcp.

评论

其他 分类下的更多 MCP 服务器