spring-boot-ai
by rogervinas
Overview
A Spring Boot application implementing a Model Context Protocol (MCP) server that provides a remote 'Booking Tool' for an AI agent.
Installation
cd mcp-server && ./gradlew bootRunSecurity Notes
The MCP server itself is straightforward and doesn't expose obvious security vulnerabilities. However, the broader project (which uses this MCP server) has hardcoded PostgreSQL credentials (`postgres`, `password`) in `chat-server/src/main/resources/application.yml` for local development. While acceptable for a demo, this is a significant security risk if deployed to any non-local or production environment without externalizing these secrets. There's no dynamic code execution or explicit obfuscation. The use of Spring AI's `@Tool` annotation is a controlled mechanism for tool invocation.
Similar Servers
mcp-codestyle-server
Provides code template search and retrieval tools for IDEs and AI agents via the Model Context Protocol (MCP).
mcp-annotated-java-sdk
Annotation-driven framework for building Model Context Protocol (MCP) servers in Java, simplifying the definition and integration of resources, prompts, and tools for LLM applications.
infobip-openapi-mcp
Exposes any OpenAPI documented HTTP API as a Model Context Protocol (MCP) server for AI agents, with support for mock mode and authentication.
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.