radish2951/time-mcp
If you are the rightful owner of time-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Time MCP Server is a Model Context Protocol server that provides current time information for specified timezones, utilizing Cloudflare Workers for deployment.
Time MCP Server
A Model Context Protocol (MCP) server that provides current time information for specified timezones, built with Cloudflare Workers.
š Live Demo
The server is deployed and ready to use:
- MCP Endpoint:
https://time-mcp.radish2951.workers.dev/mcp
š ļø Features
- Time Tool: Get current time in ISO format with day of week for any timezone
- Default Timezone: Japan Standard Time (Asia/Tokyo)
- Serverless: Runs on Cloudflare Workers with global edge deployment
- No Authentication: Public access for easy integration
š Available Tools
time_now
Returns the current time in ISO format with day of week for a specified timezone.
Parameters:
tz
(optional): IANA timezone string (e.g., "Asia/Tokyo", "America/New_York")- Default: "Asia/Tokyo"
Example Response:
{
"iso": "2025-09-22T10:46:05.068",
"tz": "Asia/Tokyo",
"dayOfWeek": "Mon"
}
š Quick Start
Test with MCP Inspector
-
Install and run MCP Inspector:
npx @modelcontextprotocol/inspector@latest
-
Connect to the server:
- Open the Inspector UI (usually http://localhost:5173)
- Enter server URL:
https://time-mcp.radish2951.workers.dev/mcp
- Click "Connect"
-
Test the
time_now
tool with different timezones
Connect to Claude Desktop
To use this MCP server with Claude Desktop, add this configuration to your Claude Desktop settings:
- Go to Settings > Developer > Edit Config
- Add the following configuration:
{
"mcpServers": {
"time": {
"command": "npx",
"args": [
"mcp-remote",
"https://time-mcp.radish2951.workers.dev/mcp"
]
}
}
}
- Restart Claude Desktop
š§ Local Development
Prerequisites
- Node.js 18+
- Cloudflare account (for deployment)
Setup
-
Clone the repository:
git clone https://github.com/radish2951/time-mcp.git cd time-mcp
-
Install dependencies:
npm install
-
Start local development server:
npm start
-
The server will be available at http://localhost:8787/mcp
Deployment
-
Login to Cloudflare:
npx wrangler login
-
Deploy to Cloudflare Workers:
npx wrangler deploy
šļø Project Structure
src/
āāā index.ts # Main MCP server implementation
āāā TimeMCP class # MCP agent with time.now tool
āāā Worker handler # Cloudflare Workers request handler
š Supported Timezones
Any valid IANA timezone identifier is supported, including:
Asia/Tokyo
(JST - Default)America/New_York
(EST/EDT)Europe/London
(GMT/BST)UTC
(Coordinated Universal Time)Asia/Shanghai
(CST)- And many more...
š License
This project is open source and available under the MIT License.
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.