Back to Home
ajeetcloud icon

spring-ai-mcp-server-resources

Verified Safe

by ajeetcloud

Overview

Exposes local file system documents as MCP (Model Context Protocol) resources for AI models to access dynamically.

Installation

Run Command
java -jar target/spring-ai-mcp-server-resources-0.0.1-SNAPSHOT.jar --resource.directory.path=/path/to/your/documents

Environment 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

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens2500
Stars0
Forks0
Last Update2025-11-27

Tags

Spring AIMCP ServerLocal DocumentsAI IntegrationResource Management