Supports containerized deployment for cloud environments, allowing the server to be easily deployed and scaled.
Supports deployment to Google Cloud Run for production use of the temporal awareness server with cloud-based AI services.
Supports deployment to Heroku for production use of the temporal awareness server with cloud-based AI services.
Enables secure tunneling for development testing, exposing the local server to cloud-based AI services through a public URL.
Allows cloud-based OpenAI services to access temporal awareness functionality through HTTP transport, providing time-related tools and calculations.
Supports deployment to Railway for production use of the temporal awareness server with cloud-based AI services.
Temporal Awareness MCP Server
A Model Context Protocol (MCP) server that provides AI agents with comprehensive temporal awareness and time calculation capabilities.
Features
- Current Time: Get current date and time in any timezone
- Time Calculations: Calculate differences between timestamps
- Time Adjustments: Add or subtract durations from timestamps
- Contextual Analysis: Get human-readable context about timestamps
- Multiple Transports: Support for both stdio (local) and HTTP (remote) connections
- Docker Support: Ready for cloud deployment
Quick Start
For Local Development (Claude Desktop, Cursor)
- Install dependencies:
- Run with stdio transport:
For Cloud Deployment
- Run with Docker:
- Or run directly with HTTP transport:
Integration Guide
Claude Desktop
Add to your Claude Desktop configuration file:
For Windows:
For macOS/Linux:
Important: Replace
/path/to/temporal-awareness-mcp
with your actual project directory.
Alternative: Using Python with PYTHONPATH
If you prefer not to use Poetry:
Cursor IDE
Configure in Cursor Settings > Extensions > MCP:
OpenAI and Cloud Clients
For cloud-based AI services, deploy the server and use HTTP transport:
- Deploy with ngrok (development):
- Use the public URL in your MCP client:
- Production deployment: Deploy to Railway, Heroku, Google Cloud Run, etc.
Available Tools
get_current_time
Get the current date and time in a specified timezone.
Parameters:
timezone
(string, optional): Timezone name (default: "UTC")format
(string, optional): Output format - "iso", "human", or "timestamp" (default: "iso")
Example:
calculate_difference
Calculate the duration between two timestamps.
Parameters:
start_time
(string): Start timestamp (ISO format or human readable)end_time
(string): End timestamp (ISO format or human readable)unit
(string, optional): Result unit - "seconds", "minutes", "hours", or "days" (default: "seconds")
Example:
get_timestamp_context
Provide human-readable context about a timestamp.
Parameters:
timestamp
(string): Timestamp to analyzetimezone
(string, optional): Timezone for context (default: "UTC")
Example:
adjust_timestamp
Add or subtract a duration from a timestamp.
Parameters:
timestamp
(string): Base timestampadjustment
(string): Adjustment to apply (e.g., "+1 day", "-2 hours")timezone
(string, optional): Timezone for calculation (default: "UTC")
Example:
Testing the Server
Try these example prompts with your AI agent:
Basic Operations
- "What time is it right now?"
- "What's the current time in Tokyo?"
- "Convert 3:30 PM EST to Pacific Time"
Date Calculations
- "How many days until Christmas?"
- "What day of the week was January 1st, 2000?"
- "Add 45 days to March 15, 2024"
Complex Scenarios
- "I have a flight departing Los Angeles at 11:30 PM on Friday. If the flight is 14 hours long, what time will I arrive in Tokyo local time?"
- "Calculate work hours in February 2024, assuming 8-hour workdays Monday through Friday"
Development
Prerequisites
- Python 3.12+
- Poetry for dependency management
- Docker (optional, for containerized deployment)
Setup
Deployment
Docker
Environment Variables
For production deployment, you can configure:
HOST
: Server host (default: "0.0.0.0")PORT
: Server port (default: 8000)
License
MIT License
This server cannot be installed
A Model Context Protocol (MCP) server that provides AI agents with comprehensive temporal awareness and time calculation capabilities.
Related MCP Servers
- 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
- AsecurityAlicenseAqualityA Model Context Protocol server for time manipulation tasks, enabling AI models to get the current date/time and calculate duration between timestamps.Last updated -2TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides AI-powered security analysis and safety instruction tools. This server helps protect AI agents by providing security guidelines, content analysis, and cautionary instructions when interacting with various MCPs and external services.Last updated -323JavaScriptISC License
TimeCamp MCP Serverofficial
-securityFlicense-qualityA Model Context Protocol server that provides time tracking integration with TimeCamp, allowing AI assistants to create, retrieve, update, and delete time entries through natural language commands.Last updated -TypeScript