File-MCP-server
Verified Safeby pankajshakya627
Overview
A comprehensive Model Context Protocol (MCP) server providing local utilities for file operations, directory management, text processing, and mathematical calculations, ideal for integration with AI agents like Claude Desktop.
Installation
npx @modelcontextprotocol/inspector uv --directory "$(pwd)" run main.pyEnvironment Variables
- SANDBOX_DIR
- MCP_TRANSPORT
Security Notes
The server implements robust file system sandboxing via the `_get_safe_path` function, which redirects all file operations to a designated directory (defaulting to /tmp/Dev_Pankaj or a custom SANDBOX_DIR) and actively blocks path traversal attempts ('..'). The `calculate` function uses `eval`, but it is heavily sandboxed with a restricted `safe_dict` and an empty `__builtins__` to prevent arbitrary code execution. When running in HTTP mode (not default), it could bind to `0.0.0.0` potentially exposing it to the network, but the README provides explicit warnings and best practices for this scenario.
Similar Servers
DesktopCommanderMCP
This server empowers AI agents to search, update, manage files, and execute terminal commands on a local or containerized desktop environment. It provides enhanced filesystem operations, process control, and data analysis capabilities with support for various file types like text, Excel, and PDF.
consult-llm-mcp
An MCP server that allows AI agents like Claude Code to consult stronger, more capable AI models (e.g., GPT-5.2, Gemini 3.0 Pro) for complex code analysis, debugging, and architectural advice.
claude-memory-mcp
Provides local, persistent, and searchable memory for AI assistants like Claude Desktop, enabling them to store and recall information efficiently.
mcp-client-server
A specialized Model Context Protocol (MCP) server designed to act as a testing harness for developing and iterating on other MCP servers within a Claude AI environment.