Time MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Time MCP Serverwhat's the current time in Tokyo?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⏱️ Time MCP Server on Cloudflare Workers (Remote, No Auth)
This project is a remote MCP server running on Cloudflare Workers that gives LLMs rich time awareness:
Current time (UTC + any timezone)
Relative time (“3 hours ago”, “in 2 days”)
Days in month
Timestamps
Timezone conversion
Week / ISO week of the year
It is based on Cloudflare’s remote-mcp-authless template, but exposes a full time toolkit over MCP.
Tools
The server exposes these MCP tools:
current_time
Get the current time in UTC and in a target timezone, in a configurable format.relative_time
Get the relative time from now for a given timestamp (e.g."2025-03-23 12:00:00"→"in 2 days").days_in_month
Get the number of days in a given month (or the current month if no date is provided).get_timestamp
Get the Unix timestamp (milliseconds) for a given time, or for now.convert_time
Convert a given time between two IANA timezones (e.g.Europe/Amsterdam→Asia/Tokyo).get_week_year
Get the week number and ISO week number for a given date, or for today.
All tools are implemented in src/index.ts using this.server.tool(...) on a McpServer instance.
Related MCP server: Time MCP Server
Get Started
You can either:
1. Deploy from this repo (once it’s on GitHub)
Use the Deploy to Workers button (update the URL to match your GitHub repo):
This will deploy your MCP server to a URL like:
https://mcp-timeserver.<your-account>.workers.dev/sse2. Create locally from the Cloudflare template
If you want to reproduce this setup from scratch:
npm create cloudflare@latest -- mcp-timeserver --template=cloudflare/ai/demos/remote-mcp-authlessThen replace src/index.ts with the time MCP implementation from this repo and install dayjs:
npm install dayjsRunning Locally
From the project directory:
npm install
npm run startThis starts a local dev server, usually at:
http://localhost:8787Exposed endpoints:
SSE MCP transport:
http://localhost:8787/sseHTTP (streamable) MCP transport:
http://localhost:8787/mcpHealth check:
http://localhost:8787/health
Deploying to Cloudflare
To deploy the Worker:
npx wrangler login
npm run deploy
# or
npx wrangler deployAfter deploy you’ll get a URL like:
https://mcp-timeserver.<your-account>.workers.devWith MCP endpoints:
SSE:
https://mcp-timeserver.<your-account>.workers.dev/sseHTTP:
https://mcp-timeserver.<your-account>.workers.dev/mcp
Using the MCP Server
1. Cloudflare AI Playground
You can use this Worker as a remote MCP server from the Cloudflare AI Playground:
Add a new MCP server and use your deployed URL, for example:
https://mcp-timeserver.<your-account>.workers.dev/sseThe tools
current_time,relative_time, etc. will be available for the model to call.
2. MCP Inspector (local testing)
To inspect tools and make test calls:
npx @modelcontextprotocol/inspector@latestIn the Inspector UI:
Use
http://localhost:8787/sse(dev) or your deployed/sseURL.Connect and then List Tools to see all time tools.
Call tools like
current_timewith JSON arguments, for example:{ "format": "YYYY-MM-DD HH:mm:ss", "timezone": "Europe/Amsterdam" }
3. Connect Claude Desktop via mcp-remote
Most desktop clients still speak stdio MCP, so you can use mcp-remote as a proxy to your Cloudflare Worker.
In your Claude Desktop config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"time-mcp-timeserver": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp-timeserver.<your-account>.workers.dev/sse"
]
}
}
}Restart Claude. You should now see:
current_timerelative_timedays_in_monthget_timestampconvert_timeget_week_year
available as tools.
Development Notes
Runtime: Cloudflare Workers + Durable Objects
MCP:
@modelcontextprotocol/sdkvia Cloudflareagents/mcpTime library:
dayjswithutc,timezone,relativeTime,weekOfYear,isoWeekplugins.Entry point:
src/index.tsConfig:
wrangler.toml
License
MIT – feel free to fork, extend, and adapt.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceTime MCP Server is a server implementation that provides time aware capabilities for large language models, supporting functions such as obtaining current time, relative time, and timestamp conversion.Last updated62Apache 2.0
- Alicense-qualityDmaintenanceA Cloudflare Workers-based MCP server that provides current date and time information for any IANA timezone. It enables AI agents to retrieve precise, ISO 8601-formatted timestamps through a globally distributed edge network.Last updatedMIT
- Alicense-qualityDmaintenanceMCP 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.Last updated4932MIT
- Alicense-qualityCmaintenanceA remote MCP server that provides tools for getting the current time in different timezones and converting time between timezones, deployable on Cloudflare Workers.Last updated144MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/liyangyao0212/my-mcp-timeserver'
If you have feedback or need assistance with the MCP directory API, please join our Discord server