gettime-mcp
A local FastMCP server (stdio) with two tools:
get_local_timeconvert_time_between_timezones
Requirements
- Python 3.13+
uv
Setup
uv sync --all-groups
Run
uv run gettime-mcp
Tools
get_local_time
Input:
- none
Output JSON:
local_iso: ISO 8601 local datetime with offsetweekday: weekday name in current local timezone (MondaytoSunday)timezone_name: local timezone nameutc_offset:+HH:MM/-HH:MMunix_timestamp: seconds timestamp
convert_time_between_timezones
Input:
datetime_iso(required): ISO 8601 datetime string (supportsZ)to_timezone(required): IANA timezone name (for exampleUTC,Asia/Shanghai)from_timezone(optional): used only whendatetime_isohas no offset
Output JSON:
input_datetime_isosource_timezonetarget_timezoneconverted_isoconverted_unix_timestamp
Error behavior:
- invalid timezone:
Invalid timezone: <name> - invalid datetime format:
Invalid datetime_iso format - if
datetime_isoalready has an offset,from_timezoneis ignored
Cursor / Cline (local MCP)
Add to your MCP config (path depends on your editor installation):
{
"mcpServers": {
"gettime-local": {
"command": "uv",
"args": ["run", "gettime-mcp"],
"cwd": "<ABSOLUTE_PROJECT_PATH>"
}
}
}
Example cwd on Windows: D:\\path\\to\\gettime
Tests
uv run pytest
Publish To PyPI (safe)
Build and validate:
uv build
uvx twine check dist/*
Publish with environment variable (do not paste token in files):
$env:PYPI_TOKEN = "pypi-***"
uvx twine upload dist/* -u __token__ -p $env:PYPI_TOKEN
Security Notes
- Never commit tokens, cookies, or API keys.
- Do not hardcode local absolute paths in public docs.
- If a token was exposed, revoke and rotate it immediately.
Metadata
Release files for gettime-mcp 0.1.0
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 | |
|---|---|---|---|---|
| gettime_mcp-0.1.0.tar.gz | 53.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gettime_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.8 kB
Release files / gettime_mcp-0.1.0.tar.gz
| Download URL | gettime_mcp-0.1.0.tar.gz |
|---|---|
| Size | 53.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a461616307f178d78ead1cf8ededd4d5d54469e4dcaeefea051fdfb95628188a
|
|
BLAKE2b-256 checksum How to use checksums |
cae1c7adc98cbfb7b2f9e187151df19e96a4f0969d8208f0933b2b37dd81854b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / gettime_mcp-0.1.0-py3-none-any.whl
| Download URL | gettime_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3eda7b49ec21b99f13b09f7084c4ef8f5a87667cd72767ac85421a8997387b79
|
|
BLAKE2b-256 checksum How to use checksums |
1535687c24bb724aba5b8c5699906e0e07b42844f207869f82f817b032ffb521
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for gettime-mcp 0.1.0
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.