@prxy-official/mcp-optimizer

MCP Optimizer✓ Verified

Prunes MCP tools to the ones actually relevant to the user's last message. Solves the 67k-tokens-of-MCP-tools problem by scoring each tool against the request via embeddings.

optimizationv1.0.0MITcloudlocal#mcp#tools#token-reduction#embeddings

Install

# Cloud
PRXY_PIPE=mcp-optimizer,semantic-cache,@prxy-official/mcp-optimizer

# Local
# Built-in module — ships with the gateway, no install needed
PRXY_PIPE=mcp-optimizer,semantic-cache,@prxy-official/mcp-optimizer

Add this module to your PRXY_PIPE env var. The order matters — modules run left-to-right on each request.

Configuration

Schema: https://github.com/Ekkos-Technologies-Inc/prxy-monster/blob/main/packages/modules-core/src/mcp-optimizer.ts

Author

ekkOS Technologies Inc. · @Ekkos-Technologies-Inc