Simple Time MCP
A simple Model Context Protocol (MCP) server that provides the current date and time.
Features
Get current date and time in various formats
Lightweight and easy to use
Compatible with MCP-compatible clients
Installation
Using npm
Using npx (no installation required)
Manual Installation
Clone this repository:
Install dependencies:
Make the script executable:
Configuration
Add the following to your MCP configuration file (typically ~/.cursor/mcp.json):
Or if installed globally:
Tools
get_time
Get the current date and time.
Parameters:
format(optional): Format of the output"full"(default): Full date and time"time": Time only"date": Date only
Example:
Usage
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.
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.