Time Server MCP
A time server tool built with FastMCP that provides current time information.
Features
- Get current time in any timezone
- Simple and easy-to-use API
- Built with FastMCP for efficient communication
Installation
pip install time-server-mcp
Usage
Running the Server
python -m time_server
Using the Tool
The server provides a get_current_time tool that can be called with an optional timezone parameter.
Example usage:
from mcp.client import MCPClient
# Connect to the server
client = MCPClient()
# Get current time in system default timezone
result = client.call("get_current_time")
print(result)
# Get current time in a specific timezone
result = client.call("get_current_time", timezone="Asia/Shanghai")
print(result)
API
get_current_time(timezone: Optional[str] = None) -> str
Gets the current time.
Parameters:
timezone: Optional timezone string, e.g., "Asia/Shanghai", "America/New_York". If not provided, system default timezone is used.
Returns:
- Formatted current time string in the format:
YYYY-MM-DD HH:MM:SS.SSSSSS TIMEZONE
License
MIT
Metadata
Release files for homo-his-heart-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| homo_his_heart_mcp-0.1.1.tar.gz | 3.5 kB | Without provenance | Details for homo_his_heart_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| homo_his_heart_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for homo_his_heart_mcp-0.1.1-py3-none-any.whl |
Total release size: 7.4 kB
Release files / homo_his_heart_mcp-0.1.1.tar.gz
| Download URL | homo_his_heart_mcp-0.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67ce1a148d97b6ae75e2efbc54daf68b8789b06bf665c020083b62718acfa534
|
|
BLAKE2b-256 checksum How to use checksums |
95be2941a10c219f8f4161095db6355f207293d02afb7c662427ea3e11df5f76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.10 Windows/11
|
Release files / homo_his_heart_mcp-0.1.1-py3-none-any.whl
| Download URL | homo_his_heart_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3eea8c63447f45709acb669277bf9ff789d7b4d8f0fe7a263dd57ec39470ba6d
|
|
BLAKE2b-256 checksum How to use checksums |
45e9d77872881655405831cfd8c2e41e7b4bfd399ef038cb7f80969d3d4dba36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.10 Windows/11
|
Security for homo-his-heart-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.