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., "@time-mcpWhat time is it?"
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.
:star: Love Time MCP? Give us a star to help other developers discover it!
📋 Table of Contents
Related MCP server: Utility MCP Server
📄 Overview
Time MCP is a simple and lightweight Model Context Protocol (MCP) server that provides tools to fetch the current date and time from your system. It's perfect for integrating time-related functionality into Claude, Gemini CLI, and other MCP-compatible LLM applications.
This MCP demonstrates core MCP functionality with a focused, practical use case that works reliably across all MCP-compatible platforms.
Features
This MCP provides the following tools:
get_current_time() - Returns the current time in HH:MM:SS format
get_current_date() - Returns the current date in YYYY-MM-DD format
get_current_datetime() - Returns both date and time in ISO 8601 format
get_time_components() - Returns detailed breakdown of time (year, month, day, hour, minute, second, day of week)
get_unix_timestamp() - Returns the current Unix timestamp
🚀 Quick Start (Local Development)
Prerequisites
Python 3.9 or higher
pip
From PyPI (Recommended)
Once published, you can install directly from PyPI:
pip install time-mcpFrom Source (Development)
Clone the repository:
git clone https://github.com/DochertyDev/time-mcp.gitNavigate to the project directory:
cd time-mcpInstall in development mode:
pip install -e .Or install dependencies manually:
pip install -r requirements.txt
Running the Server
To start the MCP server:
python src/server.pyThe server will start and wait for incoming MCP protocol connections.
Testing with MCP Inspector
To debug and test your MCP with the MCP Inspector:
mcp dev src/server.pyThis will open the MCP Inspector interface where you can test each tool interactively.
⚙️ Usage
Using with Claude Desktop
To add this MCP to Claude Desktop, update your claude_desktop_config.json:
If installed from PyPI:
{
"mcpServers": {
"time-mcp": {
"command": "time-mcp"
}
}
}If installed from source:
{
"mcpServers": {
"time-mcp": {
"command": "python",
"args": ["C:\\path\\to\\time-mcp\\src\\server.py"]
}
}
}Replace C:\path\to\time-mcp with the actual path to your time-mcp directory.
Using with Gemini CLI
Add to your Gemini CLI settings.json:
{
"mcpServers": {
"time-mcp": {
"command": "time-mcp"
}
}
}🛠️ Technologies Used
FastMCP Framework
Python 3.9+
pip
🔒 Security Notes
This MCP only accesses time-related information from your system
No file system access
No network requests
No external API calls
No credentials or secrets required
❓ Troubleshooting
Issue: MCP Inspector won't connect
Solution: Ensure Python 3.9+ is installed and the mcp package is available
Issue: Tools not appearing in Claude
Solution: Make sure the MCP server is running and properly configured in claude_desktop_config.json
Issue: Import errors
Solution: Run
pip install -r requirements.txtto ensure all dependencies are installed
🤝 Contributing
We welcome contributions from the community! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.
🌟 Support the Project
Love Time MCP? Give us a ⭐ on GitHub!
If you encounter any issues, please open an issue here.
⚠️ Disclaimer
This project is intended for educational and experimental use. While every effort has been made to ensure its reliability, please use it responsibly and note that the authors cannot provide guarantees for every situation.
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.
Latest Blog Posts
- 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/DochertyDev/time-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server