Returns the user's timezone based on their IP address when called from a remote Model Context Protocol (MCP) client.
This Cloudflare Worker deploys a simple, unauthenticated remote MCP server designed to provide a single utility: inferring the user's timezone from their IP address. Built using the 'agents' and '@modelcontextprotocol/sdk' packages, it exposes a 'get_timezone' tool that can be invoked by MCP clients like Claude Desktop or AI Playground. It utilizes Cloudflare headers or forwarded headers for IP detection and is designed with privacy in mind, only using the apparent public IP for lookup and retaining no data or logs beyond essential diagnostics.