mcp_mapped_resource_lib
Verified Safeby nickweedon
Overview
Provides a secure and efficient library for binary blob storage and management within MCP server environments, particularly designed for shared Docker volumes.
Installation
python examples/fastmcp_example.pyEnvironment Variables
- BLOB_STORAGE_ROOT
- BLOB_MAX_SIZE_MB
- BLOB_DEFAULT_TTL_HOURS
- BLOB_ALLOWED_MIME_TYPES
- BLOB_ENABLE_DEDUPLICATION
- BLOB_LAZY_CLEANUP_ENABLED
- BLOB_LAZY_CLEANUP_INTERVAL_MINUTES
- BLOB_STORAGE_HOST_PATH
Security Notes
The library demonstrates a high commitment to security. It includes explicit path traversal prevention (`validate_path_safety`), input sanitization for filenames (`sanitize_filename`), strict MIME type validation, and configurable size limits. Blob IDs are generated with strong randomness and validated against a strict regex pattern. No obvious use of dangerous patterns like 'eval' or insecure direct execution of user input was found. The primary external dependency, 'python-magic', is standard for MIME detection; its security relies on keeping system libraries up to date.
Similar Servers
tinystruct-mcp
A modular Java server providing a JSON-RPC interface for file system and Git/GitHub operations, aimed at automation and DevOps workflows.
filesystem-mcp
Provides secure, efficient, and token-optimized filesystem operations for AI agents via the Model Context Protocol.
mcp-devcontainers
Provides a Model Context Protocol (MCP) server for integrating with and managing devcontainer environments via the devcontainers CLI.
docker-mcp-server
A Model Context Protocol (MCP) server for containerized execution and file operations, enabling AI assistants to interact with a Docker environment via HTTP.