DateTime-Local MCP Server

$uv run fastmcp dev main.py
README.md

Provides tools for retrieving the current local date and time.

MCP Server Setup Guide

A step-by-step guide to set up and run a Model Context Protocol (MCP) server using FastMCP.

Installation Steps

  • UV is a fast Python package manager. Install it using pip:
pip install uv
  • Verify installation:
uv --version
  • Create a new directory for your MCP server and initialize it:
mkdir mcp-server
cd mcp-server
uv init .
  • This creates the necessary project structure with:
    • pyproject.toml - Project configuration
    • .python-version - Python version specification
    • README.md - Project documentation
  • Add FastMCP to your project dependencies:
uv add fastmcp
  • Create a file named main.py with your server code:
  • Use the MCP Inspector to test your server interactively:
uv run fastmcp dev main.py
  • To run your server normally:
uv run fastmcp run main.py
  • Automatically configure Claude Desktop to use your MCP server:
uv run fastmcp install claude-desktop main.py

License

This project is licensed under the MIT License.

Configuration

claude_desktop_config.json
{"mcpServers":{"datetime-local":{"command":"uv","args":["run","fastmcp","run","main.py"]}}}

Try it

What is the current local date and time?
Tell me the local time right now.
What is today's date in my local timezone?
Get the current local datetime for me.
Provide the precise local time from the host environment.

Frequently Asked Questions

How do I install DateTime-Local MCP Server?

Install DateTime-Local MCP Server by running: uv run fastmcp dev main.py

What MCP clients work with DateTime-Local MCP Server?

DateTime-Local MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use DateTime-Local MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free