MCP-NTP Time Service
Supports testing the NTP time service via HTTP requests in SSE mode, allowing clients to retrieve accurate time information by specifying NTP servers through request headers.
Provides access to NTP (Network Time Protocol) services through Python, allowing large language models to retrieve accurate network time information with details like timestamps, formatted time strings, and time offsets.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP-NTP Time Service
An MCP (Model Context Protocol) NTP time service that gives language models accurate network time.
Features
Fetch accurate network time from an NTP server
Support both
stdioandssetransportsExpose a
get_current_timetool for models to query the current timeConfigure the NTP server via environment variable or request header
Return detailed time information and NTP protocol metrics
Related MCP server: Time MCP Server
Install
Requires Python 3.10 through 3.14. The service pins MCP Python SDK 2.2.0.
# Install dependencies with uv
uv syncConfiguration
Environment variable (stdio)
Set NTP_DOMAIN_URL:
export NTP_DOMAIN_URL="pool.ntp.org"Regional option (China): ntp.aliyun.com.
Request header (sse)
Include the ntp_url header:
ntp_url: pool.ntp.orgUsage
stdio
export NTP_DOMAIN_URL="pool.ntp.org"
python -m appOr use the helper scripts: start-ntp-stdio.sh / start-ntp-stdio.ps1.
sse
python -m app --transport sse --port 8080
# Smoke-test the SSE endpoint
curl -H "ntp_url: pool.ntp.org" http://localhost:8080/sseOr use: start-ntp-sse.sh / start-ntp-sse.ps1.
MCP client settings
See mcp_settings.template.json for Cursor/compatible MCP client examples (uv local debug, SSE debug, and uvx production).
Tool: get_current_time
Get the current time from an NTP server.
Parameters:
ntp_server(optional): NTP server address. If omitted, uses the environment variable or request header.
Example response:
{
"ntp_server": "pool.ntp.org",
"ntp_timestamp": 1703123456.789,
"ntp_time": "2023-12-21T10:30:56.789",
"local_system_time": "2023-12-21T10:30:56.789",
"time_offset": 0.123,
"response_delay": 0.045
}Debugging
export NTP_DOMAIN_URL="pool.ntp.org"
python -m app -vAgent Skill
skills/mcp-ntp/ is an Agent Skills package. It tells an agent when to call get_current_time and how to register this server in that agent's MCP config. The skills CLI installs the same folder into Claude Code, Cursor, GitHub Copilot, and the rest of its supported agents (Node.js 22.20 or later):
# Claude Code, Cursor, and GitHub Copilot
npx skills add scofield5658/mcp-ntp --skill mcp-ntp \
-a claude-code -a cursor -a github-copilot -y
# Every agent the CLI supports
npx skills add scofield5658/mcp-ntp --skill mcp-ntp --agent '*' -y
# Or copy the folder into a skills directory yourself
cp -r skills/mcp-ntp ~/.agents/skills/After install, ask the agent to register mcp-ntp and read the current network time. The skill uses the published package (uvx mcp-ntp), not a local checkout.
Development
Project layout
mcp-ntp/
├── app/
│ ├── __init__.py # CLI entry
│ ├── server.py # MCP server
│ ├── client.py # NTP client
│ └── config.py # Configuration
├── skills/mcp-ntp/ # Installable Agent Skill
├── pyproject.toml
└── README.mdExtending NTP configuration
get_current_time in client.py can be extended for additional NTP server selection logic.
License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Real-time planetary signal engine and Model Context Protocol (MCP) server for autonomous AI agents.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server for time manipulation tasks, enabling AI models to get the current date/time and calculate duration between timestamps.765 npm2MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides time and timezone conversion capabilities, enabling LLMs to get current time information and perform timezone conversions using IANA timezone names.2MIT
- AlicenseNot gradedqualityDmaintenanceThe Time MCP Server is a Model Context Protocol (MCP) server that provides AI assistants and other MCP clients with standardized tools to perform time and date-related operations. This server acts as a bridge between AI tools and a robust time-handling back101 npm25MIT
- AlicenseBqualityFmaintenanceA Model Context Protocol server that provides current time in ISO8601 format with timezone support.14 npmMIT