Provides containerization for the MCP server, allowing it to run in isolated environments with proper timezone and location data mounting.
Time & Location MCP Server
An MCP (Model Context Protocol) server that automatically detects and provides your current time and location information.
Features
- Auto-detection: Automatically detects your system timezone and location
get_current_time
: Returns current date/time in your local timezoneget_location
: Returns your location based on IP geolocation
Setup & Running
Using Docker Compose
Manual Docker Build
MCP Client Configuration
For Cursor
- Open Cursor Settings (Cmd+, on Mac or Ctrl+, on Windows/Linux)
- Search for "Model Context Protocol" or navigate to Features > Beta
- Enable MCP if not already enabled
- Add this configuration:
For Zed
- Open Zed settings (Cmd+, on Mac)
- Add to your settings.json:
Note: Make sure the Docker container is built first with docker-compose build
Tools Available
- get_current_time
- Automatically detects your system timezone
- Returns current time with timezone info
- Includes ISO format, Unix timestamp, and UTC offset
- get_location
- Uses IP-based geolocation (requires internet)
- Falls back to environment variables if set
- Returns city, province/state, country, and coordinates
Environment Variables (Optional)
Override auto-detection by setting these variables:
TZ
: Timezone (e.g., "America/New_York")CITY
: Your cityPROVINCE
: Your province/stateCOUNTRY
: Your countryLATITUDE
: Latitude coordinateLONGITUDE
: Longitude coordinate
This server cannot be installed
An MCP server that automatically detects and provides current time and location information based on system timezone and IP geolocation.
Related MCP Servers
- -securityAlicense-qualityAn MCP server that allows checking local time on the client machine or current UTC time from an NTP serverLast updated -18PythonMIT License
- -securityFlicense-qualityAn MCP server providing timezone conversions and time-related operations via RESTful API endpoints, featuring comprehensive error handling and timezone database integration.Last updated -Python
- AsecurityAlicenseAqualityA TypeScript server implementing the Model Context Protocol (MCP) that provides datetime and timezone information to AI agents and chat interfaces, allowing them to access current time in various timezones.Last updated -452TypeScriptMozilla Public License 2.0
- -securityAlicense-qualityA lightweight mcp server that tells you exactly what time is it based on your IP.Last updated -8PythonMIT License