datetime-mcp-server

datetime-mcp-server

3.2

If you are the rightful owner of datetime-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Datetime MCP Server is a simple server that provides the current date and time through a Claude tool.

🕰️ Datetime MCP Server

A simple MCP server that provides the current date and time through a Claude tool.

🚀 Installation

# Clone the repository
git clone https://github.com/BfdCampos/datetime-mcp-server.git
cd datetime-mcp-server

# Install dependencies
uv install

🔧 Setup with Claude Desktop

Method 1: Automatic Installation

Use the MCP CLI tool to install the server automatically:

uv run mcp install main.py

Method 2: Manual Configuration

Add the server to your Claude Desktop configuration file located at ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "Datetime": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/path/to/your/datetime-mcp-server/main.py"
      ]
    }
  }
}

Note: Replace /path/to/your/ with your actual paths.

🤖 Using with Claude Desktop

  1. Restart Claude Desktop after installation.
  2. Open the app and start a new conversation.
  3. You can now ask for the current date and time to Claude.

/path/to/your/.local/bin/uv

❓ FAQ

My Claude Desktop is not detecting the server
  • Ensure you have the latest version of Claude Desktop.
  • Restart Claude Desktop by force quitting the app and reopening it.
  • Make sure your path is correct in the configuration file.
  • Use the absolute path to your uv installation, e.g., /Users/[Your Home Directory]/.local/bin/uv in the command section of the configuration file. It should look like this:
{
  "mcpServers": {
    "Datetime": {
      "command": "/Users/[Your Home Directory]/.local/bin/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/path/to/your/datetime-mcp-server/main.py"
      ]
    }
  }
}
I've asked Claude what the time is but it's not using the MCP server
  • LLMs like Claude may not always use the MCP server for every request. If it doesn't use the server, try asking again or rephrasing your question specifically asking it to use the MCP Server.