Back to Home
nickweedon icon

mcp_resource_server

by nickweedon

Overview

Provides file and image operations, including downloads, resizing, and blob storage for inter-service communication.

Installation

Run Command
uv run mcp-resource-server

Security Notes

CRITICAL VULNERABILITY: The server is vulnerable to path traversal (arbitrary file read). The `_download_file_bytes` function directly constructs a file path from the `file_id` when `RESOURCE_SERVER_URL_PATTERN` uses the `file://` protocol. An attacker controlling the `file_id` parameter (e.g., through MCP tool calls like `get_file('../../etc/passwd')`) can read arbitrary files on the host filesystem outside the intended `/mnt/resources` directory. For example, passing `../../../../etc/passwd` as `file_id` would lead to the server reading `/etc/passwd`. This vulnerability allows unauthorized access to sensitive system files. There is also potential for SSRF if `RESOURCE_SERVER_URL_PATTERN` is misconfigured to allow external URL input.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens50000
Stars0
Forks0
Last Update2025-12-14

Tags

File ManagementImage ProcessingBlob StorageMCP ServerResource Management