Metadata-Version: 2.4
Name: mcp-timeserver-fastmcp
Version: 0.1.1
Summary: An MCP server for providing the current date/time to LLMs
Project-URL: Homepage, https://github.com/fastmcp-me/mcp-timeserver#readme
Project-URL: Repository, https://github.com/fastmcp-me/mcp-timeserver.git
Project-URL: Issues, https://github.com/fastmcp-me/mcp-timeserver/issues
Author-email: TerminalMan <84923604+SecretiveShell@users.noreply.github.com>
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: mcp>=1.1.2
Requires-Dist: tzdata>=2024.2
Description-Content-Type: text/markdown

[![Add to Cursor](https://fastmcp.me/badges/cursor_dark.svg)](https://fastmcp.me/MCP/Details/669/timeserver)
[![Add to VS Code](https://fastmcp.me/badges/vscode_dark.svg)](https://fastmcp.me/MCP/Details/669/timeserver)
[![Add to Claude](https://fastmcp.me/badges/claude_dark.svg)](https://fastmcp.me/MCP/Details/669/timeserver)
[![Add to ChatGPT](https://fastmcp.me/badges/chatgpt_dark.svg)](https://fastmcp.me/MCP/Details/669/timeserver)
[![Add to Codex](https://fastmcp.me/badges/codex_dark.svg)](https://fastmcp.me/MCP/Details/669/timeserver)
[![Add to Gemini](https://fastmcp.me/badges/gemini_dark.svg)](https://fastmcp.me/MCP/Details/669/timeserver)

# MCP-timeserver

A simple MCP server that exposes datetime information to agentic systems and chat REPLs

<a href="https://glama.ai/mcp/servers/tth5eto5n7"><img width="380" height="200" src="https://glama.ai/mcp/servers/tth5eto5n7/badge" alt="MCP-timeserver MCP server" /></a>

## Components

### Resources

The server implements a simple datetime:// URI scheme for accessing the current date/time in a given timezone, for example:
```
datetime://Africa/Freetown/now
datetime://Europe/London/now
datetime://America/New_York/now
```

### Tools

The server exposes a tool to get the current local time in the system timezone:
```python
>>> get_current_time()
"The current time is 2024-12-18 19:59:36"
```

## Quickstart

### Install

use the following json

```json
{
  "mcpServers": {
    "MCP-timeserver": {
      "command": "uvx",
      "args": ["MCP-timeserver"]
    }
  }
}
```
