Skip to main content
Glama
lvdaxianer

datetime-mcp-server

by lvdaxianer

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoThe custom port to use when TRANSPORT is set to 'http'. Defaults to 3000.
TRANSPORTNoThe transport mode for the server (e.g., 'http'). Defaults to stdio if not specified.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_current_datetime

获取当前日期和时间,支持自定义格式化。

该工具返回当前的日期时间,可以指定返回的格式。如果不指定格式,默认返回 "yyyy-MM-dd" 格式。

支持的格式占位符:

  • yyyy: 4位年份 (例如: 2026)

  • MM: 2位月份 (01-12)

  • dd: 2位日期 (01-31)

  • HH: 24小时制小时 (00-23)

  • mm: 2位分钟 (00-59)

  • ss: 2位秒数 (00-59)

使用示例:

  • format="yyyy-MM-dd" -> "2026-03-11"

  • format="yyyy-MM-dd HH:mm:ss" -> "2026-03-11 14:30:00"

  • format="yyyy/MM/dd HH:mm" -> "2026/03/11 14:30"

注意事项:

  • 该工具始终返回当前时间,每次调用结果可能不同

  • 返回的是服务器本地时间

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lvdaxianer/datetime-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server