home / mcp / beijing time mcp server
Beijing Time MCP Server - A Model Context Protocol server for Beijing timezone information
Configuration
View docs{
"mcpServers": {
"archerlliu-time-mcp": {
"command": "beijing-time-mcp",
"args": [],
"env": {
"PYTHONPATH": "<PYTHONPATH>"
}
}
}
}Beijing Time MCP Server provides a straightforward way to query the current Beijing time, format it in various ways, and receive timezone and ISO timestamp information through the MCP (Model Context Protocol) interface. This is useful for apps and assistants that need consistent, locale-specific time data.
Run the MCP server locally to start serving Beijing time data. Then connect your MCP client to request the current time in your preferred format. You can retrieve the formatted time, the timezone, the Unix timestamp, and an ISO 8601 representation in a single response.
Prerequisites: Python and Pip must be available on your system.
From PyPI install the package with a single command.
pip install beijing-time-mcpIf you prefer to install from source, clone the repository, install dependencies, and install in editable mode.
git clone https://github.com/archerliu/beijing-time-mcp.git
cd beijing-time-mcp
pip install -e .You can run the MCP server directly to start serving time data.
beijing-time-mcpIf you want to configure a client (for example, a desktop configuration) to use this MCP server, you can point the client to the running command as shown in the example configuration.
{
"mcpServers": {
"beijing-time": {
"command": "beijing-time-mcp"
}
}
}The server supports multiple output formats for the current Beijing time. Common options include, but are not limited to:
Developers can install development dependencies, run tests, format code, and perform type checks to help ensure the project stays robust.
pip install -e ".[dev]"
pytest
black .
isort .
mypy beijing_time_mcpFetches the current Beijing time and returns formatted time, timezone, timestamp, and ISO format. Supports multiple formats including standard, date-only, time-only, and Chinese representations.