Sponsored by Deepsite.site

MCP Time Server on Cloudflare (Without Auth)

Created By
SzeMeng767 months ago
Content

MCP Time Server on Cloudflare (Without Auth)

This example deploys a remote MCP time server that doesn't require authentication on Cloudflare Workers. It provides tools for getting the current time in different timezones and converting time between timezones.

Live Demo

You can try out a deployed version of this MCP Time Server at:

https://mcp-time-server.ajz.workers.dev/sse

Get started:

Deploy to Workers

This will deploy your MCP time server to a URL like: mcp-time-server.<your-account>.workers.dev/sse

Alternatively, you can use the command line below to get the remote MCP Server created on your local machine:

npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

Available Tools

The MCP Time Server provides the following tools:

1. get_current_time

Get the current time for a specific timezone.

Parameters:

  • timezone (optional): IANA timezone name (e.g., "America/New_York", "Europe/London"). Defaults to "UTC" if not provided.

Returns:

  • The current date and time in the specified timezone in 24-hour format, along with the timezone information.

Example:

get_current_time(timezone: "America/New_York")

2. convert_time

Convert time between different timezones.

Parameters:

  • source_timezone: IANA timezone name for the source time (e.g., "America/New_York")
  • time: Time in HH:MM format (24-hour)
  • target_timezone: IANA timezone name for the target time (e.g., "Europe/London")

Returns:

  • The converted time from the source timezone to the target timezone.

Example:

convert_time(source_timezone: "America/New_York", time: "14:30", target_timezone: "Europe/London")

Connect to Cloudflare AI Playground

You can connect to your MCP server from the Cloudflare AI Playground, which is a remote MCP client:

  1. Go to https://playground.ai.cloudflare.com/
  2. Enter your deployed MCP server URL (mcp-time-server.<your-account>.workers.dev/sse)
  3. You can now use your MCP tools directly from the playground!

Connect Claude Desktop to your MCP server

You can also connect to your remote MCP server from local MCP clients, by using the mcp-remote proxy.

To connect to your MCP server from Claude Desktop, follow Anthropic's Quickstart and within Claude Desktop go to Settings > Developer > Edit Config.

Update with this configuration:

{
  "mcpServers": {
    "time": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"  // or mcp-time-server.your-account.workers.dev/sse
      ]
    }
  }
}

Restart Claude and you should see the time tools become available.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Amap Maps高德地图官方 MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
WindsurfThe new purpose-built IDE to harness magic
Playwright McpPlaywright MCP server
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Tavily Mcp
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors