
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
current-time-timezone-server
Advanced tools
MCP服务器,提供NTP校准的当前时间和时区相关功能,支持stdio和HTTP/SSE,可配置host和protocol,支持.env文件,返回指定时区的本地时间
A Model Context Protocol (MCP) server that provides accurate time information with timezone support and NTP synchronization.
npm install -g current-time-timezone-server
# 直接运行
docker run -p 3000:3000 current-time-timezone-server:latest
# 使用docker-compose
docker-compose up -d
{
"mcpServers": {
"current-time-http": {
"protocol": "http",
"url": "http://localhost:3000/mcp"
}
}
}
{
"mcpServers": {
"current-time-sse": {
"protocol": "sse",
"url": "http://localhost:3000/sse"
}
}
}
{
"mcpServers": {
"current-time": {
"command": "docker",
"args": ["run", "-i", "--rm", "-p", "3000:3000", "current-time-timezone-server:latest"]
}
}
}
{
"mcpServers": {
"current-time": {
"command": "npx",
"args": ["current-time-timezone-server-stdio"],
"env": {
"NTP_SERVER": "pool.ntp.org"
}
}
}
}
# 默认启动(同时支持Streamable HTTP和SSE)
npx current-time-timezone-server
# 自定义配置
HOST=0.0.0.0 PORT=8080 npx current-time-timezone-server
服务器启动后,以下端点可用:
POST http://localhost:3000/mcpGET http://localhost:3000/ssePOST http://localhost:3000/messages# 访问SSE端点
curl -N http://localhost:3000/sse
# 注意:SSE端点用于MCP客户端连接,不支持直接带时区参数
npx current-time-timezone-server-stdio
HOST: 服务器地址 (默认: localhost)PORT: 服务器端口 (默认: 3000)NTP_SERVER: NTP服务器地址 (默认: pool.ntp.org)docker build -t current-time-timezone-server .
docker run -d \
--name time-server \
-p 3000:3000 \
-e NTP_SERVER=pool.ntp.org \
current-time-timezone-server:latest
docker-compose up -d
# 安装依赖
npm install
# 开发模式
npm run dev
# 构建
npm run build
| 协议 | 描述 | 使用场景 | 端点 |
|---|---|---|---|
| Streamable HTTP | MCP标准HTTP传输 | MCP客户端连接 | POST /mcp |
| SSE | 服务器推送实时数据流 | MCP客户端连接 | GET /sse |
| Stdio | 标准输入输出通信 | MCP客户端内部通信 | 无 |
/messages端点使用FAQs
MCP服务器,提供NTP校准的当前时间和时区相关功能,支持stdio和HTTP/SSE,可配置host和protocol,支持.env文件,返回指定时区的本地时间
We found that current-time-timezone-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.