what is Time Server?
Time Server is an MCP server designed for timezone conversions and time-related operations, adhering to the Model Context Protocol standards.
how to use Time Server?
To use Time Server, install it via Smithery or manually, then start the server and utilize the provided API endpoints to get current time or convert time between timezones.
key features of Time Server?
- Get current time in any timezone
- Convert time between timezones
- Built with MCP protocol standards
- Type-safe Python implementation
- RESTful API endpoints
- Comprehensive error handling
- Timezone database integration
use cases of Time Server?
- Converting meeting times across different timezones.
- Displaying current local time for users in various regions.
- Integrating time-related functionalities into applications.
FAQ from Time Server?
- Can Time Server handle all timezones?
Yes! Time Server supports all IANA timezones for accurate conversions.
- Is Time Server easy to install?
Yes! You can install it automatically via Smithery or manually using pip.
- What programming language is Time Server built with?
Time Server is built with Python.
Time Server
An MCP server for timezone conversions and time-related operations, built with the Model Context Protocol standards.
Table of Contents
Features
- Get current time in any timezone
- Convert time between timezones
- Built with MCP protocol standards
- Type-safe Python implementation
- RESTful API endpoints
- Comprehensive error handling
- Timezone database integration
Installation
Installing via Smithery
To install Time Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @clssck/mcp-time-server --client claude
Manual Installation
pip install .
Usage
Start the server:
python -m time_server
API Documentation
Tools
get_current_time
Get current time in a specific timezone
Parameters:
timezone
: string - IANA timezone identifier (e.g. "America/New_York")
Returns:
- Current time in ISO 8601 format
convert_time
Convert time between timezones
Parameters:
time
: string - Time to convert in ISO 8601 formatfrom_timezone
: string - Source timezoneto_timezone
: string - Target timezone
Returns:
- Converted time in ISO 8601 format
Development
Install development dependencies:
pip install -e .[dev]
Run tests:
pytest
Check code quality:
ruff check .
mypy src
Code of Conduct
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code.
License
MIT