A Model Context Protocol server that provides time
Time MCP Server

A Model Context Protocol server that provides time and timezone conversion capabilities.
# Time MCP Server
<!-- mcp-name: io.github.modelcontextprotocol/server-time -->
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.
Source: https://github.com/modelcontextprotocol/servers/tree/main/src/time
Requires MCP Python SDK 1.x (`mcp>=1.29.0,<2`). SDK 2.0 renamed APIs this server uses. The port to v2 is in progress.
### 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:Overview
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.
Manual install (npx, ZIP)
mkdir -p ~/.claude/agents && curl -sL https://raw.githubusercontent.com/modelcontextprotocol/servers/f46d9578190b476b3501923ea8977d899e8db2cb/src/time/README.md \
-o ~/.claude/agents/README.mdNew-Item -ItemType Directory -Force "$HOME\.claude\agents" | Out-Null; Invoke-WebRequest "https://raw.githubusercontent.com/modelcontextprotocol/servers/f46d9578190b476b3501923ea8977d899e8db2cb/src/time/README.md" -OutFile "$HOME\.claude\agents\README.md"Connects with Agent Alley MCP · agentalley.io/mcp
Files included
README.md7.4 KB
Read the files here
modelcontextprotocol/
Show the full text298 lines
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.
Source: https://github.com/modelcontextprotocol/servers/tree/main/src/time
Requires MCP Python SDK 1.x (mcp>=1.29.0,<2). SDK 2.0 renamed APIs this server uses. The port to v2 is in progress.
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')
- Required arguments:
convert_time- Convert time between timezones.- Required arguments:
source_timezone(string): Source IANA timezone nametime(string): Time in 24-hour format (HH:MM)target_timezone(string): Target IANA timezone name
- Required arguments:
Installation
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run mcp-server-time.
uvx mcp-server-time
Using PIP
Alternatively you can install mcp-server-time via pip:
pip install mcp-server-time
After installation, you can run it as a script using:
python -m mcp_server_time
Configuration
Configure for Claude.app
Add to your Claude settings:
Using uvx
{
"mcpServers": {
"time": {
"command": "uvx",
"args": ["mcp-server-time"]
}
}
}
Using docker
{
"mcpServers": {
"time": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "LOCAL_TIMEZONE", "mcp/time"]
}
}
}
Using pip installation
{
"mcpServers": {
"time": {
"command": "python",
"args": ["-m", "mcp_server_time"]
}
}
}
Configure for Zed
Add to your Zed settings.json:
Using uvx
"context_servers": [
"mcp-server-time": {
"command": "uvx",
"args": ["mcp-server-time"]
}
],
Using pip installation
"context_servers": {
"mcp-server-time": {
"command": "python",
"args": ["-m", "mcp_server_time"]
}
},
Configure for VS Code
For quick installation, use one of the one-click install buttons below...
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).
Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.
Note that the
mcpkey is needed when using themcp.jsonfile.
Using uvx
{
"mcp": {
"servers": {
"time": {
"command": "uvx",
"args": ["mcp-server-time"]
}
}
}
}
Using Docker
{
"mcp": {
"servers": {
"time": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/time"]
}
}
}
}
Configure for Zencoder
- Go to the Zencoder menu (...)
- From the dropdown menu, select
Agent Tools - Click on the
Add Custom MCP - Add the name and server configuration from below, and make sure to hit the
Installbutton
Using uvx
{
"command": "uvx",
"args": ["mcp-server-time"]
}
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:
{
"command": "python",
"args": ["-m", "mcp_server_time", "--local-timezone=America/New_York"]
}
Example Interactions
- Get current time:
{
"name": "get_current_time",
"arguments": {
"timezone": "Europe/Warsaw"
}
}
Response:
{
"timezone": "Europe/Warsaw",
"datetime": "2024-01-01T13:00:00+01:00",
"is_dst": false
}
- Convert time between timezones:
{
"name": "convert_time",
"arguments": {
"source_timezone": "America/New_York",
"time": "16:30",
"target_timezone": "Asia/Tokyo"
}
}
Response:
{
"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:
npx @modelcontextprotocol/inspector uvx mcp-server-time
Or if you've installed the package in a specific directory or are developing on it:
cd path/to/servers/src/time
npx @modelcontextprotocol/inspector uv run mcp-server-time
Examples of Questions for Claude
- "What time is it now?" (will use system timezone)
- "What time is it in Tokyo?"
- "When it's 4 PM in New York, what time is it in London?"
- "Convert 9:30 AM Tokyo time to New York time"
Build
Docker build:
cd src/time
docker build -t mcp/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.
| 1 | # Time MCP Server |
| 2 | |
| 3 | <!-- mcp-name: io.github.modelcontextprotocol/server-time --> |
| 4 | |
| 5 | 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. |
| 6 | |
| 7 | Source: https://github.com/modelcontextprotocol/servers/tree/main/src/time |
| 8 | |
| 9 | Requires MCP Python SDK 1.x (`mcp>=1.29.0,<2`). SDK 2.0 renamed APIs this server uses. The port to v2 is in progress. |
| 10 | |
| 11 | ### Available Tools |
| 12 | |
| 13 | `get_current_time` - Get current time in a specific timezone or system timezone. |
| 14 | Required arguments: |
| 15 | `timezone` (string): IANA timezone name (e.g., 'America/New_York', 'Europe/London') |
| 16 | |
| 17 | `convert_time` - Convert time between timezones. |
| 18 | Required arguments: |
| 19 | `source_timezone` (string): Source IANA timezone name |
| 20 | `time` (string): Time in 24-hour format (HH:MM) |
| 21 | `target_timezone` (string): Target IANA timezone name |
| 22 | |
| 23 | ## Installation |
| 24 | |
| 25 | ### Using uv (recommended) |
| 26 | |
| 27 | When using [`uv`] no specific installation is needed. We will |
| 28 | use [`uvx`] to directly run *mcp-server-time*. |
| 29 | |
| 30 | |
| 31 | uvx mcp-server-time |
| 32 | |
| 33 | |
| 34 | ### Using PIP |
| 35 | |
| 36 | Alternatively you can install `mcp-server-time` via pip: |
| 37 | |
| 38 | |
| 39 | pip install mcp-server-time |
| 40 | |
| 41 | |
| 42 | After installation, you can run it as a script using: |
| 43 | |
| 44 | |
| 45 | python -m mcp_server_time |
| 46 | |
| 47 | |
| 48 | ## Configuration |
| 49 | |
| 50 | ### Configure for Claude.app |
| 51 | |
| 52 | Add to your Claude settings: |
| 53 | |
| 54 | <details> |
| 55 | <summary>Using uvx</summary> |
| 56 | |
| 57 | |
| 58 | { |
| 59 | "mcpServers": { |
| 60 | "time": { |
| 61 | "command": "uvx", |
| 62 | "args": ["mcp-server-time"] |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | </details> |
| 68 | |
| 69 | <details> |
| 70 | <summary>Using docker</summary> |
| 71 | |
| 72 | |
| 73 | { |
| 74 | "mcpServers": { |
| 75 | "time": { |
| 76 | "command": "docker", |
| 77 | "args": ["run", "-i", "--rm", "-e", "LOCAL_TIMEZONE", "mcp/time"] |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | </details> |
| 83 | |
| 84 | <details> |
| 85 | <summary>Using pip installation</summary> |
| 86 | |
| 87 | |
| 88 | { |
| 89 | "mcpServers": { |
| 90 | "time": { |
| 91 | "command": "python", |
| 92 | "args": ["-m", "mcp_server_time"] |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | </details> |
| 98 | |
| 99 | ### Configure for Zed |
| 100 | |
| 101 | Add to your Zed settings.json: |
| 102 | |
| 103 | <details> |
| 104 | <summary>Using uvx</summary> |
| 105 | |
| 106 | |
| 107 | "context_servers": [ |
| 108 | "mcp-server-time": { |
| 109 | "command": "uvx", |
| 110 | "args": ["mcp-server-time"] |
| 111 | } |
| 112 | ], |
| 113 | |
| 114 | </details> |
| 115 | |
| 116 | <details> |
| 117 | <summary>Using pip installation</summary> |
| 118 | |
| 119 | |
| 120 | "context_servers": { |
| 121 | "mcp-server-time": { |
| 122 | "command": "python", |
| 123 | "args": ["-m", "mcp_server_time"] |
| 124 | } |
| 125 | }, |
| 126 | |
| 127 | </details> |
| 128 | |
| 129 | ### Configure for VS Code |
| 130 | |
| 131 | For quick installation, use one of the one-click install buttons below... |
| 132 | |
| 133 | [![Install with UV in VS Code]](https://insiders.vscode.dev/redirect/mcp/install?name=time&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mcp-server-time%22%5D%7D) [![Install with UV in VS Code Insiders]](https://insiders.vscode.dev/redirect/mcp/install?name=time&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mcp-server-time%22%5D%7D&quality=insiders) |
| 134 | |
| 135 | [![Install with Docker in VS Code]](https://insiders.vscode.dev/redirect/mcp/install?name=time&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22mcp%2Ftime%22%5D%7D) [![Install with Docker in VS Code Insiders]](https://insiders.vscode.dev/redirect/mcp/install?name=time&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22mcp%2Ftime%22%5D%7D&quality=insiders) |
| 136 | |
| 137 | For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open User Settings (JSON)`. |
| 138 | |
| 139 | Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with others. |
| 140 | |
| 141 | > Note that the `mcp` key is needed when using the `mcp.json` file. |
| 142 | |
| 143 | <details> |
| 144 | <summary>Using uvx</summary> |
| 145 | |
| 146 | |
| 147 | { |
| 148 | "mcp": { |
| 149 | "servers": { |
| 150 | "time": { |
| 151 | "command": "uvx", |
| 152 | "args": ["mcp-server-time"] |
| 153 | } |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | </details> |
| 159 | |
| 160 | <details> |
| 161 | <summary>Using Docker</summary> |
| 162 | |
| 163 | |
| 164 | { |
| 165 | "mcp": { |
| 166 | "servers": { |
| 167 | "time": { |
| 168 | "command": "docker", |
| 169 | "args": ["run", "-i", "--rm", "mcp/time"] |
| 170 | } |
| 171 | } |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | </details> |
| 176 | |
| 177 | ### Configure for Zencoder |
| 178 | |
| 179 | Go to the Zencoder menu (...) |
| 180 | From the dropdown menu, select `Agent Tools` |
| 181 | Click on the `Add Custom MCP` |
| 182 | Add the name and server configuration from below, and make sure to hit the `Install` button |
| 183 | |
| 184 | <details> |
| 185 | <summary>Using uvx</summary> |
| 186 | |
| 187 | |
| 188 | { |
| 189 | "command": "uvx", |
| 190 | "args": ["mcp-server-time"] |
| 191 | } |
| 192 | |
| 193 | </details> |
| 194 | |
| 195 | ### Customization - System Timezone |
| 196 | |
| 197 | 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. |
| 198 | |
| 199 | Example: |
| 200 | |
| 201 | { |
| 202 | "command": "python", |
| 203 | "args": ["-m", "mcp_server_time", "--local-timezone=America/New_York"] |
| 204 | } |
| 205 | |
| 206 | |
| 207 | ## Example Interactions |
| 208 | |
| 209 | Get current time: |
| 210 | |
| 211 | { |
| 212 | "name": "get_current_time", |
| 213 | "arguments": { |
| 214 | "timezone": "Europe/Warsaw" |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | Response: |
| 219 | |
| 220 | { |
| 221 | "timezone": "Europe/Warsaw", |
| 222 | "datetime": "2024-01-01T13:00:00+01:00", |
| 223 | "is_dst": false |
| 224 | } |
| 225 | |
| 226 | |
| 227 | Convert time between timezones: |
| 228 | |
| 229 | { |
| 230 | "name": "convert_time", |
| 231 | "arguments": { |
| 232 | "source_timezone": "America/New_York", |
| 233 | "time": "16:30", |
| 234 | "target_timezone": "Asia/Tokyo" |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | Response: |
| 239 | |
| 240 | { |
| 241 | "source": { |
| 242 | "timezone": "America/New_York", |
| 243 | "datetime": "2024-01-01T12:30:00-05:00", |
| 244 | "is_dst": false |
| 245 | }, |
| 246 | "target": { |
| 247 | "timezone": "Asia/Tokyo", |
| 248 | "datetime": "2024-01-01T12:30:00+09:00", |
| 249 | "is_dst": false |
| 250 | }, |
| 251 | "time_difference": "+13.0h", |
| 252 | } |
| 253 | |
| 254 | |
| 255 | ## Debugging |
| 256 | |
| 257 | You can use the MCP inspector to debug the server. For uvx installations: |
| 258 | |
| 259 | |
| 260 | npx @modelcontextprotocol/inspector uvx mcp-server-time |
| 261 | |
| 262 | |
| 263 | Or if you've installed the package in a specific directory or are developing on it: |
| 264 | |
| 265 | |
| 266 | cd path/to/servers/src/time |
| 267 | npx @modelcontextprotocol/inspector uv run mcp-server-time |
| 268 | |
| 269 | |
| 270 | ## Examples of Questions for Claude |
| 271 | |
| 272 | "What time is it now?" (will use system timezone) |
| 273 | "What time is it in Tokyo?" |
| 274 | "When it's 4 PM in New York, what time is it in London?" |
| 275 | "Convert 9:30 AM Tokyo time to New York time" |
| 276 | |
| 277 | ## Build |
| 278 | |
| 279 | Docker build: |
| 280 | |
| 281 | |
| 282 | cd src/time |
| 283 | docker build -t mcp/time . |
| 284 | |
| 285 | |
| 286 | ## Contributing |
| 287 | |
| 288 | 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. |
| 289 | |
| 290 | For examples of other MCP servers and implementation patterns, see: |
| 291 | https://github.com/modelcontextprotocol/servers |
| 292 | |
| 293 | Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-time even more powerful and useful. |
| 294 | |
| 295 | ## License |
| 296 | |
| 297 | 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. |
| 298 |
Details
- Updated
- Sep 3, 2026
- License
- MIT
- Stars on the repo
- ★ 90,538
- Checked
- Source
- modelcontextprotocol/servers ↗
- Creator
- modelcontextprotocol · 7 listings
Similar MCP servers
See all →
SkillTests in real browsers via Chrome DevTools MCPBrowser testing with devtools
MCPThis MCP server attempts to exercise all the featuresEverything MCP Server
MCPA Model Context Protocol server that provides web contentFetch MCP Server
MCPNode.js server implementing Model Context ProtocolFilesystem MCP Server
SkillAbout libraries, frameworks, API referencesContext7 MCP
SkillUses Chrome DevTools via MCP for efficient debuggingMore from modelcontextprotocol
MCPThis MCP server attempts to exercise all the featuresEverything MCP Server
MCPA Model Context Protocol server that provides web contentFetch MCP Server
MCPNode.js server implementing Model Context ProtocolFilesystem MCP Server
MCPA basic implementation of persistent memory using a localKnowledge Graph Memory Server
MCPA Model Context Protocol server for Git repositorymcp-server-git: A git MCP server
MCPAn MCP server implementation that provides a toolSequential Thinking MCP Server