time-mcp

time-mcp

A remote MCP server that provides ambient time awareness, enabling current time, timezone conversion, calendar math, and elapsed-time calculations via natural language, designed for Claude custom connectors.

Category
Visit Server

README

time-mcp

A remote MCP server that gives Claude ambient time awareness: current time, timezone conversion, calendar math, and elapsed-time — with tool descriptions written so the model treats time as context it must acquire (calling the tool before time-sensitive reasoning), not just something to answer "what time is it?".

Inspired by yokingma/time-mcp, rebuilt as a stateless Streamable-HTTP server so it works as a claude.ai custom connector (which requires a public HTTPS URL, not stdio).

Tools

Tool Purpose
current_time Full temporal context: ISO time, date, weekday, ISO week, unix, offset, DST
convert_time Convert a date-time between IANA timezones
time_math Add/subtract years/months/weeks/days/hours/minutes (DST- and calendar-safe)
time_difference Exact elapsed time between two instants (end defaults to now)
days_in_month Days in a month, leap-year aware

Deploy

npm install
npx wrangler deploy

Requires a Cloudflare account (npx wrangler login first). Free tier is plenty.

Connect

In claude.ai: Settings → Connectors → Add custom connector, URL:

https://time-mcp.<your-subdomain>.workers.dev/mcp?tz=Asia/Kolkata

The ?tz= query param sets the default timezone for all tools (falls back to DEFAULT_TIMEZONE in wrangler.jsonc, then UTC). Claude Code / Desktop can use the same URL: claude mcp add --transport http time <url>.

To make usage closer to "every response" (best-effort — chat has no true pre-response hook), add this under Settings → General → Instructions for Claude in claude.ai:

Treat time as ambient context you must acquire, not knowledge you have. Call the time connector's current_time at the start of every response, regardless of topic, before reasoning about anything. Never state or assume a date, day of week, elapsed time, or how recent something is without having called it in this turn.

Also check the per-chat tools menu: connectors have an enable toggle, and nothing fires in a chat where the connector is toggled off.

Testing the invocation rate

The failure mode to test for is not "can it tell the time" but "does it reach for the clock when time matters only implicitly". Run each prompt in a fresh chat (within one chat the model legitimately reuses an earlier result), then expand the tool-call chips in the response to see what it called:

  1. "What day of the week is it?" — sanity check; must call current_time.
  2. "How old is the M3 MacBook Pro?" — age/recency with no time words.
  3. "Draft a message proposing a call next Tuesday 3pm my time to someone in New York." — relative date + timezone; expect current_time, ideally convert_time too.
  4. "My notice period is 45 days and I want to be done by end of September — when's my last day to resign?" — deadline arithmetic; expect time_math, not mental math.
  5. "Is it too late to file taxes?" — pure implicit deadline.
  6. Negative control: "Explain how Raft leader election works." — calling here is harmless but unnecessary; over-firing means the instructions are heavier than needed.

For ground truth independent of the UI, watch the server while testing:

npx wrangler tail time-mcp

If the hit rate is poor, the two levers in order of strength are the Instructions text above and the tool descriptions in src/tools.ts (the model re-reads tool descriptions every turn).

Local dev

npm run dev        # wrangler dev on :8787
npm run check      # typecheck

Smoke test:

curl -s localhost:8787/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"current_time","arguments":{}}}'

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured