mcp-server-demo1

mcp-server-demo1

3.2

If you are the rightful owner of mcp-server-demo1 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.

This is a simple Model Context Protocol (MCP) server example built using TypeScript and the `@modelcontextprotocol/sdk`. It provides a tool to get the current time with an optional timezone specification.

The MCP Time Server Demo is a straightforward implementation of a server using the Model Context Protocol (MCP). It is designed to demonstrate the basic functionalities of an MCP server, specifically focusing on providing a tool to fetch the current time. The server is built using TypeScript and leverages the `@modelcontextprotocol/sdk` to ensure compatibility with MCP clients. Users can specify a timezone to get the current time in that region, or default to the server's local time if no timezone is provided. The server communicates using standard input/output, making it easy to integrate with various platforms. This demo is particularly useful for developers looking to understand the basics of MCP server development and how to implement time-based tools within this framework.

Features

  • getCurrentTime Tool: Fetches the current time with optional timezone support using IANA timezone identifiers.
  • MCP Compatibility: Integrates seamlessly with any MCP-supported client, such as Claude Desktop or MCP Inspector.
  • Stdio Communication: Utilizes standard input/output for communication, facilitating easy integration.

Tools

  1. getCurrentTime

    A tool to retrieve the current time, optionally accepting a timezone parameter.