Back to Home
andrlange icon

spring-documentation-mcp-server

Verified Safe

by andrlange

Overview

Provides a Model Context Protocol (MCP) server for comprehensive access to Spring ecosystem documentation, migration guides, code examples, language evolution, and Initializr metadata, primarily for AI agent consumption.

Installation

Run Command
./gradlew bootRun

Environment Variables

  • DB_USER
  • DB_PASSWORD
  • DB_HOST
  • DB_PORT
  • DB_NAME
  • GITHUB_TOKEN

Security Notes

The application uses Spring Security for authentication (API keys and users), with BCrypt hashing for API keys and passwords. External HTTP requests to Spring.io, GitHub, and Initializr are performed using WebClient with timeouts and retry logic. URL validation is implemented for documentation fetching to prevent SSRF by restricting domains to known Spring-related sites. Jsoup is used for HTML parsing, and HTML to Markdown conversion is handled with cleaning steps to mitigate XSS. No obvious hardcoded secrets, 'eval' usage, or malicious patterns were found in the provided code snippets. Robust input validation with `jakarta.validation` is used across DTOs. A potential concern is the logging of full request parameters in `McpRequestLoggerService`, which could contain sensitive data depending on tool usage, but this is a data privacy/retention concern rather than a direct code vulnerability.

Similar Servers

Stats

Interest Score89
Security Score9
Cost ClassHigh
Avg Tokens1000
Stars57
Forks9
Last Update2025-12-10

Tags

Spring BootDocumentationAIMCPDeveloper Tools