Back to Home
StacklokLabs icon

mcp-optimizer

Verified Safe

by StacklokLabs

Overview

Acts as an intelligent intermediary MCP server providing semantic tool discovery, caching, and unified access to multiple MCP servers through a single endpoint for AI clients.

Installation

Run Command
mcp-optimizer

Environment Variables

  • RUNTIME_MODE
  • ALLOWED_GROUPS
  • ASYNC_DB_URL
  • DB_URL
  • K8S_API_SERVER_URL
  • K8S_NAMESPACE
  • K8S_ALL_NAMESPACES
  • EMBEDDING_MODEL_NAME
  • MAX_TOOL_RESPONSE_TOKENS
  • ENABLE_DYNAMIC_INSTALL
  • FASTEMBED_CACHE_PATH
  • TIKTOKEN_CACHE_DIR

Security Notes

The database operation classes (`BaseServerOps`, `BaseToolOps`) use f-strings to construct SQL queries with table names, which is a fragile pattern that could lead to SQL injection if table names were ever derived from user input. Although the code includes explicit warnings and attempts to enforce hardcoded table names via abstract properties, this architectural choice demands extreme caution. FTS queries are sanitized. No direct hardcoded secrets or 'eval' statements were found. In-cluster Kubernetes authentication is handled securely via service accounts.

Similar Servers

Stats

Interest Score37
Security Score8
Cost ClassMedium
Avg Tokens10000
Stars5
Forks0
Last Update2025-12-11

Tags

Semantic Tool DiscoveryUnified AccessTool ManagementGroup FilteringKubernetes IntegrationAI/ML Intermediary