Time MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-time-worker
A Cloudflare Workers-based MCP (Model Context Protocol) server that provides timezone-aware time information.
Features
Returns current date and time in any IANA timezone
Runs on Cloudflare's global edge network
Implements the Model Context Protocol for AI agent integration
Configurable default timezone via environment variables
ISO 8601-compatible time format with UTC offset
Related MCP server: MCP Node Time
Prerequisites
Node.js 18 or later
Cloudflare account (for deployment)
Wrangler CLI (installed via npm)
Installation
npm installDevelopment
Start the local development server:
npm run devThe MCP server will be available locally for testing with MCP clients.
Deployment
Deploy to Cloudflare Workers:
npm run deployCustom Timezone Configuration
Override the default timezone during deployment:
wrangler deploy --var DEFAULT_TIMEZONE:America/New_YorkOr set it in the Cloudflare dashboard under Workers > Settings > Environment Variables.
Usage
This MCP server exposes a single tool that can be called by any MCP client:
Tool: get_time
Returns the current date and time in a specified timezone.
Parameters:
timezone(optional): IANA timezone identifier (e.g., "Asia/Tokyo", "America/New_York", "Europe/London")If not provided, uses the
DEFAULT_TIMEZONEenvironment variableFinal fallback: "Asia/Tokyo"
Response Format:
YYYY-MM-DDTHH:MM:SS±HH:MMExample: 2025-11-27T15:30:45+09:00
Example MCP Client Configuration
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"time": {
"url": "https://your-worker.your-subdomain.workers.dev"
}
}
}Configuration
wrangler.toml
The default timezone is configured in wrangler.toml:
[vars]
DEFAULT_TIMEZONE = "Asia/Tokyo"Modify this value to change the default timezone for your deployment.
Technical Details
Runtime: Cloudflare Workers (Edge)
Protocol: Model Context Protocol (MCP)
Timezone Library: Native
Intl.DateTimeFormatAPIValidation: Zod schema validation
CORS: Enabled with wildcard origin (
*)
License
MIT License - see LICENSE file for details
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Current time, timezone conversion & date math for AI agents. On Cloudflare Workers.
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Cloudflare Workers MCP server: ai-agent-scratchpad
9 remote MCP servers on Cloudflare Workers for AI agents. Free tier + Pro API keys.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceCloudflare Worker that deploys an MCP server providing a single tool to return a user's timezone based on their IP address.-
- AlicenseAqualityDmaintenanceA MCP server that provides timezone-aware date and time operations. This server addresses the common issue where AI assistants provide incorrect date information due to timezone confusion.45MIT
- AlicenseAqualityDmaintenanceMCP server providing various date/time functions including current time, timezone conversion, and relative time calculations. Supports both local stdio and remote HTTP access via Cloudflare Workers.261,209 npm3MIT
- AlicenseNot gradedqualityNot gradedmaintenanceA remote MCP server that provides tools for getting the current time in different timezones and converting time between timezones, deployable on Cloudflare Workers.69 npmMIT