Back to Home
pugazhmukilan icon

MCP-LocalFileResource-Server

by pugazhmukilan

Overview

The server provides LLMs and MCP clients with a standardized way to access, search, and process local files, including text, code, and PDFs, through Model Context Protocol resources and tools.

Installation

Run Command
python main.py

Environment Variables

  • FILE_PATH

Security Notes

The server uses `os.path.join(basepath, filename)` to construct file paths based on a configurable `FILE_PATH` environment variable. While this handles basic path concatenation, there is no explicit validation or sanitization of the `filename` parameter (e.g., checking for '..' or absolute paths) to prevent path traversal attacks. An attacker or a misaligned LLM could potentially use `filename` values like `../../../etc/passwd` to read arbitrary files outside the designated `FILE_PATH` directory, despite the README's claim of 'sandboxing'. No hardcoded secrets or 'eval' statements were found.

Similar Servers

Stats

Interest Score32
Security Score5
Cost ClassMedium
Avg Tokens5000
Stars2
Forks0
Last Update2025-12-01

Tags

MCPFile SystemLLM ToolLocal ResourcesPDF Extraction