Returns the current time with timezone support.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add time --env TZ='<TZ>' -- npx -y @guanxiong/mcp-server-time~/.codex/config.toml
[mcp_servers.time]
command = "npx"
args = ["-y", "@guanxiong/mcp-server-time"]
env = { TZ = "<TZ>" }
# codex mcp add time --env TZ='<TZ>' -- npx -y @guanxiong/mcp-server-time~/.cursor/mcp.json
{
"mcpServers": {
"time": {
"command": "npx",
"args": [
"-y",
"@guanxiong/mcp-server-time"
],
"env": {
"TZ": "<TZ>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"time": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@guanxiong/mcp-server-time"
],
"env": {
"TZ": "<TZ>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"time": {
"command": "npx",
"args": [
"-y",
"@guanxiong/mcp-server-time"
],
"env": {
"TZ": "<TZ>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"time": {
"command": "npx",
"args": [
"-y",
"@guanxiong/mcp-server-time"
],
"env": {
"TZ": "<TZ>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"time": {
"command": "npx",
"args": [
"-y",
"@guanxiong/mcp-server-time"
],
"env": {
"TZ": "<TZ>"
}
}
}
}Environment variables
TZ
Replace the placeholders with your own credentials and keep them out of version control.