|
| 1 | +# ⏰ Time MCP Server (Apify Actor) |
| 2 | + |
| 3 | +This Actor provides a Model Context Protocol (MCP) server for time and timezone conversion, running on the Apify platform. It enables LLMs and other clients to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## 🚩 Claim this MCP server |
| 8 | +All credits to the original authors of <https://github.com/modelcontextprotocol/servers/tree/main/src/time> |
| 9 | +To claim this server, please write to [[email protected]](mailto:[email protected]). |
| 10 | + |
| 11 | +--- |
| 12 | +## Features |
| 13 | + |
| 14 | +- **Current time lookup** in any IANA timezone |
| 15 | +- **Timezone conversion** between arbitrary IANA timezones |
| 16 | +- **Automatic system timezone detection** (can be overridden) |
| 17 | +- **Stdio MCP server** integration (runs `mcp-server-time` via `uvx`) |
| 18 | +- **Pay Per Event (PPE) billing** for each tool call |
| 19 | +- **Ready for Claude, Zed, VS Code, and other MCP clients** |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## Available Tools |
| 24 | + |
| 25 | +- `get_current_time` – Get current time in a specific timezone or system timezone |
| 26 | + - Arguments: `timezone` (string, IANA name, e.g. 'Europe/London') |
| 27 | +- `convert_time` – Convert time between timezones |
| 28 | + - Arguments: `source_timezone` (string), `time` (string, HH:MM), `target_timezone` (string) |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +## Usage |
| 33 | + |
| 34 | +### Local run |
| 35 | + |
| 36 | +```sh |
| 37 | +apify run -p |
| 38 | +``` |
| 39 | + |
| 40 | +### Example Interactions |
| 41 | + |
| 42 | +**Get current time:** |
| 43 | + |
| 44 | +```json |
| 45 | +{ |
| 46 | + "name": "get_current_time", |
| 47 | + "arguments": { "timezone": "Europe/Warsaw" } |
| 48 | +} |
| 49 | +``` |
| 50 | + |
| 51 | +**Convert time:** |
| 52 | + |
| 53 | +```json |
| 54 | +{ |
| 55 | + "name": "convert_time", |
| 56 | + "arguments": { |
| 57 | + "source_timezone": "America/New_York", |
| 58 | + "time": "16:30", |
| 59 | + "target_timezone": "Asia/Tokyo" |
| 60 | + } |
| 61 | +} |
| 62 | +``` |
| 63 | + |
| 64 | +--- |
| 65 | + |
| 66 | +## Configuration |
| 67 | + |
| 68 | +By default, the Actor launches `mcp-server-time` via `uvx` (recommended). To override the system timezone, set the `--local-timezone` argument in the command. |
| 69 | + |
| 70 | +For pip installs, adjust the command to `python` and args to `['-m', 'mcp_server_time']` in both `src/main.py` and your client config. |
| 71 | + |
| 72 | +--- |
| 73 | + |
| 74 | +## Billing (Pay Per Event) |
| 75 | + |
| 76 | +Each tool call is billed per event. See `.actor/pay_per_event.json` and `src/const.py`: |
| 77 | + |
| 78 | +```json |
| 79 | +{ |
| 80 | + "get_current_time": { "price": 0.0005 }, |
| 81 | + "convert_time": { "price": 0.0005 } |
| 82 | +} |
| 83 | +``` |
| 84 | + |
| 85 | +--- |
| 86 | + |
| 87 | +## Links & Resources |
| 88 | + |
| 89 | +- [MCP servers repo](https://github.com/apify/mcp-servers) |
| 90 | +- [MCP docs](https://mcp.apify.com) |
| 91 | +- [Model Context Protocol](https://modelcontextprotocol.io) |
| 92 | +- [Apify SDK for Python](https://docs.apify.com/sdk/python) |
| 93 | + |
| 94 | +--- |
| 95 | + |
| 96 | +## Claim this server |
| 97 | + |
| 98 | +To claim ownership or manage this MCP server, visit the [Model Context Protocol claim page](https://github.com/modelcontextprotocol/servers/tree/main/src/time). |
0 commit comments