currentdt-mcp
Provides real-time date and time information to AI assistants via the Model Context Protocol, enabling timestamped content generation.
README
@strix-ai/currentdt-mcp
Real-time date and time access for AI assistants via Model Context Protocol (MCP)
Built for AI, Built with AI - Enhancing AI assistant capabilities through intelligent tooling
<a href="https://mseep.ai/app/biswajitpanday-currentdt-mcp"> <img src="https://mseep.net/pr/biswajitpanday-currentdt-mcp-badge.png" alt="MSeeP.ai Security Assessment Badge" width="150"/> </a>
π Table of Contents
- Overview
- Quick Start
- User Flow
- Core Features
- MCP Client Integration
- Real-World Usage Examples
- API Reference
- Configuration
- Common Format Patterns
- Troubleshooting
- Development
- Documentation
- Support & Links
- Contributing
- License
Overview
@strix-ai/currentdt-mcp is an MCP server that provides AI assistants with instant access to current date and time information. Essential for generating timestamped code, migration files, and dated documentation.
Quick Start
# Install globally
npm install -g @strix-ai/currentdt-mcp
# Configure your MCP client (see integration guides below)
# Start using current datetime in AI conversations!
User Flow
βββββββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββββββ
β User Asks for βββββΆβ AI Assistant βββββΆβ get_current_ β
β Timestamped Code β β β β datetime Tool β
βββββββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββββββ
β Timestamped Output ββββββ Current Time ββββββ CurrentDT MCP β
β Generated β β Returned β β Server β
βββββββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββ βββββββββββββββββββββββ
β Formatted ββββββ Local/Remote β
β DateTime β β Time Provider β
βββββββββββββββββββ βββββββββββββββββββββββ
Core Features
- Zero Configuration - Works immediately after installation
- Multiple Formats - ISO 8601, custom formats (YYYY-MM-DD, MM/DD/YYYY, etc.)
- Provider System - Local system clock with remote fallback
- MCP Compatible - Cursor, Claude Desktop, VS Code, Windsurf
- TypeScript Native - Full type safety and IntelliSense
MCP Client Integration
Cursor IDE
npm install -g @strix-ai/currentdt-mcp
Add to ~/.cursor/mcp_servers.json:
{
"mcpServers": {
"currentdt": {
"command": "npx",
"args": ["@strix-ai/currentdt-mcp"]
}
}
}
Claude Desktop
npm install -g @strix-ai/currentdt-mcp
Add to ~/claude_desktop_config.json:
{
"mcpServers": {
"currentdt": {
"command": "currentdt-mcp",
"args": []
}
}
}
VS Code (with MCP Extension)
Install package and configure via MCP extension settings or add to VS Code settings:
{
"mcp.servers": [
{
"name": "currentdt",
"command": "currentdt-mcp"
}
]
}
Windsurf
Same configuration as Cursor IDE - add to Windsurf MCP settings file.
Real-World Usage Examples
1. SQL Migration Files
User: "Create a migration to add user preferences table"
Result: Migration file named 2025-08-26-143000_add_user_preferences.sql with current timestamp
MCP Tool Call Example:
{
"tool": "get_current_datetime",
"arguments": {
"format": "YYYY-MM-DD-HHmmss",
"provider": "local"
}
}
2. Timestamped Logging
User: "Generate a logger that includes timestamps"
Result: Logger implementation with current ISO datetime format
3. Dated Documentation
User: "Update the changelog with today's date"
Result: Changelog entry with current date: ## [1.1.7] - 2025-08-26
API Reference
Tool: get_current_datetime
Parameters:
format(optional):"iso"(default) or custom format like"YYYY-MM-DD HH:mm:ss"provider(optional):"local"(default) or"remote"
Returns: Formatted datetime string
Example:
{
"tool": "get_current_datetime",
"arguments": {
"format": "YYYY-MM-DD HH:mm:ss",
"provider": "local"
}
}
Configuration (Optional)
Create currentdt-config.json for custom settings:
{
"defaultFormat": "iso",
"defaultProvider": "local",
"providers": {
"local": {
"name": "local",
"enabled": true,
"priority": 1
},
"remote": {
"name": "remote",
"enabled": false,
"priority": 2,
"config": {
"url": "https://worldtimeapi.org/api/timezone/UTC",
"timeout": 5000
}
}
},
"customFormats": {
"filename": "YYYY-MM-DD-HHmmss",
"simple": "MM/DD/YYYY"
},
"cache": {
"enabled": true,
"ttl": 1000
}
}
Common Format Patterns
"iso"β2025-08-26T14:30:00.000Z"YYYY-MM-DD"β2025-08-26"YYYY-MM-DD HH:mm:ss"β2025-08-26 14:30:00"MM/DD/YYYY"β08/23/2025"YYYY-MM-DD-HHmmss"β2025-08-26-143000
Troubleshooting
Tool Not Available
# Verify installation
npm list -g @strix-ai/currentdt-mcp
# Test server directly
npx @strix-ai/currentdt-mcp --test
Debug Mode
export CURRENTDT_DEBUG=true
npx @strix-ai/currentdt-mcp
Development
git clone https://github.com/biswajitpanday/CurrentDT-mcp.git
cd currentdt-mcp
npm install
npm run dev
npm Scripts
npm run build- Build TypeScriptnpm test- Run all testsnpm run lint- ESLint checknpm run format- Prettier format
Documentation
Detailed documentation available in /docs:
- TaskList.md - Development progress tracking
- Architecture.md - System architecture and design
- SRS.md - Software requirements specification
- PRD.md - Product requirements document
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
Support & Links
- Issues: GitHub Issues
- Documentation: GitHub Repository
- npm Package: @strix-ai/currentdt-mcp
- Author: Biswajit Panday - AI-Assisted Development Enthusiast
- Contributor: Abdullah Saleh Robin robinabdullah@yahoo.com
License
MIT License - see LICENSE file for details.
Made with β€οΈ by Biswajit Panday
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.