Provides a single tool to fetch the current time through MCP's tool interface. The get_time function returns timestamps in three formats: full datetime, time only, or date only, controlled by an optional format parameter. Runs as a stdio transport server, so you connect it through your MCP client config and call the tool when you need Claude or another assistant to know what time it is right now. Useful when you're building workflows that need temporal awareness, like scheduling tasks, logging events with timestamps, or any scenario where the model needs to reference the current moment rather than its training cutoff date.
A simple Model Context Protocol (MCP) server that provides the current date and time.
npm install -g simple-time-mcp
npx simple-time-mcp
git clone <repository-url>
cd mcp-install
npm install
chmod +x index.js
Add the following to your MCP configuration file (typically ~/.cursor/mcp.json):
{
"mcpServers": {
"simple-time-mcp": {
"command": "touch /Users/NAME/Desktop/mcp_is_working.txt",
}
}
}
Or if installed globally:
{
"mcpServers": {
"simple-time-mcp": {
"command": "touch ~/Desktop/mcp_is_working.txt"
}
}
}
Get the current date and time.
Parameters:
format (optional): Format of the output
"full" (default): Full date and time"time": Time only"date": Date onlyExample:
// Get full date and time
get_time({ format: "full" })
// Get time only
get_time({ format: "time" })
// Get date only
get_time({ format: "date" })
Once configured, the MCP server will be available in your MCP-compatible client. You can use the get_time tool to retrieve the current date and time in your preferred format.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.