mcplazy
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.
mcplazy
A tiny MCP gateway that exposes four tools — catalog_list, catalog_search,
tool_schema, and invoke — instead of dumping every backend tool schema
into the context window on every turn.
Point it at a JSON catalog of backend tools (a tools/list dump, or a
hand-written list). In serve mode it speaks MCP over stdio with
Content-Length framing.
Install
Python 3.10 or later.
From a checkout:
python3 -m pip install .
python3 -m pip install -e ".[dev]" # optional, for testsRelated MCP server: DeepSeek Capability Hub
30-second quick start
cat > catalog.json << 'EOF'
{
"tools": [
{
"name": "github.create_issue",
"description": "Create an issue in a GitHub repository.",
"inputSchema": {"type": "object", "properties": {"title": {"type": "string"}}, "required": ["title"]},
"result": {"number": 42}
}
]
}
EOF
mcplazy --catalog catalog.json tax
mcplazy --catalog catalog.json call catalog_search --args '{"query":"issue"}'Sample output from that exact example:
$ mcplazy --catalog catalog.json tax
{
"backend_tools": 1,
"eager_tokens": 46,
"lazy_tokens": 198,
"saved_tokens": -152,
"estimator": "ceil(utf8_bytes / 4)"
}
$ mcplazy --catalog catalog.json call catalog_search --args '{"query":"issue"}'
[
{
"name": "github.create_issue",
"description": "Create an issue in a GitHub repository."
}
]With one tiny backend tool, the four gateway schemas can be larger than the eager dump (saved_tokens is negative). That is expected. On a 25-tool catalog the same command reports a savings (in one measured run: eager 2161, lazy 198, saved 1963, still ceil(utf-8 bytes / 4)).
tax prints eager vs lazy schema token estimates (ceil(utf-8 bytes / 4)).
serve is the stdio MCP server you can hook into a client later.
This first release uses a static catalog (and optional canned result
values) so it can be tested without live credentials. Forwarding to a live
stdio backend can be added next without changing the four gateway tools.
Credit
Motivated by the MCP "context tax" reports of late Oct / early Nov 2026. Original JSON-RPC implementation; no source was copied from any MCP server.
Limits
This release uses a static catalog. Optional canned
resultvalues can be included in the catalog for demos and tests.invokedoes not forward calls to a live MCP backend. If a tool has no cannedresult, it returns{"ok": true, "tool": "...", "arguments": {...}}.servespeaks MCP over stdio withContent-Lengthframing. It is not a network server.Incoming stdio messages larger than 8 MiB are rejected.
Duplicate tool names in a catalog are an error.
From GitHub you can also install with:
python3 -m pip install git+https://github.com/perron/mcplazy.gitThis package is not published to PyPI.
Use it with your agent
You can point a coding agent at this repository and ask it to use the tool, adapt it, or write a small tool in the same style. That works with Claude Code, Codex, Cursor, Grok Bot, and anything else that can clone a git repo and run a Python CLI.
A short prompt you can paste:
Clone https://github.com/perron/mcplazy and read the README limits carefully. Using the catalog at ./catalog.json, show me the tax comparison and a catalog_search for 'issue'. Do not claim that invoke talks to a live backend; this release uses a static catalog.
If you want a new tool in this style, say so explicitly: one job, standard-library Python, pytest first, no API key, and an honest Limits section.
Contributing / how you can help
Bug reports, tight tests, and small honest features are welcome. See CONTRIBUTING.md for how to run the suite and for pull request guidelines.
Good first issues:
Optional live stdio forwarding for
invoke, covered by tests (this release uses a static catalog on purpose).Add a
limitargument tocatalog_listandcatalog_search.Reject or warn on a catalog tool whose
inputSchemais not an object.
If you are unsure whether an idea fits, open an issue before writing a large patch.
License
MIT. See LICENSE. Please read SECURITY.md before filing a vulnerability report. Agents should also read AGENTS.md.
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
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Discover, compare, route, and execute machine-accessible capabilities for AI agents.
Search the tool catalog. Customer API key required. Catalog metadata is not a security guarantee.
Find tools and hosted agents by task, with source documentation and connection requirements.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAggregates multiple Model Context Protocol servers into a single gateway to provide unified search, description, and execution of tools. It reduces context limit issues by dynamically fetching specific tool schemas only when needed rather than loading all available tools at once.7 npm22MIT
- AlicenseAqualityBmaintenanceEnables agents to search a lightweight catalog, inspect permissions, lazily start trusted MCP servers, and call child tools without keeping all schemas in context. It also loads approved skills on demand and routes third-party additions through a human approval queue.175 npm1MIT
- FlicenseNot gradedqualityCmaintenanceEnables agents to securely discover and invoke a centrally governed catalog of tools from distributed internal and external providers, with policy enforcement, quotas, inspection, and audit controls.-
- AlicenseNot gradedqualityBmaintenanceEnables agents to search across the pooled tools of many connected MCP servers and invoke them through a single endpoint, returning only the handful of tools relevant to each request. Filters by the caller's permissions before ranking, so agents never see or plan around tools their user is not allowed to use.MIT