Back to Home
pratikjadhav2726 icon

mcp-proxy

Verified Safe

by 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

Run Command
uv run -m mcp_proxy

Environment 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

Stats

Interest Score0
Security Score6
Cost ClassLow
Avg Tokens500
Stars0
Forks0
Last Update2025-12-10

Tags

MCPProxyOptimizationToken SavingsGrepProjection