Back to Home
AdityaShekhawat16 icon

MCP_SERVER_LOCAL_FILES_ACCESS

by AdityaShekhawat16

Overview

A local server providing AI agents with tools for CRUD operations on files (text, PDF, DOCX) and SQLite databases within a designated workspace.

Installation

Run Command
python mcp_Server.py

Security Notes

The `run_sql_query` function is critically vulnerable to SQL injection as it directly executes user-provided SQL queries without parameterization. An agent (or attacker) could craft malicious queries to read, modify, or delete database contents beyond intended scope. While directory traversal for file system operations is adequately handled by `_get_safe_path`, this does not protect against the database vulnerability. The ability to delete arbitrary files within the `TARGET_FOLDER` also presents a risk if an agent is compromised, even if confined to the target directory.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens300
Stars0
Forks0
Last Update2025-11-25

Tags

AI Agent ToolsLocal File ManagementSQLite DatabaseCRUD OperationsWorkspace Management