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 specificationREADME.md- Project documentation
- Add FastMCP to your project dependencies:
uv add fastmcp
- Create a file named
main.pywith your server code: - Use the
MCP Inspectorto 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.