JUHE API Marketplace
charl-kruger avatar
MCP Server

User Timezone Tool

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

0
GitHub Stars
11/18/2025
Last Updated
No Configuration
Please check the documentation below.
  1. Home
  2. MCP Servers
  3. my-mcp-worker123

README Documentation

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

Deploy to Workers

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.

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright © 2025 - All rights reserved