← Reddit

temporal-mcp: wall-clock awareness for LLMs, with OAuth

Reddit · MirrorEthic_Anchor · May 13, 2026
A minimal MCP server called temporal-mcp addresses a failure mode in agent stacks where language models lack awareness of elapsed time between turns, leading to contextually inappropriate responses and stale data handling. The server provides two tools that return elapsed time, day-rollover detection, and fresh-thread flags in both human-readable and JSON formats. The solution is deployable through multiple options including local installation, hosted OAuth integration, bearer token authentication, and self-hosting on Cloudflare Workers.

Detailed Analysis

A developer operating under the GitHub handle MirrorEthic has released temporal-mcp, a lightweight Model Context Protocol (MCP) server designed to address a persistent and underappreciated failure mode in large language model agent stacks: the absence of real-time temporal awareness between conversational turns. The tool exposes two methods — `temporal_tick` and `temporal_peek` — that return elapsed time since the last turn, day-rollover detection, and a fresh-thread flag in both human-readable and structured JSON formats. The project is MIT-licensed, available via pip, and has been listed in the official MCP Registry, with submissions pending to Smithery and Glama. The implementation is deliberately minimal: roughly 150 lines of Python on the local side and 400 lines of TypeScript for the hosted deployment.

The technical architecture reflects a careful consideration of deployment contexts. For local use, the server integrates via stdio with popular agent environments including Claude Desktop, Cursor, Cline, Zed, and Claude Code. For hosted deployments, the project implements full OAuth 2.0 with PKCE and refresh tokens but eliminates the traditional account requirement entirely — the credential pair itself serves as identity, lowering the friction barrier considerably. A raw bearer token path is also provided for clients that support custom headers, with the token SHA-256 hashed server-side so plaintext is never stored. The self-hosting path runs on Cloudflare Workers and is designed to fit within that platform's free tier at approximately 100,000 requests per day. The developer reports verified functionality in both claude.ai and Grok.

The problem temporal-mcp targets is more consequential than it may initially appear. LLMs operating inside multi-turn agents or long-running workflows have no intrinsic mechanism for tracking wall-clock time; they process tokens in a context window with no ambient awareness of when those tokens arrived. This creates subtle but compounding errors: stale greetings, incorrect date arithmetic, failure to detect session resumption after days or weeks, and context decay that goes unmanaged because the model cannot distinguish a one-minute pause from a three-week gap. The `delta_sec` and `day_rollover` signals the author exposes are particularly useful for context decay logic — reasoning about when prior context should be discounted or re-grounded — and for resume detection, which determines whether a new message continues an active session or restarts a dormant one.

The release situates itself within a broader and accelerating ecosystem of MCP tooling that extends LLM capabilities through standardized, composable servers rather than model-level fine-tuning. The MCP standard, originally introduced by Anthropic, has increasingly attracted third-party contributors building capability primitives — file access, browser control, database connectors, and now temporal grounding — that agent frameworks can assemble modularly. Temporal-mcp's inclusion in the official MCP Registry signals that the community is beginning to systematize even low-level environmental awareness as a discrete, reusable concern rather than leaving it to individual implementers to solve ad hoc. The no-signup OAuth design also reflects a pattern gaining traction in developer tooling: cryptographic identity without centralized account management, which reduces both onboarding friction and data liability.

The project's open question — how developers will use the `day_rollover` and `delta_sec` signals beyond context decay and resume detection — points to the genuinely underexplored design space of temporally-aware agent behavior. Potential applications include adaptive greeting logic, automated summarization triggers when sessions cross day boundaries, priority re-ranking of tasks based on elapsed time, and deadline-sensitive workflow management. As agents are increasingly deployed in long-horizon, asynchronous contexts, the ability to reason accurately about when events occurred relative to the present becomes a foundational requirement rather than an optional enhancement. Temporal-mcp represents an early, pragmatic answer to that requirement.

Article image Read original article →