facadec
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.
facadec
Facade Compiler for MCP — compile a fat tool catalog into three tools an agent can actually afford to see.
search_tools · describe_tool · call_tool
Live playground · Verify in Cursor

The pitch
Modern agents keep wiring more MCP servers. Each server dumps more schemas into the prompt. Past a handful of tools the model pays for:
token bloat before the task starts
sibling-tool confusion (
search_issuesvssearch_codevssearch_docs)brittle selection that looks fine in demos and fails under real catalogs
facadec treats that as a compiler problem, not a prompt-engineering problem. It collects upstream tools, selects for the task, rewrites descriptions, consolidates near-duplicates, and emits a stable three-tool facade. The host only ever lists those three. Under the hood, calls still reach the original tools.
Related MCP server: mcp-winnow
Before / after
Example catalog: examples/config.example.json · tasks: bench/tasks/example-tasks.json
Mode | Tools exposed | Token estimate | Hit rate |
Raw | 42 | 2174 | 8/8 |
Compiled | 3 meta-tools | 198 | 8/8 |
11.0x smaller tool surface on the example suite, with the same 8/8 hit rate.
npm install
npm run benchmarkArchitecture
upstream MCP / mocks
│
▼
collect ──► canonical catalog
│
▼
select → rewrite → consolidate → facade
│
▼
search_tools / describe_tool / call_tool
│
▼
Cursor / any MCP hostStage | Job |
Collect | Pull tools from mocks or live MCP ( |
Select | Rank by domain + action for the current query |
Rewrite | Shorten and disambiguate descriptions |
Consolidate | Group near-duplicates into families |
Facade | Always expose the same three meta-tools |
Serve | MCP stdio runtime with optional live |
Benchmark | Raw vs compiled tokens and hit rate |
Verify in Cursor
Host surface is always three tools. Prove it locally:
npm run verify:cursorExpected:
tools/list: call_tool, describe_tool, search_tools
search_tools: hit filesystem.read_file
describe_tool: schema ok
call_tool: mock dispatch ok
Cursor-equivalent MCP handshake: PASSUse with Cursor
Merge into ~/.cursor/mcp.json (set cwd to this repo):
{
"mcpServers": {
"facadec": {
"command": "npx",
"args": [
"tsx",
"src/cli.ts",
"serve",
"--config",
"examples/config.example.json"
],
"cwd": "/absolute/path/to/facadec"
}
}
}Template: examples/mcp.cursor.json.
Quick start
npm install
npm run benchmark
npm run serve
npm run web:devCompile one query:
npx tsx src/cli.ts compile --config examples/config.example.json --query "Find and read the repository README file."Live upstream collect + call:
npm run collect:live
npm run serve:liveCLI
facadec collect --config <path> [--live]
facadec compile --config <path> --query <text> [--limit <n>] [--live]
facadec serve --config <path> [--query <seed>] [--demo <query>] [--jsonl] [--live]
facadec benchmark --config <path> --tasks <path> [--limit <n>] [--live]mockToolskeep demos offline by default--livecollects from real MCP servers and forwardscall_toolservedefaults to MCP stdio--demoprints a one-shot search → describe → call walkthrough
Not another router
Routers and lazy loaders stop at retrieval. facadec compiles the interface:
rewrites descriptions
merges duplicate families
emits facade tools
measures the before/after tradeoff
If your agent only has a few tiny tools, skip it. If the catalog is growing faster than the context window, this is the layer.
Who this is for
MCP-heavy agent builders
framework authors shipping multi-server defaults
local-model setups where every tool token hurts
teams that need a publishable raw-vs-compiled report, not vibes
Layout
src/
catalog/ collect + normalize
compile/ select → rewrite → consolidate → facade
runtime/ MCP server + upstream pool
benchmark/ raw vs compiled reports
web/ live playground (GitHub Pages)
examples/ mock catalog, live echo, Cursor config
bench/tasks/ example suite
tests/
.github/ CI + PagesStatus
MVP is end-to-end and public:
collect from mocks or live MCP
compile with clean selection
serve three meta-tools over MCP stdio
forward live
call_toolto upstream serversplayground + continuous terminal demo + CI
publishable numbers: 42 → 3 tools, 11.0x, 8/8
License
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
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
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 gradedqualityCmaintenanceEnables agents to use many MCP servers without context bloat by exposing meta-tools (search, load, call, run_code) that reduce token usage via progressive disclosure and result trimming.MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to search a local catalog, load skills, inspect MCP tool schemas, and invoke selected tools through a single unified MCP tool, reducing per-request overhead.1MIT
- AlicenseNot gradedqualityCmaintenanceFronts every MCP server you have with two tools: search shortlists relevant tools, and execute runs sandboxed Python that calls upstream tools as mcp..(). It enables agents to make bulk, repeated, or conditional tool calls using calibrated decision-model choices instead of per-item LLM generation.3MIT