Skip to main content
MCP server CX Codex

MetaMCP — Claude Code MCP server: what it does, how to install

An on-demand gateway for secondary MCP servers. It exposes three fixed tools to discover schemas, run lazy child tools, and execute verified workflows.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add metamcp -- npx -y @mentu/metamcp
Open on GitHub

What MetaMCP does

MetaMCP acts as a routing layer for MCP servers that are not needed on every turn. Connecting dozens of servers directly inflates the client prompt with tool definitions. MetaMCP replaces them with three predictable tools: mcp_discover to inspect cached schemas, mcp_call for on-demand execution, and mcp_run for pipeline tasks.

Downstream servers live in a .mcp.json configuration file and stay dormant until summoned. MetaMCP also supports Methods, which are declarative JSON manifests with strict step dependencies, input validation, and execution bounds.

Methods that alter state are blocked unless MetaMCP starts with the --allow-writes flag. The package requires Node.js 20 or newer. Foundational servers with sensitive authentication or frequent access should remain connected directly rather than routed through this gateway.

What it helps with

  • reduce tool schema overhead in the model context
  • load secondary MCP servers on demand without idling processes
  • execute multi-step workflows via validated JSON Methods
  • prevent unvetted mutations during automated tool retries

Example prompts for the agent

  • Search for page capture tools using mcp_discover
  • Execute capture_page on the browser child server using mcp_call
  • Run the content.acquire-and-normalize workflow via mcp_run

How to install MetaMCP

Platform CLI

claude mcp add metamcp -- npx -y @mentu/metamcp

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about MetaMCP

How do I install MetaMCP in Claude Code?

Run claude mcp add metamcp -- npx -y @mentu/metamcp. Then configure your target child servers in .mcp.json.

What is MetaMCP designed for?

It aggregates long-tail servers behind a small interface. Instead of exposing every tool schema at startup, it launches child servers only when explicitly called.

Why do mutating Methods fail by default?

Methods declaring write effects are disabled for safety. You must launch the gateway with --allow-writes to permit operations that modify external resources.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor