mcp-learning-adapter
Verified Safeby babydoll1110
Overview
Optimizes Model Context Protocol (MCP) server interactions by acting as a proxy that learns to filter API responses, thereby reducing token usage (up to 80%) and improving efficiency for downstream LLM clients.
Installation
tsx src/adaptive-proxy.tsEnvironment Variables
- OPENAI_API_KEY
Security Notes
The server spawns external MCP server processes based on commands and arguments specified in `config/servers.json`. This introduces a security risk if the `servers.json` file is compromised or controlled by untrusted entities, potentially leading to arbitrary command execution. Sensitive API response data, albeit truncated to 20,000 characters, is sent to OpenAI's API for schema learning, which raises data privacy concerns for users. The OpenAI API key is currently read from `config/servers.json` rather than environment variables, which is generally less secure for managing API keys in production environments. No explicit `eval` or obvious malicious code patterns were found on untrusted input.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP 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-omnisearch
Provides a unified interface for various search, AI response, content processing, and enhancement tools via Model Context Protocol (MCP).
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.