mcp-proxy
Verified Safeby pratikjadhav2726
Overview
Optimizes MCP client-to-server communication by applying field projection and grep search to tool responses, reducing token usage and enhancing privacy.
Installation
uv run -m mcp_proxyEnvironment Variables
- MCP_PROXY_LOG_LEVEL
Security Notes
The proxy handles underlying server commands and arguments from a local `config.yaml`. If this configuration file is compromised, it could lead to arbitrary command execution on the host machine. A more direct client-side risk is a potential Regular Expression Denial of Service (ReDoS) vulnerability in the `GrepProcessor`. The regex `pattern` for grep is directly sourced from client arguments, and while `maxPatternLength` is declared (1000 characters), it does not fully mitigate ReDoS attacks. There is no explicit timeout on regex compilation or matching.
Similar Servers
mcp-context-forge
Converts web content (HTML, PDF, DOCX, etc.) and local files from a URL into high-quality Markdown format. It supports multiple conversion engines, content optimization, batch processing, and image handling.
mcp-language-server
Serves as an MCP (Model Context Protocol) gateway, enabling LLMs to interact with Language Servers (LSPs) for codebase navigation, semantic analysis, and code editing operations.
aicode-toolkit
An MCP proxy server that aggregates multiple Model Context Protocol (MCP) servers, enabling on-demand tool discovery and execution, thereby significantly reducing AI agent token usage and improving context window efficiency by loading tools progressively.
modular-mcp
A proxy server that efficiently manages and loads large tool collections from multiple Model Context Protocol (MCP) servers on-demand for LLMs, reducing context overhead.