Hermes Time MCP
Click on "Install 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., "@Hermes Time MCPwhat's the current time in Tokyo?"
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.
Hermes Time MCP
Give Hermes Agent real-world time awareness through the Model Context Protocol (MCP).
Hermes Time MCP is a lightweight MCP server that augments Hermes Agent with reliable, real-time date and time capabilities.
Hermes is an excellent autonomous AI agent, but like every Large Language Model, it has no intrinsic awareness of the current time. It cannot continuously observe the passing of time or consult a system clock on its own.
This project fills that capability gap by allowing Hermes to query an authoritative clock whenever temporal information is required, enabling it to behave more like a real digital assistant rather than a stateless language model.
Motivation
A human assistant always knows:
What time it is
Today's date
The current timezone
How much time has passed
What time it is somewhere else in the world
A language model knows none of these things unless external information is supplied.
Without an external time source, Hermes may:
Produce stale timestamps
Be unable to answer "What time is it?"
Struggle with timezone calculations
Have difficulty scheduling actions
Lose temporal awareness during long-running conversations
Injecting timestamps into prompts is only a temporary solution. As conversations continue, those timestamps become stale.
The correct architectural approach is to allow Hermes to request time information only when it needs it.
That is exactly what the Model Context Protocol was designed to do.
Purpose
Hermes Time MCP provides Hermes with an authoritative source of temporal information.
Whenever Hermes needs current time information, it simply invokes one of the MCP tools exposed by this server.
The server retrieves the information from the host operating system and returns the result to Hermes.
This keeps:
Hermes focused on reasoning
The operating system responsible for timekeeping
The MCP server responsible for exposing time as a tool
Each component has a single responsibility.
Design Philosophy
This project intentionally follows the Unix philosophy:
Do one thing well.
Hermes performs reasoning.
The operating system maintains accurate time.
The MCP server bridges those two worlds.
The server does not synchronize clocks.
It does not contact NTP servers.
It does not maintain its own clock.
Instead, it trusts the operating system, which should already synchronize time using standard Linux services such as:
Chrony
systemd-timesyncd
ntpd
This avoids unnecessary complexity while ensuring consistency with the rest of the system.
Architecture
User
│
▼
Hermes Agent
│
MCP Streamable HTTP
│
▼
Hermes Time MCP
(mcp-proxy)
│
stdio MCP
│
▼
Python FastMCP Server
│
datetime/zoneinfo
│
▼
Host Operating System
│
System Clock (UTC)
│
Chrony / NTP / timesyncdFeatures
Current implementation includes:
Current date
Current local time
Current UTC time
ISO-8601 timestamps
Timezone-aware date/time
Timezone conversion utilities
Fully MCP-compliant tool interface
Docker deployment
HTTP transport using
mcp-proxy
The project is intentionally lightweight and designed to be extended with additional time-related tools.
Repository Structure
.
├── app/
│ ├── __init__.py
│ └── server.py
├── tests/
│ └── test_server.py
├── hermes/
│ └── config.yaml.example
├── Dockerfile
├── Dockerfile.test
├── docker-compose.yaml
├── Makefile
├── requirements.txt
├── requirements-dev.txt
└── README.mdRequirements
Docker
Docker Compose
Python 3.12 (development only)
Running Tests
The project includes automated unit tests.
Build the test image:
docker build -f Dockerfile.test -t hermes-time-mcp:test .Run the tests:
docker run --rm hermes-time-mcp:testExpected output:
.....
5 passedAlternatively:
make testBuilding
Build the production container:
docker compose buildor
docker build -t hermes-time-mcp .Deployment
Create the Docker network
docker network create time-netOnly required once.
Related MCP server: datetime-mcp
Configure Environment
Create a .env file.
MCP_PORT=8815
DEFAULT_TIMEZONE=Europe/OsloStart the Server
docker compose up -dVerify:
docker compose psView logs:
docker logs time-mcpHermes Configuration
Example Hermes configuration:
mcp_servers:
Hermes_clock:
url: http://time-mcp:8815/mcp
enabled: trueReload MCP servers:
/reload-mcpVerifying Connectivity
From the Docker host:
curl http://localhost:8815/mcpA browser or curl request may return an HTTP 400 or 405 response.
This is expected.
MCP endpoints are designed for MCP clients, not web browsers.
The important point is that the endpoint is reachable.
Example Usage
Ask Hermes:
What time is it right now?
Hermes automatically calls the Time MCP server.
Ask:
What time is it in Tokyo?
Hermes retrieves the current time and timezone information.
Ask:
Generate an RFC3339 timestamp.
Hermes requests the timestamp from the MCP server instead of attempting to invent one.
Security
The server is intentionally simple.
Recommendations:
Run as a non-root user where practical
Drop unnecessary Linux capabilities
Use read-only containers where appropriate
Never expose the Docker socket to the container
Let the operating system manage clock synchronization
The server itself never attempts to modify system time.
Why MCP Instead of Prompt Injection?
A common solution is to inject the current time into every prompt.
This has several disadvantages:
The timestamp becomes stale.
Long-running conversations lose accuracy.
Every prompt becomes larger.
The model cannot request updated information when needed.
Using MCP solves these issues.
Hermes simply requests current time information on demand.
The information is always fresh, and prompts remain clean and focused.
Why Use mcp-proxy?
The FastMCP server communicates over stdio.
mcp-proxy converts the stdio interface into a Streamable HTTP MCP endpoint, allowing Hermes and other MCP clients to communicate over HTTP without modifying the Python implementation.
This keeps the MCP server simple while supporting modern container-based deployments.
Future Enhancements
Potential additions include:
Relative time calculations
Duration calculations
Business calendar support
Public holiday lookup
Natural language date parsing
Cron utilities
Sunrise and sunset calculations
Moon phases
Time interval arithmetic
Localization support
Fiscal calendars
Workday calculations
Contributing
Contributions are welcome.
Possible areas include:
Additional MCP tools
Improved timezone utilities
Performance improvements
Test coverage
Documentation
Docker optimizations
Please open an issue before submitting large feature changes.
License
Apache-2.0 License
Acknowledgements
This project builds upon:
Model Context Protocol (MCP)
Hermes Agent
FastMCP
mcp-proxy
Special thanks to the developers and contributors of these projects for providing the foundation that makes interoperable AI tooling possible.
Final Thoughts
Hermes excels at reasoning, planning, and autonomous execution.
What it lacks is direct access to the changing state of the real world.
Time is one of the most fundamental pieces of real-world context.
Hermes Time MCP gives Hermes that missing capability by providing accurate, on-demand access to the host system clock through a clean MCP interface.
Rather than teaching the model what time it is, we give it the ability to ask.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAquality-maintenanceProvides timezone-aware date and time information with configurable time formats and timezone support. Enables users to get current date and time in their preferred timezone and format through simple MCP tools.2
- AlicenseDqualityCmaintenanceA lightweight MCP server that provides date and time tools, including the ability to retrieve current timestamps and parse date strings with IANA timezone support. It enables AI models to interact with the host OS clock and perform temporal calculations via stdio transport.397MIT
- Alicense-qualityDmaintenanceProvides LLM agents with a sense of time between turns via two MCP tools that track elapsed time and day rollover per conversation thread.2MIT
- Alicense-qualityDmaintenanceLightweight MCP server providing system time tools (current time, date, datetime, time components, unix timestamp) for LLM applications.1MIT
Related MCP Connectors
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Wall-clock awareness for LLM agents. Two tools: elapsed-time-between-turns + day rollover detection.
Timezone MCP — wraps WorldTimeAPI (free, no auth)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/iaznexai/hermes-clock'
If you have feedback or need assistance with the MCP directory API, please join our Discord server