Calculates moon phases and illumination based on date and time, providing a clear example of an MCP server.
Sponsored
Explore the intricacies of the Model Context Protocol (MCP) with this straightforward server, designed as a learning resource without external dependencies or SDKs. It accurately computes moon age and illumination percentages, accepting specific dates or using the current time. The server communicates via standard I/O using JSON-RPC and provides MCP tool definitions, making it an excellent starting point for anyone looking to understand how MCP servers function from the ground up.
Key Features
010 GitHub stars
02Calculates moon age (days since last new moon)
03Calculates illumination percentage (0-100%)
04Accepts specific datetime or uses current time
05Communicates via stdio using JSON-RPC format
06Provides MCP tool definitions for discovery
Use Cases
01Learning about MCP server implementation and mechanics
02Integrating moon phase calculations into applications via a standardized protocol
03Demonstrating Model Context Protocol functionality with a self-contained example