WorldTime MCP Server
A timezone MCP server based off OSS TimezoneDB API
Overview
WorldTime MCP Server is a simple server that provides the current time for various timezones using the OSS TimezoneDB API.
To use the server, register at TimezoneDB to obtain an API key, and configure your MCP client (like Claude) to connect to the server with the provided settings.
- Access to current time for multiple timezones. - Integration with the WorldTime API and TimezoneDB. - Easy configuration for use with MCP clients.
- Getting the current time for different geographical locations.
- Integrating timezone data into applications.
- Debugging and testing time-related functionalities in software.
Add to your AI client
Use these steps to connect WorldTime MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"worldtime-mcp-server-usrrname": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-worldtime-mcp-server-usrrname"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"worldtime-mcp-server-usrrname": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-worldtime-mcp-server-usrrname"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"worldtime-mcp-server-usrrname": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-worldtime-mcp-server-usrrname"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"worldtime-mcp-server-usrrname": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-worldtime-mcp-server-usrrname"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"worldtime-mcp-server-usrrname": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-worldtime-mcp-server-usrrname"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"worldtime-mcp-server-usrrname": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-worldtime-mcp-server-usrrname"
]
}
}
}FAQ
How do I get an API key for TimezoneDB?
You can register at [TimezoneDB](https://timezonedb.com/register) to create an API key.
Can I use this server for any programming language?
Yes! As long as your application can make HTTP requests, you can use this server.
Is there any cost associated with using the TimezoneDB API?
TimezoneDB offers both free and paid plans depending on your usage.