onemcp
by gdinesh012
Overview
An aggregator server for Multiple Control Protocol (MCP) tools, enabling centralized semantic search and execution of tools from various external MCP servers and internal sources via a unified JSON-RPC interface.
Installation
./onemcpEnvironment Variables
- MCP_LOG_FILE
- MCP_LOG_LEVEL
- MCP_SERVER_NAME
- MCP_SERVER_VERSION
- ONEMCP_CONFIG
Security Notes
CRITICAL RISK: The server is designed to execute external commands directly from its configuration file (`mcpServers[name].command` and `mcpServers[name].args`) using `os/exec.Command`. This represents a severe remote code execution vulnerability if an attacker can modify the `.onemcp.json` configuration or provide a malicious configuration. Additionally, the LLM search functionalities for 'claude', 'codex', and 'copilot' also invoke external CLI tools (`claude`, `codex`, `copilot`) using `os/exec.Command`. For Claude and Codex, it explicitly uses `--dangerously-skip-permissions` and `--dangerously-bypass-approvals-and-sandbox` flags, which disable critical security measures of those CLI tools, significantly increasing the risk of unintended actions or data leakage if those CLIs are exploited or misused. There are no clear input sanitization or sandboxing mechanisms observed for these command executions. Due to these factors, the server is NOT safe to run in environments where configurations or external tool interactions can be influenced by untrusted sources.
Similar Servers
klavis
Creates an AI agent using LangChain in TypeScript that interacts with Gmail and YouTube through a Klavis Strata MCP server, enabling tasks such as summarizing YouTube videos and emailing the summaries.
mcp-k8s-go
An MCP server enabling AI assistants and users to interact with and manage Kubernetes clusters by listing, getting, applying, and executing commands on Kubernetes resources.
mcp-omnisearch
A Model Context Protocol (MCP) server that provides unified access to multiple search providers, AI tools, and content processing/enhancement features through a single interface.
mcp-devtools
A high-performance MCP server providing a unified, modular interface to essential developer tools for AI agents, replacing multiple Node.js/Python-based solutions with an efficient Go binary.