
Product
Introducing Manifest Alerts
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.
@khanglvm/tool-hub-mcp
Advanced tools
Serverless MCP Aggregator - Reduce AI context token consumption by 38%
Serverless MCP Aggregator - Reduce AI context token consumption by 38%
# Zero-install usage (recommended)
npx @khanglvm/tool-hub-mcp setup
npx @khanglvm/tool-hub-mcp serve
npx @khanglvm/tool-hub-mcp benchmark
Also works with other JS package runners:
bunx @khanglvm/tool-hub-mcp setup
pnpm dlx @khanglvm/tool-hub-mcp setup
yarn dlx @khanglvm/tool-hub-mcp setup
When using multiple MCP servers with AI clients (Claude Code, OpenCode, etc.), each server exposes all its tools to the AI. With 5+ servers, you can easily consume 25,000+ tokens just for tool definitions.
tool-hub-mcp acts as a single MCP endpoint that exposes only 5 meta-tools:
| Tool | Description |
|---|---|
hub_list | List all registered MCP servers |
hub_discover | Get tools from a specific server |
hub_search | Search for tools across servers |
hub_execute | Execute a tool from a server |
hub_help | Get detailed help for a tool |
Result: 18,613 tokens saved = 38.48% reduction (measured with 6 MCP servers in Claude Code)
# Import configs from AI CLI tools (Claude Code, OpenCode, etc.)
npx @khanglvm/tool-hub-mcp setup
# Run as MCP server (for AI client integration)
npx @khanglvm/tool-hub-mcp serve
# Add MCP servers manually
npx @khanglvm/tool-hub-mcp add jira --command npx --arg -y --arg @lvmk/jira-mcp
# Run token efficiency benchmark
npx @khanglvm/tool-hub-mcp benchmark
# Run speed/latency benchmark
npx @khanglvm/tool-hub-mcp benchmark speed
Add to your AI client config:
Claude Code:
claude mcp add tool-hub -- npx @khanglvm/tool-hub-mcp serve
Manual JSON config:
{
"mcpServers": {
"tool-hub": {
"command": "npx",
"args": ["@khanglvm/tool-hub-mcp", "serve"]
}
}
}
This package automatically installs the correct binary for your platform:
MIT © khanglvm
FAQs
Serverless MCP Aggregator - Reduce AI context token consumption by 38%
The npm package @khanglvm/tool-hub-mcp receives a total of 8 weekly downloads. As such, @khanglvm/tool-hub-mcp popularity was classified as not popular.
We found that @khanglvm/tool-hub-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.