SSE MCP Server Demo

SSE MCP Server Demo

llm-sse-mcp-demo-2025•bynlinhvu

A Spring Boot application serving as an MCP server that exposes math and date/time tools over Server-Sent Events.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes math tools for addition and multiplication.
  • •Provides date/time tools for retrieving current time and setting alarms.
  • •Communicates in real time via Server-Sent Events and implements MCP for tool discovery and execution.

BEST FOR

  • •Demonstrating LLM tool calling where models discover and use math or time tools.
  • •Building and testing MCP integrations with OAuth 2.0 authorization and observability.

ABOUT LLM-SSE-MCP-DEMO-2025

SSE MCP Server Demo is cataloged as an MCP server attributed to nlinhvu. A Spring Boot application serving as an MCP server that exposes math and date/time tools over Server-Sent Events. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for SSE MCP Server Demo are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does the MCP server expose?

It exposes sumNumbers and multiplyNumbers for math, and getCurrentDateTime and setAlarm for date/time.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 1054f190471c · 采集于 2026-11-13 10:06:44 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

LLM SSE MCP with Observability (Prometheus/Metrics, Tempo/Traces, Loki/Logs, Grafana)

This project demonstrates the integration between LLM clients and MCP (Model Context Protocol) servers using Server-Sent Events (SSE) for real-time communication. It consists of three Spring Boot applications that showcase OAuth 2.0 security, tool calling capabilities with various LLM models, and secure authentication services.

Project Structure

1. Authorization Server Demo (authorization-server-demo)

A Spring Boot application that implements OAuth 2.0 authorization server functionality, providing secure authentication and authorization services.

Features:

  • OAuth 2.0 Authorization Server: Issues access tokens and validates them

Port: 9000

2. SSE MCP Server Demo (sse-mcp-server-demo)

A Spring Boot application that serves as an MCP server, exposing mathematical and date/time tools via SSE endpoints.

Features:

  • Math Tools: Addition and multiplication operations
  • DateTime Tools: Current time retrieval and alarm setting
  • SSE Support: Real-time communication via Server-Sent Events
  • MCP Protocol: Implements Model Context Protocol for tool discovery and execution

Available Tools:

  • sumNumbers(int, int) - Adds two numbers
  • multiplyNumbers(int, int) - Multiplies two numbers
  • getCurrentDateTime() - Gets current date/time in user's timezone
  • setAlarm(String) - Sets an alarm for specified ISO-8601 time

Port: 8080 (default)

3. LLM MCP Client Demo (llm-mcp-client-demo)

A Spring Boot web application that connects to the MCP server and provides an interactive chat interface with multiple LLM providers.

Features:

  • Multiple LLM Support: Anthropic Claude, OpenAI GPT, Google Gemini, Ollama
  • Interactive Web Chat: Real-time chat interface using Thymeleaf
  • MCP Integration: Connects to SSE MCP server for tool calling
  • Tool Discovery: Automatically discovers and uses available tools from MCP server

Supported LLM Models:

  • Anthropic Claude: claude-sonnet-4-20250514
  • OpenAI: o4-mini-2025-04-16
  • Google Gemini: gemini-2.5-flash-preview-05-20
  • Ollama: qwen3:8b (local)

Port: 10101

Prerequisites

  • Java 17 or higher
  • Gradle
  • API keys for cloud LLM providers (optional)
  • Ollama installed locally (for local models)
  • Docker & Docker Compose

Environment Variables

For the LLM client, set the following environment variables for cloud providers:

export ANTHROPIC_API_KEY=your_anthropic_key
export OPENAI_API_KEY=your_openai_key
export GOOGLE_PROJECT_ID=your_google_project_id
export GOOGLE_ZONE=your_google_zone

Quick Start

1. Start Prometheus, Tempo, Loki, Grafana

docker compose up -d

2. Start the Authorization Server

cd authorization-server-demo
./gradlew bootRun

3. Start the MCP Server

cd sse-mcp-server-demo
./gradlew bootRun

4. Start the LLM Client

cd llm-mcp-client-demo
./gradlew bootRun

5. Access the Chat Interface

Open your browser and navigate to: http://localhost:10101

6. Access Grafana and explore Prometheus, Tempo, Loki

Open your browser and navigate to: http://localhost:3000

Data sources -> Prometheus -> Explore prometheus

Data sources -> Tempo -> Explore tempo

Data sources -> Loki -> Explore loki

Usage

  1. Start both services in the order specified above
  2. Open the web interface at http://localhost:9090
  3. Send messages that require mathematical operations or time queries
  4. Watch the LLM automatically discover and use the available tools

Example queries:

  • "What's 5 times 4 plus 7?"
  • "What time is it?"
  • "Set an alarm for 2025-01-01T10:00:00"

Technology Stack

  • Spring Boot 3.x
  • Spring Security OAuth2
  • Spring AI - LLM integration framework
  • Model Context Protocol (MCP) - Tool discovery and execution
  • Server-Sent Events (SSE) - Real-time communication
  • Thymeleaf - Web templating
  • Gradle - Build system

Configuration

All applications use YAML configuration files:

  • Authorization server configuration in authorization-server-demo/src/main/resources/application.yml
  • MCP server configuration in sse-mcp-server-demo/src/main/resources/application.yml
  • LLM client configuration in llm-mcp-client-demo/src/main/resources/application.yml

Development

The project demonstrates:

  • MCP Protocol Implementation using Spring AI
  • SSE-based Real-time Communication
  • Multi-provider LLM Integration
  • Tool Calling and Discovery
  • Interactive Web Interfaces
  • MCP Authorization with OAuth2
  • Observation with Spring Actuator and Micrometer(OpenTelemetry, Prometheus, Tempo, Loki, Grafana)

This demo serves as a foundation for building more complex LLM-powered applications with external tool capabilities.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for SSE MCP Server Demo from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/llm-sse-mcp-demo-2025)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools