lucebert/sample-mcp-server
3.1
If you are the rightful owner of sample-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.
The MCP Time Server is a simple server that provides current time functionality using the Model Context Protocol (MCP).
MCP Time Server
A simple MCP server that provides current time functionality.
Features
- Returns current server time via JSON-RPC requests
- Sends time notifications via Server-Sent Events (SSE)
- Uses MCP protocol for communication
Installation
npm install
Usage
Start the server:
npm start
The server will be available at http://localhost:3000
API Endpoints
- POST
/mcp
- Handles JSON-RPC requests - GET
/mcp
- SSE endpoint for time notifications