Skip to main content
Glama

User Timezone Tool

by charl-kruger

Remote MCP Server: User Timezone Tool

This Cloudflare Worker deploys a remote MCP server (authless) with a single tool: it returns the user's timezone based on their IP address when called from a remote MCP client.

How it Works

  • Implements an MCP-compliant server using the agents and @modelcontextprotocol/sdk packages.
  • Defines a single "get_timezone" tool: when invoked from an MCP client (e.g. Claude Desktop, or AI Playground), it attempts to infer the timezone of the user based on their IP address (from Cloudflare headers or forwarded headers).

Fast Deploy

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

Usage (MCP Tool)

  • Tool name: get_timezone
  • No parameters required
  • Returns the user's timezone as a text message

Local Testing (Curl Example)

Try the health endpoint directly:

curl "https://user-timezone-mcp-server.<your-account>.workers.dev/timezone"

Response:

{"timezone":"America/Los_Angeles","ip":"203.0.113.99"}

Where available, the endpoint will return your timezone and detected IP address. In development or local wrangler, IP-based detection may not function.

Connect Using Claude Desktop or Playground

  • Claude Desktop: Use the mcp-remote proxy, set your config for /sse endpoint.
  • Playground: Add your /sse endpoint in the UI, click get_timezone.

Security/Privacy Considerations

  • Only the user's apparent public IP address (via standard headers) is used for time zone lookup.
  • No data is retained or logged except for error logging (for diagnostics only).
  • No authentication is enabled—this is a public MCP endpoint intended for experimentation and utility functions.

Customize Tools

To add more tools or behaviors, edit the init() method of src/index.ts and register additional MCP tools to this.server.

-
security - not tested
F
license - not found
-
quality - not tested

Cloudflare Worker that deploys an MCP server providing a single tool to return a user's timezone based on their IP address.

  1. How it Works
    1. Fast Deploy
      1. Usage (MCP Tool)
        1. Local Testing (Curl Example)
          1. Connect Using Claude Desktop or Playground
            1. Security/Privacy Considerations
              1. Customize Tools

                Related MCP Servers

                • -
                  security
                  F
                  license
                  -
                  quality
                  A Cloudflare Workers-based MCP server implementation that supports OAuth login and bearer token authentication, allowing secure connection from MCP clients like Claude Desktop and the MCP Inspector.
                  Last updated -
                  TypeScript
                • -
                  security
                  F
                  license
                  -
                  quality
                  A deployable authentication-free MCP (Model Context Protocol) server on Cloudflare Workers that allows you to add custom tools and connect to AI clients like Claude Desktop or Cloudflare AI Playground.
                  Last updated -
                  TypeScript
                • -
                  security
                  F
                  license
                  -
                  quality
                  A deployable MCP server on Cloudflare Workers that enables using custom tools with AI models without requiring authentication.
                  Last updated -
                  JavaScript
                • -
                  security
                  F
                  license
                  -
                  quality
                  A deployable server that implements the Model Context Protocol (MCP) on Cloudflare Workers, enabling integration of custom tools with AI assistants like Claude without requiring authentication.
                  Last updated -
                  TypeScript

                View all related MCP servers

                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/charl-kruger/my-mcp-worker123'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server