moon-phases-quarkus -sse
Moon phases MCP server, using Server-Sent Events, implemented in Java with the Quarkus framework
claude mcp add --transport stdio glaforge-moon-phases-quarkus-mcp-sse-server docker run -i glaforge/moon-phases-quarkus-sse:latest
How to use
This MCP server provides a Server-Sent Events (SSE) endpoint built with Quarkus that calculates the current moon phase or the phase for a given date. It exposes an MCP-compatible service over SSE, allowing clients to subscribe to moon phase updates and request specific dates to retrieve the corresponding lunar phase. The project is a Java Quarkus application, translated from a Moon Phase algorithm, and can be run via Maven during development or containerized for deployment. To use it, start the server in a Java-compatible environment (for example, via a Docker image as shown in the instructions) and connect to the MCP SSE endpoint to receive phase data; clients can query the current phase or specify a date to obtain the phase for that moment.
How to install
Prerequisites:
- Docker (for containerized setup) or Java Development Kit (JSR-310 based) and Maven Wrapper for local builds
- network access to fetch Maven dependencies
Installation steps:
-
Clone the repository (or pull the pre-built Docker image): git clone https://github.com/glaforge/moon-phases-quarkus-sse-server.git cd moon-phases-quarkus-sse-server
-
If installing locally (Java/Maven):
- Ensure JDK 11+ is installed
- Use the Maven wrapper to run in development mode: ./mvnw quarkus:dev
-
Packaging (produces a runnable jar): ./mvnw clean package
Run the generated runnable jar
java -jar target/quarkus-app/quarkus-run.jar
-
Native build (optional): ./mvnw clean package -Dnative
Run the native executable
./target/moonphase-1.0-SNAPSHOT-runner
-
Containerized deployment (recommended for MCP SSE): Build or pull a suitable Docker image and run: docker run -i glaforge/moon-phases-quarkus-sse:latest
Note: The README suggests using Maven wrapper commands and provides guidance for packaging and running in both dev and native modes. If you plan to deploy to Cloud Run or another platform, containerization is the typical path.
Additional notes
Notes and tips:
- This server is an MCP SSE service implemented with Quarkus (Java).
- If using Docker, ensure the image tag corresponds to a build that includes the MCP SSE endpoints.
- For development, use the Maven wrapper commands provided in the README (./mvnw quarkus:dev) to enable live coding.
- When deploying to cloud environments, you can containerize the application and deploy the image to Cloud Run or Kubernetes as per the related article linked in the README.
- The project calculates moon phases using a translated algorithm from MoonPhase projects; ensure when querying dates to provide a valid ISO-8601 date (YYYY-MM-DD) if required by your MCP client.
- The README mentions a specific Cloud Run deployment workflow; adjust the container image name and project ID to your environment when following that guide.
Related MCP Servers
atmosphere
Stream Real Time and LLM response data over WebSocket, SSE, and the MCP protocol
langchain4j-aideepin
基于AI的工作效率提升工具(聊天、绘画、知识库、工作流、 MCP服务市场、语音输入输出、长期记忆) | Ai-based productivity tools (Chat,Draw,RAG,Workflow,MCP marketplace, ASR,TTS, Long-term memory etc)
tinystruct
A lightweight, modular Java application framework for web and CLI development, designed for AI integration and plugin-based architecture. Enabling developers to create robust solutions with ease for building efficient and scalable applications.
wanaku
Wanaku MCP Router
quarkus-workshop-langchain4j
Quarkus Langchain4J Workshop
obsidian
MCP server for Obsidian vault management - enables Claude and other AI assistants to read, write, search, and organize your notes