mcp-server-demo
If you are the rightful owner of mcp-server-demo 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 demo project for an MCP (Model Control Protocol) server based on Spring Boot 3.4.4, integrating Spring AI toolchain to implement intelligent service functions.
The MCP Server Demo is a project designed to showcase the capabilities of the Model Control Protocol using Spring Boot. It includes templates for implementing basic numerical operations and weather query services. The project is structured to support the integration of AI tools and provides a foundation for expanding services with additional functionalities. The server exposes services as standardized tools using annotations, making it easier to define and manage service parameters. The project is organized with a clear directory structure and includes comprehensive testing classes to ensure functionality across different protocols.
Features
- Number Service: Provides functionalities such as even/odd number checking and prime number detection, with suggestions for further extensions like prime factorization and Fibonacci calculations.
- Weather Service: Offers a weather data interface using pseudo-code, with the potential for integration with third-party APIs like OpenWeatherMap.
- MCP Tool Support: Services are exposed as standardized tools using `@Tool` annotation, with parameters defined using `@ToolParam`.