mcp_cuc_pbw
A simple MCP (Model Context Protocol) Server implementation in Python that provides a tool to get the current time with optional timezone support.
Version Compatibility
Requires Python 3.10 or higher.
Features
- Provides a
get_current_timetool to retrieve the current time - Supports optional timezone parameter
- Simple and lightweight implementation
- Clear documentation and examples
Requirements
- Python 3.10 or higher
- pytz (automatically installed)
Installation
From PyPI
pip install mcp_cuc_pbw
From Source
pip install -e .
Usage
Start the Server
mcp-server
By default, the server runs on http://localhost:8000.
You can specify a different host and port:
mcp-server --host 0.0.0.0 --port 8080
Using as a Module
from mcp_cuc_pbw import run_server
# Run the server on default host and port
run_server()
# Or specify host and port
run_server(host='0.0.0.0', port=8080)
Available Tools
get_current_time
Gets the current time with optional timezone support.
Parameters:
timezone(optional): Timezone string (e.g.,Asia/Shanghai,UTC,America/New_York)
Example Request:
{
"tool": "get_current_time",
"params": {
"timezone": "Asia/Shanghai"
}
}
Example Response:
{
"tool": "get_current_time",
"result": {
"current_time": "2024-01-16 14:30:45",
"timezone": "Asia/Shanghai"
}
}
Without Timezone:
{
"tool": "get_current_time"
}
Response:
{
"tool": "get_current_time",
"result": {
"current_time": "2024-01-16 14:30:45",
"timezone": "local"
}
}
MCP Protocol Reference
For more information about the Model Context Protocol:
Metadata
Release files for mcp_cuc_pbw 0.1.2
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 | |
|---|---|---|---|---|
| mcp_cuc_pbw-0.1.2.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_cuc_pbw-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / mcp_cuc_pbw-0.1.2.tar.gz
| Download URL | mcp_cuc_pbw-0.1.2.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
676d2f650243253f67054efcec4df5031c86d6f6875a61e9b2bc3819e5510564
|
|
BLAKE2b-256 checksum How to use checksums |
2c3a2447bbe9d450fb3e263040d098df1fcde41410b05642552bff668f792c23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.5 Windows/11
|
Release files / mcp_cuc_pbw-0.1.2-py3-none-any.whl
| Download URL | mcp_cuc_pbw-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c9e48965f5c31b2bcacc986f0dfc4e68942f4cc15cf0391dd7be986ab7047ec
|
|
BLAKE2b-256 checksum How to use checksums |
152d07ce57201d6c366cc1ee50a10783cfbe41ea7529dcb6ab7ca4a0acf5fb85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.5 Windows/11
|
Security for mcp_cuc_pbw 0.1.2
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.