AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
Dev Tooling/
Matryoshka
Matryoshka logo

Matryoshka

Active·★ 150·Apache-2.0·Updated 2026-05-17

Matryoshka (RLM) addresses the limitation of fixed LLM context windows by using a recursive language model approach. Instead of chunking or RAG, the LLM outputs commands in a constrained symbolic language called Nucleus, which are executed by the Lattice logic engine. This reduces entropy, enables safe execution, and achieves 97% token savings through handle-based storage.

#ai-assistant#document-analysis#llm#llm-tools#mcp#mcp-server#mcp-servers#model-context-protocol
$ Install
$ npm install -g matryoshka-rlm
↗ Visit site★ GitHub
01

Features

01Recursive Language Model (RLM) architecture based on a paper
02Nucleus DSL: constrained S-expression language for safe LLM output
03Lattice engine: parser, type inference, constraint resolver, and solver
04In-memory handle storage with SQLite FTS5 achieving 97% token savings
05Tree-sitter code-aware querying for structural symbols
02

Compatibility

Node.js
Node.js
Verified via docs
03

Quick start

1
$ npm install -g matryoshka-rlm
04

Use cases

↳Document analysis: search, filter, count, and sum large log files
↳Code analysis: extract functions, classes, find references in source code
↳Large-scale data queries without exceeding LLM context limits
05

Alternatives

⚡Top VS:
VSchiasmus★217→VSUNO-MCP★14→VSreddit-mcp-buddy★862→VSdbt-mcp★612→
chiasmus logo
chiasmus★ 217
Chiasmus is an MCP server that gives language models access to formal verification
VSCompare→
UNO-MCP logo
UNO-MCP★ 14
Unified Narrative Operator MCP server — AI-powered prose expansion, repetition analysis & narrative enhancement
VSCompare→
reddit-mcp-buddy logo
reddit-mcp-buddy★ 862
Clean, LLM-optimized Reddit MCP server. Browse posts, search content, analyze users. No fluff, just Reddit data.
VSCompare→
dbt-mcp logo
dbt-mcp★ 612
A MCP (Model Context Protocol) server for interacting with dbt.
VSCompare→
mcp-ts-core logo
mcp-ts-core★ 153
TypeScript template for building Model Context Protocol (MCP) servers. Ships with declarative tools/resources, pluggable auth, multi-backend storage, OpenTelemetry observability, and first-class support for both local and edge (Cloudflare Workers) runtimes.
VSCompare→
llm-wiki-kit logo
llm-wiki-kit★ 61
Stop re-explaining your research to your AI agent. Persistent, LLM-maintained wikis that compound over time. Drop PDFs, URLs, YouTube — your agent remembers forever. Based on Karpathy's LLM Wiki pattern.
VSCompare→
mikrotik-mcp logo
mikrotik-mcp★ 304
MCP server for Mikrotik
VSCompare→
mcpfusion logo
mcpfusion★ 255
MCP Fusion - The TypeScript framework for secure MCP servers.
VSCompare→
See all alternatives →

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
yogthos /
Matryoshka
↗

MCP server for token-efficient large document analysis via the use of REPL state

150Apache-2.0
Last commit5mo ago
StatusActive
CategoryDev Tooling
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.