ModelContextProtocolClient icon

ModelContextProtocolClient

Demonstrates various transport methods for communicating with an MCP server.

About

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.

Key Features

  • Demonstrates WebFlux SSE transport for real-time communication.
  • Implements Stdio transport for server interaction using standard input/output.
  • Integrates with the BraveSearch API for web search functionality.
  • Provides example endpoints for calculator and weather services.
  • Configurable with API keys via a .env file.
  • 1 GitHub stars

Use Cases

  • Developing MCP clients using different transport mechanisms.
  • Testing and evaluating the performance of various MCP communication methods.
  • Integrating MCP servers with external APIs like BraveSearch.
Craft Better Prompts with AnyPrompt
Sponsored