Date MCP Server
A lightweight MCP (Model Context Protocol) server that provides current date and time information for Claude Code integration. Cross-platform compatible with Windows and Ubuntu.
Ask AI about Date MCP Server
Powered by Claude Β· Grounded in docs
I know everything about Date MCP Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
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 MIT License.
