iamsaad640/date-mcp-server
If you are the rightful owner of date-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A simple MCP server that provides current date and time information for Claude Code integration.
Date MCP Server
A simple MCP (Model Context Protocol) server that provides current date and time information for Claude Code integration.
Features
- Get today's date
- Get current date and time
- Lightweight Node.js implementation
Prerequisites
-
Node.js: Ensure Node.js is installed on your system
- Download from nodejs.org
- Verify installation:
node --version
-
Claude Code: Install Claude Code following the official documentation
Project Structure
date-mcp/
āāā README.md
āāā package.json
āāā package-lock.json
āāā date-server.js
āāā node_modules/
Installation
- Clone or download this repository
- Install dependencies:
npm install
Configuration
Option 1: Using Claude MCP Command (Recommended)
Ubuntu/Linux
# Navigate to your project directory
cd /path/to/your-project
# Add the MCP server using relative path
claude mcp add date-server -- node date-mcp/date-server.js
Windows
# Navigate to your project directory
cd P:\path\to\your-project
# Add the MCP server using relative path
claude mcp add date-server -- node date-mcp/date-server.js
Option 2: Manual Configuration
Create a .claude
folder in your project directory and add mcp-config.json
:
{
"mcpServers": {
"date-server": {
"command": "node",
"args": ["date-mcp/date-server.js"]
}
}
}
Verification
After configuration, verify the MCP server is working:
claude mcp list
You should see date-server
listed with the correct path.
Usage
Once configured, the date server provides these functions in Claude Code:
get_today_date()
- Returns today's date in a readable formatget_current_datetime()
- Returns current date and time
Platform-Specific Notes
Ubuntu/Linux
- Use forward slashes in paths:
date-mcp/date-server.js
- Ensure execute permissions:
chmod +x date-server.js
Windows
- Use forward slashes or escaped backslashes:
date-mcp\\date-server.js
- Git Bash or WSL recommended for consistent command-line experience
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test on both Windows and Ubuntu
- Submit a pull request
License
This project is open source and available under the .