MCP server · Audited from source
Matryoshka MCP server
by yogthos/matryoshkaApache-2.0 licenceAudited 7 Oct 2026 · source 3a2549633d52
Is it safe? No — BLOCK, grade F (59/100). It exposes 78 tools: 71 read, 4 write and 3 destructive. The audit recorded 20 findings (0 critical, 5 high, 2 medium, 13 low). Maintainer's description: MCP server for token-efficient large document analysis via the use of REPL state
Cite
Cite this page
ModelsAtlas. “Matryoshka MCP server (yogthos/matryoshka)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/yogthos/matryoshka
Why this is BLOCK. The audit found 0 critical and 5 high findings; the most severe is Code injection at src/constraints/verifier.ts:359. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
20 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared3 observations
- NetworkDeclared10 observations
- ShellDeclared5 observations
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
Findings (20)
Sorted by severity
HIGHCode injectioncode.eval_exec · src/constraints/verifier.ts:359
const fn = new Function("result", `"use strict"; return (${invariant});`);- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/logic/synthesis-integrator.ts:814
const fn = new Function("input", `return ${generatedCode}`) as (- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/persistence/predicate-compiler.ts:191
return new Function("item", `"use strict"; return (${code});`);- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/persistence/session-db.ts:31
exec(sql: string, params?: SqlValue[]): SqlJsQueryExecResult[];
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/persistence/session-db.ts:113
exec(sql: string): void {- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
MEDIUMNetwork egressnet.raw_ip · src/tool/adapters/http.ts:222
const url = new URL(req.url || "/", `http://127.0.0.1:${localPort}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
lattice_memo_delete, lattice_reset, prefix_suffix_strip
- Why
- 3 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInformation disclosuredisclose.log_secret · tests/persistence/comparison.test.ts:326
console.log(`Token savings: ${savings}%`);- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.system_paths · tests/tool/lattice-tool.test.ts:292
const result = await tool.executeAsync({ type: "load", filePath: "/etc/passwd" });- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · demos/phase1-rlm-query/harness.ts:13
import { runRLM } from "../../src/rlm.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · demos/phase1-rlm-query/harness.ts:14
import { createNucleusAdapter } from "../../src/adapters/nucleus.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · demos/phase3-multi-context/after.test.ts:22
import { runRLMFromContent } from "../../src/rlm.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · demos/phase3-multi-context/after.test.ts:23
import { createNucleusAdapter } from "../../src/adapters/nucleus.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · demos/phase3-multi-context/before.test.ts:20
import { runRLMFromContent } from "../../src/rlm.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/tool/http-adapter.test.ts:77
const response = await fetch(`http://127.0.0.1:${port}/load`, {- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/tool/http-adapter.test.ts:94
await fetch(`http://127.0.0.1:${port}/load`, {- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/tool/http-adapter.test.ts:100
const response = await fetch(`http://127.0.0.1:${port}/reset`, {- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/tool/http-adapter.test.ts:115
const response = await fetch(`http://127.0.0.1:${port}/health`);- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.decode_call · tests/synthesis/coordinator.test.ts:387
expect(() => safeEvalSynthesized(`(x) => atob(x)`)).toThrow();
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, @tree-sitter-grammars/tree-sitter-markdown, @types/sql.js, @vscode/tree-sitter-wasm, @yogthos/tree-sitter-clojure, graphology, graphology-communities-louvain, graphology-dag
- Why
- 30 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
78 declared in source · 3 destructive
3 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | What it does | Risk |
|---|---|---|
lattice_memo_delete | Delete a memo that is no longer needed to free memory. Use this when context becomes stale or irrelevant (e.g., after finishing work on a module). Check lattice_bindings to see current memos and their handles. | destructive |
lattice_reset | Clear all handles and bindings but keep the document loaded. Use this to start fresh analysis. | destructive |
prefix_suffix_strip | Remove prefix ${JSON.stringify(inputPrefix.slice(0, 50))} and suffix ${JSON.stringify(inputSuffix.slice(0, 50))} | destructive |
batch_llm_query | Execute multiple LLM queries in parallel. Much faster than sequential llm_query calls when you need to process multiple chunks or sections. All prompts are sent simultaneously. | write |
lattice_query | Execute a Nucleus query on the loaded document. RETURNS HANDLE STUBS (not full data): - Array results return a handle like | write |
nucleus_execute | Execute Nucleus commands directly on a document without LLM orchestration. | write |
trigger | No description in the source | write |
analyze_document | Analyze a document using the Recursive Language Model (RLM). | read |
auto_synthesized | Synthesized from ${inputs.length} examples | read |
bad | No description in the source | read |
bracket_content | Extract content from brackets | read |
bracket_extract | Extract content from square brackets | read |
child1 | No description in the source | read |
child2 | No description in the source | read |
context.match | Search context with a regular expression. Returns all matches. | read |
context.slice | Get a portion of the context by character indices. Use sparingly - prefer fuzzy_search to find relevant sections first. | read |
count_tokens | Estimate the token count of text. Useful for checking if a section will fit in an LLM call. Uses word-based heuristics (most words = 1 token). | read |
currency | Currency pattern | read |
currencyExtractor | Extracts currency as number | read |
currency_decimal | Extract decimal from dollar currency | read |
currency_extractor | No description in the source | read |
currency_integer | Extract integer from dollar currency | read |
date | Date pattern | read |
derived | No description in the source | read |
digits | No description in the source | read |
empty | No description in the source | read |
extractor1 | No description in the source | read |
fuzzy_search | Find approximate keyword matches using fuzzy string matching. Returns matching lines with line numbers and match scores (lower score = better match). NOTE: Takes a single search term, NOT regex. For regex patterns use grep() instead. | read |
good | No description in the source | read |
grep | Fast regex search with line numbers. More efficient than context.match for finding specific patterns. Returns matches with line numbers and character indices. | read |
high | No description in the source | read |
high-usage | high usage component | read |
imported | No description in the source | read |
integer_commas | Parse integer with comma separators | read |
integer_plain | Parse plain integer | read |
key_equals_value_extract | Extract value from key=value pattern | read |
key_value_extract_key | Extract key from key: value pattern | read |
key_value_extract_value | Extract value from key: value pattern | read |
lattice_bindings | Show current handle bindings. Returns all active handles with their stubs: $grep_error: Array(500) [preview of first item...] $filter: Array(50) [preview...] RESULTS: -> $filter Use this to see what data you have available before deciding what to expand. | read |
lattice_close | Close the current session and free memory. | read |
lattice_expand | Get full data from a handle when you need to inspect actual results. USE THIS WHEN: - You need to see actual content to make decisions - You want to verify what | read |
lattice_help | Get complete Nucleus command reference documentation. | read |
lattice_llm_respond | Resolve a pending (llm_query ...) suspension with a single string response. When lattice_query hits (llm_query ...) and the client doesn | read |
lattice_load | Load a document for analysis. Call this first before querying. | read |
lattice_stats | Get statistics about the currently loaded document. | read |
lattice_status | Get current session status including document info, active handles, and timeout. | read |
llm_query | Query a sub-LLM to process a chunk of text. Expensive operation - batch related information when possible to minimize calls. Use format: | read |
locate_line | Extract lines by line number (1-based). More precise than slice() for line-based navigation. Supports negative indices to count from end. | read |
log_level_extract | Extract log level from log line | read |
lonely | No description in the source | read |
low | No description in the source | read |
minikanren_synthesized | Synthesized via miniKanren relational search | read |
new-component | No description in the source | read |
nucleus_commands | Get reference documentation for available Nucleus commands. | read |
number | Number pattern | read |
original | test description | read |
paren_content | Extract content from parentheses | read |
parent | No description in the source | read |
percentage_to_decimal | Convert percentage to decimal | read |
regex | No description in the source | read |
regex1 | No description in the source | read |
regex2 | No description in the source | read |
removable | No description in the source | read |
split_comma | Split by comma | read |
split_pipe | Split by pipe | read |
structured_currency_extract | Extract currency value from structured text | read |
structured_number_extract | Extract number from structured text | read |
template_synthesized | Template synthesized from ${inputs.length} examples | read |
test | No description in the source | read |
test1 | No description in the source | read |
test2 | No description in the source | read |
test_high | No description in the source | read |
test_low | No description in the source | read |
test_regex | test | read |
test_transform | test | read |
text_stats | Get document metadata WITHOUT reading tokens: length, line count, and 5-line samples from start/middle/end. Use this first to understand document structure. | read |
toNumber | No description in the source | read |
zero-usage | never used component | read |
Safer alternatives
yogthos/wavescope-mcp
Wavelet-based multi-resolution context management for LLMs via MCP
utensils/mcp-nixos
MCP-NixOS - Model Context Protocol Server for NixOS resources
graphlit/graphlit-mcp-server
Model Context Protocol (MCP) Server for Graphlit Platform
Audit history
- ✕BLOCK F 59 / 100
First audit ·
3a2549633d52
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about Matryoshka MCP server
What is the Matryoshka MCP server?
What tools does Matryoshka expose?
Is Matryoshka safe to connect to an agent?
What credentials does Matryoshka need?
How does Matryoshka run?
How current is this page?
I already installed Matryoshka. What should I do?
Can the verdict change?
Sources
- yogthos/matryoshka on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit 3a2549633d52Observed · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Matryoshka MCP server?
- What tools does Matryoshka expose?
- Is Matryoshka safe to connect to an agent?