Discover and explore top open-source AI tools and projects—updated daily.
LLM temporal awareness server
Top 48.4% on SourcePulse
This project provides a Model Context Protocol (MCP) server designed to equip Large Language Models (LLMs) with temporal awareness and time calculation capabilities. It addresses the LLM limitation of unreliable time difference calculations by offering a suite of tools for understanding and manipulating time, benefiting developers and researchers aiming to enhance LLM reasoning and contextual understanding.
How It Works
The server acts as a bridge, exposing a set of Python functions as tools that LLM clients can invoke. It leverages the fastmcp
framework to manage these tool calls and responses. The core approach is to provide LLMs with explicit functions for obtaining current time, calculating time differences, contextualizing timestamps (e.g., weekends, business hours), and performing time arithmetic, thereby enabling more nuanced temporal reasoning.
Quick Start & Requirements
git clone https://github.com/jlumbroso/passage-of-time-mcp.git
followed by pipenv install
or pip install fastmcp pytz
.pipenv run server
or pipenv run python passage_of_time_mcp.py
.Highlighted Details
current_datetime
, time_difference
, timestamp_context
, time_since
, parse_timestamp
, add_time
, and format_duration
.Maintenance & Community
The project is primarily maintained by Jérémie Lumbroso and was developed in collaboration with Claude Opus 4.0. It is inspired by research from Princeton University's Natural and Artificial Minds initiative.
Licensing & Compatibility
Licensed under the Mozilla Public License 2.0 (MPL 2.0). This license allows for open distribution and modification, with requirements for source code availability for modifications. It is generally compatible with commercial and closed-source applications, provided the MPL 2.0 terms are followed.
Limitations & Caveats
The project currently uses the deprecated SSE transport for communication, with plans to migrate to a modern HTTP-stream transport. There is no persistent memory of past time calculations, and natural language time parsing is a future feature. Docker support is also planned for future releases.
3 months ago
Inactive