Show HN: Cmcp – Aggregate all your MCP servers behind 2 tools (github.com)

🤖 AI Summary
A new tool called cmcp has been introduced that streamlines the management of multiple Model Context Protocol (MCP) servers by allowing developers to register all servers behind just two tools: search() and execute(). This eliminates the need for registering dozens of individual tools, significantly reducing the complexity for AI agents, which previously had to parse up to 180 tool definitions for six servers. By enabling agents to write TypeScript code for tool interactions, cmcp simplifies the process while offering type safety and sandboxed execution in a QuickJS engine. The release is significant for the AI/ML community as it addresses the growing challenge of managing tool overload, which can hinder model performance and responsiveness. With hot-reload capabilities, developers can easily add new servers without restarting their AI agents. The TypeScript integration facilitates compositional programming, allowing multiple tool calls in a single execution, while the automatic generation of TypeScript declarations from JSON Schema enhances clarity in tool usage. cmcp is particularly optimized for stateless tool servers, making it a versatile solution for integrating various APIs and automation tools, although it is not suited for servers requiring complex auth flows or lifecycle management features.
Loading comments...
loading comments...