MCP Current Time Server
A minimal Model Context Protocol (MCP) server that provides current local datetime information. This server serves as a blueprint for building simple, single-purpose MCP servers.
Features
current-time: Get current local datetime in a simple single-line format
Quick Start
Prerequisites
Bun runtime
Installation
Run Server
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):
VS Code MCP Extension
Usage Example
Response:
Development
Scripts
Project Structure
Extending This Blueprint
This minimal server is designed to be easily extended:
Add new tools: Create
src/tools/new-tool.tsand register indatetime-server.tsAdd resources: Create
src/resources/new-resource.tsand register indatetime-server.tsAdd validation: Use Zod schemas for input validation
Add tests: Create
.test.tsfiles alongside your tools
Testing
Run the test suite:
Troubleshooting
Common Issues
Permission Denied: Make sure
src/index.tsis executablechmod +x src/index.tsTimezone Issues: Ensure valid IANA timezone identifiers are used
License
MIT License - see LICENSE file for details.
This server cannot be installed
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that allows checking local time on the client machine or current UTC time from an NTP serverLast updated -225MIT License
- -securityFlicense-qualityAn MCP server providing timezone conversions and time-related operations via RESTful API endpoints, featuring comprehensive error handling and timezone database integration.Last updated -
- -securityFlicense-qualityA simple Model Context Protocol (MCP) server that provides date and time functionality in any timezone, along with user profiles and personalized greeting resources.Last updated -
- Asecurity-licenseAqualityA Model Context Protocol server that provides tools to get the current date and time in various formats, supporting different timezones and custom formatting options.Last updated -14