Date and Time MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Date and Time MCP Serverwhat time is it in Tokyo right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Date and Time MCP Server
A simple Model Context Protocol (MCP) server that provides date and time functionality, along with example user profile and greeting resources.
Features
Get current date and time in any timezone
Access user profiles by ID
Get personalized greetings
Related MCP server: MCP Server Basic Example
Installation
Clone this repository
Install dependencies:
pip install -r requirements.txtUsage
Running the Server
Start the server with:
python src/server.pyThe server will start on http://127.0.0.1:8001 with the following endpoints:
Tools:
current_datetime(timezone: str): Get current date and time in a specific timezone
Resources:
users://{user_id}/profile: Get a user's profile by IDgreeting://{name}: Get a personalized greeting
Running the Client
Run the example client with:
python src/client.pyThe client will:
List all available tools
List all available resources
Call the
current_datetimetool with "America/New_York" timezone
Running the LangChain Client Example
This project includes an example of using the MCP server with LangChain, based on the langchain-mcp-adapters repository.
To run the LangChain client example:
First, make sure the MCP server is running:
python src/server.pySet your OpenAI API key as an environment variable:
# On Windows
set OPENAI_API_KEY=your-api-key-here
# On Unix/Linux/MacOS
export OPENAI_API_KEY=your-api-key-hereRun the LangChain client:
python src/langchain_client.pyThe LangChain client demonstrates how to integrate the MCP server with LangChain's agent system, allowing for more complex interactions and reasoning about the available tools.
Cursor Configuration
To use this server with Cursor IDE, you need to configure it in your Cursor settings. Create or update the mcp.json file in your Cursor configuration directory with the following:
{
"mcpServers": {
"my-mcp-local-server": {
"command": "path/to/your/python.exe",
"args": [
"path/to/your/server.py"
],
"description": "MCP local server"
},
"my-mcp-remote-server": {
"url": "http://127.0.0.1:8001/mcp",
"description": "MCP remote server"
}
}
}This configuration provides two ways to connect to the server:
my-mcp-local-server: Runs the server locally through Pythonmy-mcp-remote-server: Connects to the server running on port 8001
Make sure to replace the paths with your actual Python and server script paths.
Example API Usage
Get Current Time
result = await client.call_tool("current_datetime", {"timezone": "America/New_York"})Get User Profile
profile = await client.read_resource("users://123/profile")Get Greeting
greeting = await client.read_resource("greeting://John")Development
The server is built using FastMCP, which provides a simple way to create MCP-compatible servers. The main components are:
server.py: Contains the server implementation with tools and resourcesclient.py: Example client that demonstrates how to interact with the server
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceA Model Context Protocol server that provides current time in ISO8601 format with timezone support.112MIT
- FlicenseNot gradedqualityDmaintenanceA demonstration implementation of a Model Context Protocol server that provides simple mathematical tools (add, subtract) and personalized greeting resources.
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server that provides current time information with configurable timezone support set on the client side.
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides basic tools for arithmetic operations (addition) and dynamic greeting resources, demonstrating MCP integration patterns for other projects and clients.23ISC
Related MCP Connectors
A basic MCP server to operate on the Postman API.
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
A very simple remote MCP server that greets you, with a custom icon.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MarcinMalczewski/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server