ModelContextProtocolClient
Demonstrates various transport methods for communicating with an MCP server.
ModelContextProtocolClient is a Spring Boot application showcasing different transport methods (WebFlux SSE, Stdio, BraveSearch API) for communicating with a Model Context Protocol (MCP) server. It provides examples of how to interact with the server using WebFlux for Server-Sent Events, standard input/output (Stdio), and the BraveSearch API. The client includes sample endpoints for performing calculations, retrieving weather information, and conducting web searches, offering a practical guide for MCP development and integration.
主要功能
01Demonstrates WebFlux SSE transport for real-time communication.
02Implements Stdio transport for server interaction using standard input/output.
03Integrates with the BraveSearch API for web search functionality.
04Provides example endpoints for calculator and weather services.
05Configurable with API keys via a .env file.
061 GitHub stars
使用案例
01Developing MCP clients using different transport mechanisms.
02Testing and evaluating the performance of various MCP communication methods.
03Integrating MCP servers with external APIs like BraveSearch.