temporal-mcp
Click on "Deploy 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., "@temporal-mcp how long will a medium web scraping task take?"
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.
temporal-mcp
Give your AI agent a clock, a stopwatch, and a self-calibrating task duration estimator.
The Problem: AI Agents Are Time-Blind
Your agent doesn't know what time it is. It can't tell how long a task will take. And it has no memory of how long things took last time.
Existing MCP time servers only solve the first problem — they let you query the current time. None of them provide:
Task duration estimation — "How long will this web scraping job take?"
Completion recording — "That took 4.1 minutes. Remember that."
Self-calibration — Estimates that get more accurate the more you use them.
temporal-mcp solves all three. Zero external APIs. Zero accounts. Fully local SQLite storage.
Related MCP server: mcp-timeserver
Install in 60 Seconds
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"temporal": {
"command": "npx",
"args": ["-y", "temporal-mcp"],
"env": {
"TEMPORAL_MCP_DB_PATH": "~/.temporal-mcp/history.db"
}
}
}
}Cursor
Add to your Cursor MCP settings (~/.cursor/mcp.json):
{
"mcpServers": {
"temporal": {
"command": "npx",
"args": ["-y", "temporal-mcp"]
}
}
}Windsurf
Add to your Windsurf MCP configuration (~/.codeium/windsurf/mcp_config.json):
{
"mcpServers": {
"temporal": {
"command": "npx",
"args": ["-y", "temporal-mcp"]
}
}
}Restart your client after adding the config. That's it — no API key, no sign-up.
Three Tools
1. get_current_time — What time is it?
Input:
{
"timezone": "Asia/Taipei",
"format": "iso8601"
}Output:
{
"datetime": "2026-04-08T14:30:00+08:00",
"timezone": "Asia/Taipei",
"unix_timestamp": 1744086600,
"utc_offset": "+08:00"
}Supported formats: iso8601 (default), unix, human
2. estimate_task_duration — How long will this take?
Input:
{
"task_type": "web_scraping",
"complexity": "medium",
"unit": "minutes"
}Output (with historical data):
{
"task_type": "web_scraping",
"complexity": "medium",
"estimated_duration": 3.5,
"unit": "minutes",
"confidence": "high",
"data_source": "historical",
"sample_count": 12,
"note": "Based on 12 historical records. Median: 3.2 min, P90: 5.1 min."
}Output (no historical data yet):
{
"task_type": "web_scraping",
"complexity": "medium",
"estimated_duration": 5,
"unit": "minutes",
"confidence": "low",
"data_source": "default",
"sample_count": 0,
"note": "No historical records found. Using default estimate. Record completions to improve accuracy."
}Confidence levels:
high— 5+ historical records (uses median)medium— 1–4 historical records (uses average)low— no records (uses built-in defaults: low=1min, medium=5min, high=20min)
3. record_task_completion — How long did it actually take?
Input:
{
"task_type": "web_scraping",
"actual_duration": 4.1,
"complexity": "medium",
"duration_unit": "minutes",
"metadata": {
"model": "claude-3-5",
"pages_scraped": 42
}
}Output:
{
"recorded": true,
"record_id": "rec_20260408_143022_abc123",
"task_type": "web_scraping",
"complexity": "medium",
"actual_duration": 4.1,
"unit": "minutes",
"total_records_for_type": 13,
"updated_median_estimate": 3.3
}The Self-Calibration Loop
Every time you record a completion, the next estimate is more accurate. The loop closes automatically.
┌─────────────────────────────────────────────────────────────────┐
│ │
│ estimate_task_duration record_task_completion │
│ "How long will it take?" "It actually took X minutes" │
│ │ │ │
│ ▼ ▼ │
│ ┌─────────────┐ ┌────────────────────┐ │
│ │ Query DB │ │ Write to SQLite │ │
│ │ (SQLite) │ │ ~/.temporal-mcp/ │ │
│ └──────┬──────┘ │ history.db │ │
│ │ └──────────┬─────────┘ │
│ │ │ │
│ ▼ ▼ │
│ ┌─────────────────────────────────────────────────┐ │
│ │ SQLite history.db │ │
│ │ task_type | complexity | duration_s | ... │ │
│ └─────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ confidence: "low" → "medium" → "high" │
│ (0 records) (1-4 recs) (5+ recs, uses median) │
│ │
│ Next estimate is more accurate. Repeat. │
│ │
└─────────────────────────────────────────────────────────────────┘Or in Mermaid:
graph LR
A[estimate_task_duration] --> B[Agent runs task]
B --> C[record_task_completion]
C --> D[(SQLite history.db)]
D --> A
D --> |confidence: low → medium → high| AConfiguration
Environment Variable | Default | Description |
|
| Path to SQLite database |
The database directory is created automatically on first run.
Roadmap
These features are explicitly out of scope for v1 but planned for future versions:
Feature | Version |
HTTP / SSE transport (for remote Agent pipelines) | v2 |
Visual dashboard for time analytics | v2 |
Cross-device sync / cloud backup (opt-in) | v3 |
Team-shared estimation baselines | v3 |
Google Calendar / scheduling integration | v3 |
LLM-powered intelligent estimation (with user consent) | TBD |
| v2 |
Cron / scheduled task triggers | TBD |
Have a feature request? Open an issue.
Local Development
git clone https://github.com/ciphertoact/temporal-mcp
cd temporal-mcp
npm install
npm run build
node dist/index.jsLicense
MIT — see LICENSE.
Built by CiphertoAct.
Available Tools
3 toolsestimate_task_durationA
Estimate how long a task will take based on historical records. Uses statistical median when enough data exists, falling back to sensible defaults. Confidence increases with more recorded completions.
Inputs: task_type (required), unit, complexity.
get_current_timeA
Get the current date and time. Supports IANA timezones and multiple output formats (iso8601, unix timestamp, human-readable).
Inputs: format, timezone.
record_task_completionA
Record the actual time taken to complete a task. This data improves future estimates via self-calibration. Call this after every task to make the estimator smarter over time.
Inputs: task_type (required), actual_duration (required), metadata, complexity, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct role: reading current time, estimating duration, and recording completions. There is no meaningful overlap or risk of misselection between them.
All three names follow a consistent verb_noun pattern: get_current_time, estimate_task_duration, record_task_completion. The convention is predictable and readable.
Three tools are appropriate for this narrowly scoped temporal utility, and each tool supports a distinct part of the estimate-record-calibrate workflow. Nothing feels redundant or excessive.
The core loop of getting time, estimating duration, and recording completions is covered, but there is no way to inspect, list, update, or delete historical records. This creates a notable gap for users who need to audit or manage the data driving estimates.
Maintenance
Related MCP Connectors
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Deterministic time tools for AI agents: timezone conversion, business-day math, cron interpretation.
Current time, timezone conversion & date math for AI agents. On Cloudflare Workers.
Wall-clock awareness for LLM agents. Two tools: elapsed-time-between-turns + day rollover detection.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides accurate system time to LLM applications with multi-timezone support via a simple tool call.1MIT
- FlicenseNot gradedqualityDmaintenanceProvides current time, relative time, timezone conversion, timestamps, and more for LLMs.-
- FlicenseNot gradedqualityCmaintenanceEnables AI models to answer time-related questions by providing tools for current time and elapsed time.-
- AlicenseAqualityCmaintenanceGives time-blind LLMs and agent frameworks a real clock: current time and timezone, elapsed task duration, countdowns to deadlines, timezone conversion, session heartbeats, cron-style due checks, and session-level timers. This lets locally hosted or self-built models stop hallucinating the time and actually perceive how long a task or conversation has been running.727 npmMIT