mcp-meta
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-meta
Expose dozens of MCP tools through two.
Part of the meta-tool family: skill-meta applies the same lazy-facade idea to Agent Skills (3 tools for N skill catalogs across DSH/Claude/Codex/Magpie).
mcp-meta sits between your MCP client and any number of upstream MCP servers.
Instead of injecting every upstream tool schema into every request, it exposes
two tools:
Tool | Purpose |
| Overview, compact signatures, cross-server search, or one full schema |
| Call one tool on one server |
Schemas are fetched lazily, and only as deep as the model asks for: a server overview, then compact one-line signatures, then a single tool's complete JSON schema when the arguments need to be exact.
Why
Tool definitions are paid for on every request. A handful of MCP servers is enough to add tens of thousands of characters of JSON schema before the model has read a single line of your prompt. Measured on a 14-server setup:
14 servers / 104 tools -> 142,746 characters per request
2 tools -> 892 characters per request (-99.4%)The model keeps full access to every upstream tool; it fetches the schema at the moment it needs it.
Related MCP server: mcp-lazy-proxy
Install
pipx install git+https://github.com/monkey-sking/mcp-meta
# or
uv tool install git+https://github.com/monkey-sking/mcp-metaPython 3.9+ and the standard library only. No dependencies.
Configure
Create ~/.config/mcp-meta/servers.json:
{
"servers": {
"calc": {
"url": "http://127.0.0.1:3425/mcp/calc"
},
"search": {
"url": "https://mcp.example.com/mcp",
"headers": { "Authorization": "Bearer ${SEARCH_TOKEN}" },
"timeout": 30
},
"memory": {
"command": ["npx", "-y", "@modelcontextprotocol/server-memory"],
"exclude": ["delete_entities"]
}
}
}Field | Meaning |
| HTTP endpoint of an upstream MCP server |
| Argv array for a stdio upstream, e.g. |
| Working directory for a stdio upstream |
| Extra HTTP headers; values expand |
| Extra environment variables for a stdio upstream |
| Per-request timeout in seconds (default |
| Seconds of inactivity before a stdio upstream is stopped (default: keep it for the life of the process) |
| Optional tool allowlist / denylist |
|
|
Config discovery order:
--config PATHMCP_META_CONFIG~/.config/mcp-meta/servers.json~/.config/magpie/library.json(compatibility fallback)
Magpie's library.json works directly, so an existing Magpie Library can be
used as the upstream list without editing it.
Claude Desktop and Cursor configs work too: the mcpServers key and the
command + args split are read as-is, so a client config can be used
directly as --config, or converted into mcp-meta's own shape:
mcp-meta import ~/Library/Application\ Support/Claude/claude_desktop_config.json
# wrote 6 servers to ~/.config/mcp-meta/servers.jsonimport copies entries verbatim, so ${VAR} references are not expanded into
the file, and it will not overwrite an existing servers.json without
--force. Use --stdout to inspect the result first.
Use with an MCP client
Any client that speaks MCP over stdio can host it:
{
"mcpServers": {
"meta": {
"command": "mcp-meta",
"args": ["serve"]
}
}
}Or without installing:
{
"mcpServers": {
"meta": {
"command": "python3",
"args": ["-m", "mcp_meta", "serve"],
"cwd": "/path/to/mcp-meta"
}
}
}CLI
mcp-meta list # servers, transports, tool counts
mcp-meta import client-config.json # convert a Claude/Cursor/Magpie config
mcp-meta call calc add '{"a": 2, "b": 3}'
mcp-meta serve --config ./servers.jsonlist and call are conveniences for debugging; the MCP client normally only
needs serve.
How it behaves
mcp_toolswithout arguments prints a cheap overview, one line per server.mcp_tools server="x"prints one line per tool, e.g.search(query: string, [limit: integer]), where brackets mark optional parameters.mcp_tools server="x" tool="y"returns that tool's complete JSON definition — nested objects,enumvalues,requiredlists — so arguments never have to be guessed from a compact signature.mcp_tools servers=["a", "b"]lists several servers in one call.mcp_tools query="file"searches server names, tool names and descriptions across every server (case-insensitive, all words must match).limitcaps the output at 50 matches by default, 200 at most.Queries that span servers fetch them in parallel, up to 8 at a time; a single server's
tools/liststays serialized.Tool lists are cached for 5 minutes per server. Pass
refresh: trueto bypass the cache.The server list itself is read once, at startup: Magpie rewrites
library.jsonwhen connectors change, so a name can vanish from under a running process. An unknown server therefore answers with the current names, a near-miss suggestion, and the way back —mcp_toolswith no arguments re-lists and restarts from the file as it is now.Upstream sessions are opened on first use and kept for the life of the process. With
idle_timeoutset, an idle stdio upstream is stopped and restarted transparently on the next call.HTTP upstreams are supported both as plain JSON and as SSE responses, including
Mcp-Session-Idhandling.Protocol revisions are negotiated downward (
2025-06-18->2025-03-26->2024-11-05) so older servers still work.Tool errors are returned as tool output with
isError: truerather than killing the session.
Limits
The front end is stdio only (what desktop MCP clients expect).
mcp_callreturns text content; non-text blocks are serialized as JSON.querymatches server names, tool names and descriptions; it does not search inside parameter schemas.Resources, prompts, and sampling are not proxied.
Before / after (this machine)
The project started as a 214-line personal script wrapping a Magpie Library. This is the measured difference on the machine it came from, with 14 upstream servers behind it:
Before | After | |
Implementation | one-off script at | package installed with |
Config source | hardcoded | own config, Magpie file as fallback |
Upstream transports | HTTP only | HTTP + stdio |
Registered as |
|
|
Tool schema per request | 104 tools, 142,746 chars | 2 tools, 892 chars (-99.4%) |
SSE handling | first | full multi-line SSE events |
HTTP session | none |
|
| ignored | followed to the last page |
Protocol negotiation | fixed | falls back across three revisions |
Tool filtering | none |
|
Config formats | one hardcoded shape | Claude/Cursor |
Tool detail | signature only |
|
Long-running stdio upstreams | never released | optional |
Tests | none | 24 (unit + HTTP/stdio integration + end-to-end) |
Development
python3 -m unittest discover -s tests -vLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search, inspect and invoke every public tool on Invokera through one MCP connection.
Toolstile is a managed MCP gateway that connects remote MCP servers behind one endpoint, with per-agent permissions, shared accounts and activity logs. Connect at https://mcp.toolstile.com/mcp over Streamable HTTP with OAuth; sign in at https://toolstile.com, select a workspace and connect your upstream servers. Available tools, resources and prompts depend on that workspace and the agent's granted access.
Single-connection MCP gateway discovering and executing 490+ verified MCP & A2A tools.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAggregates tools from multiple upstream MCP servers and exposes them through 4 meta-tools, enabling LLMs to discover and use hundreds of tools without loading all schemas upfront.5Apache 2.0
- AlicenseNot gradedqualityBmaintenanceExposes only two meta-tools that discover and invoke backend MCP servers on demand, reducing context bloat while keeping all configured tools available.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables clients to connect once and access the union of multiple backend MCP servers' tools through a single unified interface, with namespaced tool routing, capability search, and health isolation.MIT
- AlicenseNot gradedqualityBmaintenanceServes MCP clients two tools, search_tools and call_tool, that index hundreds of MCP servers or OpenAPI specs and retrieve only the few tool definitions a request needs, cutting prompt context while raising tool-selection accuracy.Apache 2.0