spring-ai-mcp-server-resources
Verified Safeby ajeetcloud
Overview
Exposes local file system documents as MCP (Model Context Protocol) resources for AI models to access dynamically.
Installation
java -jar target/spring-ai-mcp-server-resources-0.0.1-SNAPSHOT.jar --resource.directory.path=/path/to/your/documentsEnvironment Variables
- resource.directory.path
Security Notes
The server reads and exposes the content of all files within a configurable local directory (`resource.directory.path`). While the code itself does not introduce direct RCE or arbitrary file system traversal vulnerabilities, a misconfigured `resource.directory.path` could expose sensitive local files. The `mimeType` is hardcoded to 'text/plain', which could be misleading for clients expecting correct content types for non-plain text files. No content sanitization is performed on the served documents. Proper configuration of `resource.directory.path` to a controlled, non-sensitive directory is crucial.
Similar Servers
mcp-codestyle-server
Provides code template search and retrieval tools for IDEs and AI agents via the Model Context Protocol (MCP).
spring-boot-ai
A Spring Boot application implementing a Model Context Protocol (MCP) server that provides a remote 'Booking Tool' for an AI agent.
tenets
Provides intelligent, token-optimized code context and automatically injects guiding principles to AI coding assistants for enhanced understanding and consistent interactions.
mcp-file-assistant-workshop
Builds an AI-powered file assistant server using Model Context Protocol for intelligent interaction with local files.