Stdio MCP proxy: intercepts oversized tool results into a queryable embedded DuckDB.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Β
Β
An MCP client asks a tool a question, and the answer comes back as a ten-thousand-row JSON dump β most of which the model didn't need but now has to hold in context. Loom sits in the middle.
When a result is small, it passes through untouched. When a result is large and tabular, Loom ingests it into an embedded DuckDB and hands the model a compact envelope instead: a dataset ref, the schema, column stats, a few sample rows, join hints, and provenance. The model then queries precisely what it needs β including joins across data from different servers, which no single server can answer alone.
The economics: a 48k-token tool result becomes a ~2k-token envelope. The model spends its context on answers, not raw dumps.
Loom earns its place in three situations that cover the ordinary case of real MCP usage:
env block β the bulk of real connectors. There is no gh-equivalent for the model to route around.Cross-server joins run through all three: no single CLI answers a question spanning two services' data.
Two boundaries, stated plainly:
bash and a service with a known CLI and ambient credentials β gh against GitHub is the sharpest case β and it goes straight to the CLI, faster and cheaper, skipping loom and MCP both. That is the agent preferring a CLI to MCP, not a loom defect; loom is an MCP-layer product and will not beat gh at being gh. It is also the minority case: most servers wrap things with no model-reachable CLI, and the largest client surfaces have no shell.stargazersCount, language, or forks); loom captured all 17 faithfully, and a star-ranking question was still unanswerable from that data. The bound is the downstream's, not loom's.Loom is itself a stdio MCP server. It sits between one upstream MCP client (Claude Desktop, Claude Code, Cursor, etc.) and N downstream MCP servers that you configure:
list_changed if a server exhausts its restart budget).<server>_<tool> and re-exposes the aggregated tool list upward, keeping it live via list_changed.call_tool to the correct downstream child. Small results return unmodified β pass-through is byte-identical. Large tabular results are intercepted into DuckDB and replaced with a loom_dataset_ref envelope; any interception failure degrades to the untouched original.loom_query (guarded read-only SQL, cross-server joins included), loom_list_datasets, loom_describe (full schema, stats, and fresh join hints for a dataset), loom_materialize (pin a derived query result as a new dataset), and loom_export (sealed csv/json export). Interception depth is capped at 1 per upstream call; loom_materialize does not consume that budget.Loom intercepts both structured results and formatted text: when a result carries a structuredContent channel it ingests from that; otherwise it parses JSON-in-text, and failing that, extracts repeating records from formatted text under a strict never-lie bar (it never emits a table it isn't sure of β any uncertainty degrades to an untouched pass-through). See SPEC.md for the full normative specification.
Point any MCP client at that command. Configuration can also be supplied via the LOOM_CONFIG environment variable instead of --config:
(--config takes precedence if both are set.) See loom.config.example.json for a minimal working example.
Loom is launched by your MCP client the same way any stdio server is β point the client at npx -y mcp-loom --config <absolute path to loom.config.json>.
Claude Desktop (claude_desktop_config.json):
Cursor (.cursor/mcp.json): the same mcpServers block as above.
Claude Code β add it from the CLI:
Use an absolute path to loom.config.json β MCP clients spawn servers with an unspecified working directory. Loom then spawns and namespaces the downstream servers listed in that config.
Config is a single JSON file, validated with zod at startup; invalid config fails fast with a readable error listing every violated field.
| Field | Type | Default | Notes |
|---|---|---|---|
servers | array (min 1) | β (required) | The downstream servers to proxy. See below. |
servers[].name | string | β (required) | Must match ^[a-z][a-z0-9_]{0,31}$, unique across all servers. loom is reserved (used exclusively for synthetic tools) and rejected. |
servers[].command | string | β (required) | Executable to spawn (e.g. npx). Non-empty. |
servers[].args | array of strings | [] | Args passed to command. |
servers[].env | object (stringβstring) | {} | Extra environment variables for this server's child process only. See "Child environment" below. |
servers[].envPassthrough | array of strings | [] | Names of extra non-secret vars to forward from Loom's own environment to this server's child, on top of the curated safe base (default-deny β the launching shell's env is not copied wholesale). See "Child environment" below. |
servers[].provenanceDenylist | array of strings | [] | This server's tool names whose provenance.args are omitted entirely ("[omitted]") from envelopes, loom_describe, and loom_list_datasets β for tools whose args are nothing but credentials. Other tools keep the heuristic key-based redaction. |
tokenThreshold | integer β₯ 100 | 2000 | Interception fires when a tabularizable text result exceeds this; a coarse chars/4 order-of-magnitude dial, NOT precise (undercounts CJK). |
memoryBudgetBytes | integer β₯ 1048576 | 268435456 (256 MiB) | Soft eviction budget on tracked dataset bytes; implicit query-result datasets evict LRU-first, then downstream ingests. |
duckdbMemoryLimit | string, /^\d+(\.\d+)?(KB|MB|GB|TB)$/ | "512MB" | Hard engine backstop (SET memory_limit); ops spill to disk under a computed thread bound rather than OOM. |
exportDir | string | "./exports" | Directory where loom_export writes csv and json files. |
queryTimeoutMs | integer β₯ 1 | 30000 | Bounds a loom_query (interrupt()-timer). |
restart.maxAttempts | integer β₯ 0 | 5 | Max consecutive restart attempts per downstream server before it is delisted (tools removed, list_changed emitted). 0 disables restart. |
restart.baseDelayMs | integer β₯ 1 | 1000 | Base delay for restart backoff. |
If every configured server fails to start, Loom itself fails to start (fatal). If only some fail, Loom starts with a warning and the surviving servers' tools available.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-loom)<a href="https://allmcps.com/mcp/mcp-loom"><img src="https://allmcps.com/api/badge/mcp-loom?style=directory" alt="MCP Loom on AllMCPs" /></a>