Back to Home
nickweedon icon

mcp_mapped_resource_lib

Verified Safe

by 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

Run Command
python examples/fastmcp_example.py

Environment 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

Stats

Interest Score14
Security Score9
Cost ClassHigh
Avg Tokens50000
Stars1
Forks0
Last Update2025-12-24

Tags

blob storagedocker volumesfile managementdata persistencemcp servers