mcpField
M
MCP Client SSE

MCP Client SSE

Local
github.com/ShaamamDeveloper Tools1Updated 79w ago

About MCP Client SSE

MCP Client SSE is a Spring Boot Java application with a synchronous MCP client for connecting to MCP servers and invoking tools. It also integrates the OpenAI API and supports application-property configuration.

Key features

  1. 01Synchronous MCP client
  2. 02Configurable tool callback provider
  3. 03OpenAI API integration
  4. 04Custom application properties

Use cases

  1. 01Connect to an SSE MCP server
  2. 02Use MCP tools with the OpenAI API

MCP support

As a client, it connects to configured SSE MCP servers and supports using their tools through tool callbacks.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Client SSE

Overview

The MCP Client SSE is a Spring Boot-based Java application that integrates with the Model Context Protocol (MCP). It provides a synchronous client implementation for interacting with MCP Servers and tools.

Article

Features

  • Synchronous MCP client integration.
  • Configurable tool callback provider.
  • OpenAI API integration.
  • Customizable application properties.

Configuration

The application can be configured using the application.properties file located in src/main/resources. Below are the key configuration properties:

OpenAI Configuration
spring.ai.openai.api-key=<OPEN_AI_API_KEY>
MCP Client Configuration
spring.ai.mcp.client.enabled=true
spring.ai.mcp.client.name=my-mcp-client
spring.ai.mcp.client.version=1.0.0
spring.ai.mcp.client.request-timeout=30s
spring.ai.mcp.client.type=SYNC
spring.ai.mcp.client.sse.connections.server1.url=http://localhost:8082 # MCP SERVER
spring.ai.mcp.client.toolcallback.enabled=true

How to Run

  1. Clone the repository:

    git clone <repository-url>
    cd mcp-client
    
  2. Build the project using Gradle:

    ./gradlew build
    
  3. Run the application:

    ./gradlew bootRun
    
  4. The application will start on the default port 8080.

Dependencies

  • Spring Boot
  • MCP Client Library
  • OpenAI API

References:

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.