MCP Server Demo
by CrxusDonts
This is a Model Context Protocol (MCP) server demo project based on Spring Boot. It provides calculator, weather query, data model, and API interface tools.
Last updated: N/A
What is MCP Server Demo?
This is a simple MCP server implementation built using Spring Boot and WebFlux. It provides tools for calculations, weather queries, and finding data models and APIs.
How to use MCP Server Demo?
To use this server, clone the project, configure the HeWeather API key in application.yml
, build the project with mvn clean package
, and run the JAR file with java -jar target/donts-ai-0.0.1-SNAPSHOT.jar
. You can then interact with the server via the /sse
and /mcp/messages
endpoints.
Key features of MCP Server Demo
Calculator tool for evaluating mathematical expressions
Weather query tool for retrieving real-time weather information
Data model lookup tool based on user descriptions
API interface lookup tool based on data models
API execution tool for constructing parameters and calling APIs
Use cases of MCP Server Demo
Performing calculations via API
Retrieving weather information for a specific city
Finding relevant data models based on descriptions
Discovering API endpoints for specific data models
Executing APIs with user-provided parameters
FAQ from MCP Server Demo
What is MCP?
What is MCP?
Model Context Protocol (MCP) is a protocol used in this server.
What is SSE?
What is SSE?
Server-Sent Events (SSE) is a server push technology enabling real-time data streaming from the server to the client.
How do I configure the weather API key?
How do I configure the weather API key?
You need to obtain a HeWeather API key and configure it in the src/main/resources/application.yml
file.
What are the prerequisites for running this project?
What are the prerequisites for running this project?
You need JDK 17 or higher, Maven 3.6 or higher, and a HeWeather API key.
How do I contribute to this project?
How do I contribute to this project?
Fork the repository, create a feature branch, commit your changes, push to the branch, and open a pull request.