Name | mcp-server-time JSON |
Version |
0.6.1
JSON |
| download |
home_page | None |
Summary | A Model Context Protocol server providing tools for time queries and timezone conversions for LLMs |
upload_time | 2024-11-29 18:02:13 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT |
keywords |
llm
mcp
time
timezone
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Time MCP Server
A Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
### Available Tools
- `get_current_time` - Get current time in a specific timezone or system timezone.
- Required arguments:
- `timezone` (string): IANA timezone name (e.g., 'America/New_York', 'Europe/London')
- `convert_time` - Convert time between timezones.
- Required arguments:
- `source_timezone` (string): Source IANA timezone name
- `time` (string): Time in 24-hour format (HH:MM)
- `target_timezone` (string): Target IANA timezone name
## Installation
### Using uv (recommended)
When using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will
use [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *mcp-server-time*.
### Using PIP
Alternatively you can install `mcp-server-time` via pip:
```bash
pip install mcp-server-time
```
After installation, you can run it as a script using:
```bash
python -m mcp_server_time
```
## Configuration
### Configure for Claude.app
Add to your Claude settings:
<details>
<summary>Using uvx</summary>
```json
"mcpServers": {
"time": {
"command": "uvx",
"args": ["mcp-server-time"]
}
}
```
</details>
<details>
<summary>Using pip installation</summary>
```json
"mcpServers": {
"time": {
"command": "python",
"args": ["-m", "mcp_server_time"]
}
}
```
</details>
### Configure for Zed
Add to your Zed settings.json:
<details>
<summary>Using uvx</summary>
```json
"context_servers": [
"mcp-server-time": {
"command": "uvx",
"args": ["mcp-server-time"]
}
],
```
</details>
<details>
<summary>Using pip installation</summary>
```json
"context_servers": {
"mcp-server-time": {
"command": "python",
"args": ["-m", "mcp_server_time"]
}
},
```
</details>
### Customization - System Timezone
By default, the server automatically detects your system's timezone. You can override this by adding the argument `--local-timezone` to the `args` list in the configuration.
Example:
```json
{
"command": "python",
"args": ["-m", "mcp_server_time", "--local-timezone=America/New_York"]
}
```
## Example Interactions
1. Get current time:
```json
{
"name": "get_current_time",
"arguments": {
"timezone": "Europe/Warsaw"
}
}
```
Response:
```json
{
"timezone": "Europe/Warsaw",
"datetime": "2024-01-01T13:00:00+01:00",
"is_dst": false
}
```
2. Convert time between timezones:
```json
{
"name": "convert_time",
"arguments": {
"source_timezone": "America/New_York",
"time": "16:30",
"target_timezone": "Asia/Tokyo"
}
}
```
Response:
```json
{
"source": {
"timezone": "America/New_York",
"datetime": "2024-01-01T12:30:00-05:00",
"is_dst": false
},
"target": {
"timezone": "Asia/Tokyo",
"datetime": "2024-01-01T12:30:00+09:00",
"is_dst": false
},
"time_difference": "+13.0h",
}
```
## Debugging
You can use the MCP inspector to debug the server. For uvx installations:
```bash
npx @modelcontextprotocol/inspector uvx mcp-server-time
```
Or if you've installed the package in a specific directory or are developing on it:
```bash
cd path/to/servers/src/time
npx @modelcontextprotocol/inspector uv run mcp-server-time
```
## Examples of Questions for Claude
1. "What time is it now?" (will use system timezone)
2. "What time is it in Tokyo?"
3. "When it's 4 PM in New York, what time is it in London?"
4. "Convert 9:30 AM Tokyo time to New York time"
## Contributing
We encourage contributions to help expand and improve mcp-server-time. Whether you want to add new time-related tools, enhance existing functionality, or improve documentation, your input is valuable.
For examples of other MCP servers and implementation patterns, see:
https://github.com/modelcontextprotocol/servers
Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-time even more powerful and useful.
## License
mcp-server-time is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Raw data
{
"_id": null,
"home_page": null,
"name": "mcp-server-time",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "llm, mcp, time, timezone",
"author": null,
"author_email": "Mariusz 'maledorak' Korzekwa <mariusz@korzekwa.dev>",
"download_url": "https://files.pythonhosted.org/packages/3c/c0/50f8f7c6f686d6847af5f63e5b1df6d701b200cd1b0f15fc15ce917c39fc/mcp_server_time-0.6.1.tar.gz",
"platform": null,
"description": "# Time MCP Server\n\nA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.\n\n### Available Tools\n\n- `get_current_time` - Get current time in a specific timezone or system timezone.\n - Required arguments:\n - `timezone` (string): IANA timezone name (e.g., 'America/New_York', 'Europe/London')\n\n- `convert_time` - Convert time between timezones.\n - Required arguments:\n - `source_timezone` (string): Source IANA timezone name\n - `time` (string): Time in 24-hour format (HH:MM)\n - `target_timezone` (string): Target IANA timezone name\n\n## Installation\n\n### Using uv (recommended)\n\nWhen using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will\nuse [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *mcp-server-time*.\n\n### Using PIP\n\nAlternatively you can install `mcp-server-time` via pip:\n\n```bash\npip install mcp-server-time\n```\n\nAfter installation, you can run it as a script using:\n\n```bash\npython -m mcp_server_time\n```\n\n## Configuration\n\n### Configure for Claude.app\n\nAdd to your Claude settings:\n\n<details>\n<summary>Using uvx</summary>\n\n```json\n\"mcpServers\": {\n \"time\": {\n \"command\": \"uvx\",\n \"args\": [\"mcp-server-time\"]\n }\n}\n```\n</details>\n\n<details>\n<summary>Using pip installation</summary>\n\n```json\n\"mcpServers\": {\n \"time\": {\n \"command\": \"python\",\n \"args\": [\"-m\", \"mcp_server_time\"]\n }\n}\n```\n</details>\n\n### Configure for Zed\n\nAdd to your Zed settings.json:\n\n<details>\n<summary>Using uvx</summary>\n\n```json\n\"context_servers\": [\n \"mcp-server-time\": {\n \"command\": \"uvx\",\n \"args\": [\"mcp-server-time\"]\n }\n],\n```\n</details>\n\n<details>\n<summary>Using pip installation</summary>\n\n```json\n\"context_servers\": {\n \"mcp-server-time\": {\n \"command\": \"python\",\n \"args\": [\"-m\", \"mcp_server_time\"]\n }\n},\n```\n</details>\n\n### Customization - System Timezone\n\nBy default, the server automatically detects your system's timezone. You can override this by adding the argument `--local-timezone` to the `args` list in the configuration.\n\nExample:\n```json\n{\n \"command\": \"python\",\n \"args\": [\"-m\", \"mcp_server_time\", \"--local-timezone=America/New_York\"]\n}\n```\n\n## Example Interactions\n\n1. Get current time:\n```json\n{\n \"name\": \"get_current_time\",\n \"arguments\": {\n \"timezone\": \"Europe/Warsaw\"\n }\n}\n```\nResponse:\n```json\n{\n \"timezone\": \"Europe/Warsaw\",\n \"datetime\": \"2024-01-01T13:00:00+01:00\",\n \"is_dst\": false\n}\n```\n\n2. Convert time between timezones:\n```json\n{\n \"name\": \"convert_time\",\n \"arguments\": {\n \"source_timezone\": \"America/New_York\",\n \"time\": \"16:30\",\n \"target_timezone\": \"Asia/Tokyo\"\n }\n}\n```\nResponse:\n```json\n{\n \"source\": {\n \"timezone\": \"America/New_York\",\n \"datetime\": \"2024-01-01T12:30:00-05:00\",\n \"is_dst\": false\n },\n \"target\": {\n \"timezone\": \"Asia/Tokyo\",\n \"datetime\": \"2024-01-01T12:30:00+09:00\",\n \"is_dst\": false\n },\n \"time_difference\": \"+13.0h\",\n}\n```\n\n## Debugging\n\nYou can use the MCP inspector to debug the server. For uvx installations:\n\n```bash\nnpx @modelcontextprotocol/inspector uvx mcp-server-time\n```\n\nOr if you've installed the package in a specific directory or are developing on it:\n\n```bash\ncd path/to/servers/src/time\nnpx @modelcontextprotocol/inspector uv run mcp-server-time\n```\n\n## Examples of Questions for Claude\n\n1. \"What time is it now?\" (will use system timezone)\n2. \"What time is it in Tokyo?\"\n3. \"When it's 4 PM in New York, what time is it in London?\"\n4. \"Convert 9:30 AM Tokyo time to New York time\"\n\n## Contributing\n\nWe encourage contributions to help expand and improve mcp-server-time. Whether you want to add new time-related tools, enhance existing functionality, or improve documentation, your input is valuable.\n\nFor examples of other MCP servers and implementation patterns, see:\nhttps://github.com/modelcontextprotocol/servers\n\nPull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-time even more powerful and useful.\n\n## License\n\nmcp-server-time is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Model Context Protocol server providing tools for time queries and timezone conversions for LLMs",
"version": "0.6.1",
"project_urls": null,
"split_keywords": [
"llm",
" mcp",
" time",
" timezone"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "117c196533ff1408dbc077a351c64890b0e0999a76d0db39cf6ab58b6d4ac6ce",
"md5": "7941af80039a341241cdde3204c07a6f",
"sha256": "30a6b67187ec56eb7020e728f4aa7277001500ef6ce935f0361699e45b949034"
},
"downloads": -1,
"filename": "mcp_server_time-0.6.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7941af80039a341241cdde3204c07a6f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 5691,
"upload_time": "2024-11-29T18:02:02",
"upload_time_iso_8601": "2024-11-29T18:02:02.235914Z",
"url": "https://files.pythonhosted.org/packages/11/7c/196533ff1408dbc077a351c64890b0e0999a76d0db39cf6ab58b6d4ac6ce/mcp_server_time-0.6.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3cc050f8f7c6f686d6847af5f63e5b1df6d701b200cd1b0f15fc15ce917c39fc",
"md5": "93c6fea9d52c1ddb8067f324ca6f69f4",
"sha256": "66aab55d5d9e1f228f04f7b2e1daefeab12c7ac6725cf40e149a31c4fd61b404"
},
"downloads": -1,
"filename": "mcp_server_time-0.6.1.tar.gz",
"has_sig": false,
"md5_digest": "93c6fea9d52c1ddb8067f324ca6f69f4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 26716,
"upload_time": "2024-11-29T18:02:13",
"upload_time_iso_8601": "2024-11-29T18:02:13.131363Z",
"url": "https://files.pythonhosted.org/packages/3c/c0/50f8f7c6f686d6847af5f63e5b1df6d701b200cd1b0f15fc15ce917c39fc/mcp_server_time-0.6.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-29 18:02:13",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mcp-server-time"
}