Time MCP server via HTTP
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server providing time-related tools with dual-mode support:
This server allows LLMs to access various date/time functions through multiple connection methods.
MCP Central Server Card: https://guide-gen.mcpcentral.io/servers/io-github-mcpcentral-io-mcp-time
Provides the following MCP tools:
current_time: Get the current date and time in specified formats and timezones.relative_time: Get a human-readable relative time string (e.g., "in 5 minutes", "2 hours ago").days_in_month: Get the number of days in a specific month.get_timestamp: Get the Unix timestamp (milliseconds) for a given time.convert_time: Convert a time between different IANA timezones.get_week_year: Get the week number and ISO week number for a given date.Install the package globally or use with npx:
Connect directly to the deployed Cloudflare Worker:
Example:
Configure your MCP client (e.g., Claude Desktop) to use the stdio transport:
Or with global installation:
Configure your MCP client to use the remote HTTP endpoint:
Clone the Repository:
Install Dependencies:
Build: Compile the TypeScript code:
(This compiles src/index.ts to dist/index.js)
Test Locally:
Test Stdio Mode:
Test HTTP Mode (via Wrangler):
This will start the server on http://localhost:8787. You can then test with curl or point your MCP client to this local endpoint.
Configure Cloudflare:
Edit wrangler.toml to configure your domain (optional).
Login and Deploy:
Build the package:
Publish:
NEW: Major providers have adopted the Model Context Protocol and now support Streamable HTTP servers directly. Anthropic, OpenAI, and Microsoft have all adopted this modern transport protocol.
๐ Protocol Note: Streamable HTTP is the modern replacement for the deprecated HTTP+SSE transport.
Anthropic's MCP Connector allows you to use Streamable HTTP servers directly through the Messages API without needing a separate MCP client.
The MCP Connector is perfect for this server since it uses the Streamable HTTP architecture. Simply include the server in your API requests:
OpenAI also supports Streamable HTTP servers through their Agents SDK using the MCPServerStreamableHttp class:
Microsoft Copilot Studio now supports Streamable HTTP servers with MCP integration generally available. You can connect this server to Copilot Studio by:
Keep an eye out as more MCP clients adopt support for Streamable HTTP. Here are a few resources that maintain lists of MCP clients and their capabilities:
Test your server using these web-based inspection tools:
The official MCP Inspector is also available:
npx @modelcontextprotocol/inspectorStart your server:
Connect with an inspector:
http://localhost:8787 or https://mcp.time.mcpcentral.ioTest the stdio transport directly:
The inspector will show all six time-related tools:
current_time: Test with different timezones (e.g., "America/New_York", "Europe/London")relative_time: Test with various time strings (e.g., "2024-12-25T00:00:00Z")days_in_month: Test with different months and yearsget_timestamp: Convert date-time strings to Unix timestampsconvert_time: Convert between different timezonesget_week_year: Get week numbers for specific datesTry these test cases in the inspector:
Use the inspector to verify:
The MCP Inspector provides the most comprehensive way to test your server before integrating it with AI clients.
โ ๏ธ IMPORTANT: This example server has NO authentication or security measures implemented.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-time)<a href="https://allmcps.com/mcp/mcp-time"><img src="https://allmcps.com/api/badge/mcp-time?style=directory" alt="MCP Time on AllMCPs" /></a>