Time & Location MCP Server
Provides containerization for the MCP server, allowing it to run in isolated environments with proper timezone and location data mounting.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Time & Location MCP Serverwhat time is it where I am?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Time Server
Setup & Running
Using Docker Compose
# Build and run (will auto-detect timezone and location)
docker-compose up --build
# Run in background
docker-compose up -d
# Override location if needed
CITY="Seattle" PROVINCE="WA" COUNTRY="USA" docker-compose upManual Docker Build
# Build image
docker build -t time-mcp-server .
# Run with timezone mounting
docker run -it \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
time-mcp-serverMCP 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:
{
"mcpServers": {
"time-location": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-v", "/etc/localtime:/etc/localtime:ro",
"-v", "/etc/timezone:/etc/timezone:ro",
"time_mcp-time-mcp-server"
]
}
}
}For Zed
Open Zed settings (Cmd+, on Mac)
Add to your settings.json:
{
"assistant": {
"version": "2",
"provider": {
"name": "anthropic"
},
"mcp": {
"servers": {
"time-location": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-v", "/etc/localtime:/etc/localtime:ro",
"-v", "/etc/timezone:/etc/timezone:ro",
"time_mcp-time-mcp-server"
]
}
}
}
}
}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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/SergeSerb2/time_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server