MCP Time Server
Minimal MCP server that returns current time. Timezone configured on client side.
Installation
python3.13 -m venv .venv
.venv/bin/pip install -r requirements.txt
Configuration
Create config.json:
{
"token": "your-secret-token",
"port": 23386,
"path": "/your-random-path"
}
Running
.venv/bin/python server.py
Client Configuration
Claude Code CLI
claude mcp add time --transport sse \
--url "https://DOMAIN/PATH/sse" \
--header "Authorization: Bearer TOKEN" \
--header "X-Timezone: Asia/Novokuznetsk"
Claude Desktop
{
"mcpServers": {
"time": {
"command": "npx",
"args": [
"mcp-remote",
"https://DOMAIN/PATH/sse",
"--header",
"Authorization:Bearer ${MCP_TIME_TOKEN}",
"--header",
"X-Timezone:${MCP_TIME_TIMEZONE}"
],
"env": {
"MCP_TIME_TOKEN": "your-token",
"MCP_TIME_TIMEZONE": "Asia/Novokuznetsk"
}
}
}
}
Xray Fallback
"fallbacks": [
{"path": "/PATH/sse", "dest": "127.0.0.1:PORT"},
{"path": "/PATH/messages/", "dest": "127.0.0.1:PORT"}
]