mcp-scaffold
Verified Safeby arvindand
Overview
Generates AI-ready tools from Spring Data JPA applications for AI assistants using the Model Context Protocol.
Installation
./mvnw -pl mcp-scaffold-examples/petclinic-mcp spring-boot:runSecurity Notes
The server's core function is build-time code generation using JavaParser and JavaPoet, which is generally safe as it doesn't involve runtime dynamic code execution. The generated tools are standard Spring components acting as wrappers for existing business logic. No direct 'eval' or malicious patterns were found. The example uses default H2 in-memory database credentials (sa, empty password) which is acceptable for development/examples but should not be used in production. Network exposure is typically localhost by default, managed by Spring AI's MCP server. The main security consideration would be prompt injection at the AI model layer, which is an inherent risk of AI tool usage, not a specific vulnerability in this server's code.
Similar Servers
easy-code-reader
Provides a Model Context Protocol (MCP) server for AI assistants to intelligently read Java source code from local projects and Maven dependencies, supporting decompilation and multi-module analysis.
mcp-codestyle-server
Provides code template search and retrieval to IDEs and AI agents via Model Context Protocol.
spring-rest-to-mcp
Transforms existing Spring Web REST APIs into Spring AI Model Context Protocol (MCP) server tools using OpenRewrite recipes.
spring-boot-ai
The MCP Server provides a remote 'Booking Tool' for an AI agent to make accommodation reservations in tourist destinations.