MCP Time Server on Cloudflare (Without Auth)

by SzeMeng76

310 downloads
Not rated
GitHub

Description

# 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…

About

# 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…

Details

Author
SzeMeng76
Downloads
310
Categories
Productivity

- Provides get_current_time and convert_time MCP tools.
- get_current_time accepts an optional IANA timezone (defaults to UTC).
- convert_time converts a time in HH:MM format between two timezones.
- Returns times in 24-hour format with timezone information.
- Deployed as a remote MCP server without authentication.
- Accessible via SSE endpoint on Cloudflare Workers.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Time Server on Cloudflare (Without Auth)
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Deploy by clicking the "Deploy to Workers" button or using npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, you can connect from the Cloudflare AI Playground by entering your server URL, or from Claude Desktop using the mcp-remote proxy with the configuration shown in the README.

get_current_time

convert_time

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp time server on cloudflare (without auth)": {
            "time": {
                "command": "npx",
                "args": [
                    "mcp-remote",
                    "https://mcp-time-server.ajz.workers.dev/sse"
                ]
            }
        }
    }
}

McpServers

{
    "time": {
        "command": "npx",
        "args": [
            "mcp-remote",
            "https://mcp-time-server.ajz.workers.dev/sse"
        ]
    }
}

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.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.