Spring-AI-showcase-with-Chat-and-MCP-Server
Verified Safeby schieblerchris
Overview
This project is a small demo for Spring AI, providing an MCP-Server for local LLMs and a web frontend for a chat client to aggregate data from various sources (persons, hobbies, events, vacations).
Installation
docker compose -f docker/docker-compose.yaml up -dEnvironment Variables
- SPRING_DATASOURCE_URL
- SPRING_AI_OPENAI_BASE-URL
- SPRING_AI_OPENAI_API-KEY
- application.preferred.ai.model
Security Notes
The codebase is generally well-structured for a Spring Boot application, with no direct 'eval' or malicious patterns. Sensitive configurations like API keys are expected to be environment variables. Potential risks include Cross-Site Scripting (XSS) if LLM-generated Markdown or HTML (via the MailTool) is rendered by a client without adequate sanitization, but this is often a broader LLM safety concern rather than a specific code vulnerability within this application itself. Administrative features like database cleanup are explicit and require user confirmation.
Similar Servers
solon-ai
The Model Context Protocol (MCP) server provides a standardized interface for AI models to interact with external tools, resources, and prompt templates through a structured, bidirectional communication protocol.
spring-boot-ai
A Spring Boot application implementing a Model Context Protocol (MCP) server that provides a remote 'Booking Tool' for an AI agent.
solon-ai-embedded-examples
Provides examples of integrating AI functionalities (LLM interaction, RAG, Agent, and Model Context Protocol server/client) within various Java web frameworks.
MCP-Client-Host-Java
An MCP (Model Context Protocol) client that acts as a server to the MCP host, managing connections to various external MCP servers (tools) and orchestrating tool discovery and execution for AI assistants.