Back to Home
babydoll1110 icon

mcp-learning-adapter

Verified Safe

by 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

Run Command
tsx src/adaptive-proxy.ts

Environment 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

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens100
Stars0
Forks0
Last Update2026-01-19

Tags

MCPAPI GatewayToken OptimizationSelf-learningAILLM ProxyData Filtering