
MetaMCP
io.github.mentu-aiPublished by GitHub account mentu-aiv1.0.0Updated Oct 25, 2026
Route long-tail MCP servers through three lazy tools and reviewed declarative Methods.
Overview
MetaMCP is a local gateway that exposes three stable tools to discover, lazily call, and run declarative Methods across configured long-tail MCP servers.
- What you can do
- Discover configured servers, cached tool schemas and reviewed Methods without starting every child server, with optional per-server refresh from live tool lists. Call one explicitly named child tool on demand, with a timeout and no automatic replay after failures. Run bounded, schema-validated declarative Methods that chain steps across child servers, with read/write effects, deadlines and per-step traces. Export a hash-linked evidence bundle from the local ledger of completed calls and runs. Optionally browse and add gallery servers through the CLI, which never installs packages in response to a tool call.
- When to use it
- Use it when you have many irregular or long-tail MCP servers and want to keep the client's tool surface small. It suits repeated multi-step acquire-normalize-analyze workflows that benefit from versioned, testable Methods. Keep high-frequency, compact, security-sensitive or strongly authenticated servers connected directly instead.
- Requirements
- Node.js 20 or newer; runs locally over stdio or Streamable HTTP. A configuration file listing child servers, passed with a config flag. Child credentials are referenced from the host environment and unresolved references fail startup. Optional semantic search needs METAMCP_VOYAGE_API_KEY set explicitly. Write or mixed-effect Methods require starting with the allow-writes flag.
Installation
In SourceWeft
- Open MetaMCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
MetaMCP
[npm version] [Node.js] [License] [CI]
MetaMCP is a secure, on-demand gateway for the long tail of MCP servers. It gives an MCP client three stable tools:
mcp_discoverfinds configured servers, cached tool schemas, and reviewed Methods without starting every child.mcp_calllazily calls one explicitly named child tool.mcp_runexecutes a bounded, schema-validated declarative Method.
MetaMCP is deliberately not a replacement for every direct MCP connection. Keep important, frequently used, compact, or strongly authenticated MCPs direct. Put irregular long-tail servers behind MetaMCP, and promote repeated multi-step rituals into Methods.
When to use which path
Do not route billing, infrastructure mutation, identity, or another high-consequence server through MetaMCP merely to reduce tool count. The right boundary is operational, not ideological.
Quick start
Requires Node.js 20 or newer.
Inspect the complete model-facing surface before configuring a client:
The inspector reads the same definitions returned by MCP tools/list, then exits before loading configuration, opening storage, starting a child, or binding a transport. --json includes the complete input schemas for automated review and version-to-version diffs.
Create .mcp.json:
Child servers start only when explicitly refreshed, called, or used by a Method. Plain discovery reads configuration and cached schemas; it does not spawn all children.
Server names are stable cache identities and must contain 1-128 letters, numbers, dots, underscores, or hyphens; path separators and traversal-like names are rejected.
Safe client setup
init is preview-only unless --yes is supplied. Without a named client it considers existing client config files only.
Malformed JSON is rejected and left untouched. A named client may be created explicitly; MetaMCP never creates every supported client config by default.
For a manual client configuration, use an absolute path so the gateway does not depend on the client's working directory:
@latest is convenient for evaluation. Pin @mentu/[email protected] in controlled environments so upgrades are deliberate and reviewable.
The three tools
Discover
Discovery searches only live or cached schemas. To refresh one server from its live tool list:
refresh without a server is rejected so an agent cannot accidentally fan out across the whole configuration.
Call
MetaMCP never automatically replays a child call after a timeout or transport failure. The child may have completed a mutation before the response was lost. A later Method may retry only when its manifest explicitly declares that step idempotency: "safe".
Run a Method
Put JSON manifests in .metamcp/methods/ or pass --methods <directory>. The child server and tool names below are illustrative; bind them to reviewed servers in your own config:
Then call:
Methods are declarative rather than arbitrary JavaScript. They have bounded step counts, deadlines and output sizes; input/output JSON Schemas; explicit read/write effects; safe interpolation; typed gaps; and a per-step trace. Write or mixed-effect Methods are disabled unless the gateway operator starts MetaMCP with --allow-writes.
See Method Mode, the manifest schema, and the example Method. The design generalizes the consistency layer documented by Crawlio Method Mode.
Configuration and secrets
${NAME} references in env and HTTP headers resolve from the host environment by default. An unresolved reference fails startup; it is never passed to a child as a literal placeholder.
MetaMCP does not copy its ambient environment into stdio children. It inherits only a small runtime allowlist (PATH, home/temp/locale variables, and platform equivalents), variables named in inheritEnv, and values explicitly set in the child env block. Embedders can install a custom SecretProvider for a keychain or vault.
Discovery is local keyword search by default. To opt into Voyage-backed semantic search, set METAMCP_VOYAGE_API_KEY explicitly; discovery queries will then be sent to Voyage and the optional local SQLite vector index will be enabled. Ambient ANTHROPIC_API_KEY or VOYAGE_API_KEY variables never activate network calls.
Remote child servers use url, transportType, headers, and the existing OAuth fields:
HTTP gateway
HTTP mode binds to 127.0.0.1 by default:
An unauthenticated non-loopback bind fails closed. Configure OAuth resource-server validation or METAMCP_HTTP_BEARER_TOKEN before exposing the listener. Browser requests with an Origin header are denied unless the exact origin is supplied with --allow-origin or METAMCP_ALLOWED_ORIGINS.
MetaMCP serves legacy MCP clients and the 2026-07-28 stateless request envelope over stdio and Streamable HTTP. See Architecture for the supported boundary and deployment guidance.
Evidence
Completed mcp_call and mcp_run attempts are serialized into .metamcp/ledger.jsonl. Export a portable hash-linked bundle:
The operational ledger is not a remote attestation system. The export detects later changes inside a bundle; it does not prove that a compromised host recorded every event.
Optional gallery
The package still ships a human-operated server gallery:
The runtime never installs packages in response to an MCP tool call. Installation remains an explicit CLI/user action.
Gallery entries are either a local launcher (command + args) or a hosted Streamable HTTP endpoint (url, shown as 🌐 in --list). Hosted entries are written to .mcp.json as native remote servers; the gallery never routes a remote server through a stdio bridge package.
Upgrade from 0.x
Version 1.0 intentionally removes the model-facing provisioning, skill-advice, and JavaScript execution tools. It also changes HTTP binding, child environment inheritance, retries, and init. Read Migration to 1.0 before upgrading.
Security
Child MCP servers are trusted local or remote code with their own permissions. MetaMCP is a policy and lifecycle boundary, not an OS sandbox for untrusted packages. Review commands, pin packages where appropriate, scope credentials per child, and keep dangerous direct servers behind client-side human approval.
Report vulnerabilities privately as described in SECURITY.md.
Development
npm publish runs the full verify:release gate again. The gate derives the public tool surface from the built CLI and checks package, lockfile, changelog, and official MCP Registry metadata for version drift.
Apache-2.0 licensed. Maintained by Mentu AI.
Source: README.md at commit ccc9ac7
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts