Add it to Claude Code
claude mcp add datetime-local -- uv run main.pyMake your agent remember this setup
datetime-local's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.
npx conare@latestFree · one command · indexes the sessions already on disk. Set up in the browser instead →
What it does
- Retrieves precise local date and time
- Built with FastMCP framework
- Direct access to host environment temporal data
Tools 1
get_current_datetimeRetrieves the current local date and time from the host system.Try it
Original README from VikasPrajapati1998/DateTime-LocalMCPServer
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.