AgentIndex icon
AgentIndex
ToolsCategoriesTrendingNewCompare
Submit Tool
Home/
Dev Tooling/
Matryoshka
Matryoshka logo

Matryoshka

Active·★ 138·Updated 2026-05-17
★ Trending★ RAG / Knowledge Base

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

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

fastmcp logo
fastmcp★ 25.4k
🚀 The fast, Pythonic way to build MCP servers and clients.
vs →
MCP-Chinese-Getting-Started-Guide logo
MCP-Chinese-Getting-Started-Guide★ 3.5k
Model Context Protocol(MCP) 编程极速入门
vs →
FunASR logo
FunASR★ 16.6k
Industrial-grade speech recognition toolkit: 170x realtime, 50+ languages, speaker diarization, emotion detection, streaming, and OpenAI-compatible API.
vs →
nuclear logo
nuclear★ 17.7k
Streaming music player that finds free music for you
vs →
semble logo
semble★ 4.5k
Fast and Accurate Code Search for Agents
vs →
initrunner logo
initrunner★ 38
Define AI agent roles in YAML and run them anywhere: CLI, API server, or autonomous daemon
vs →
thunderbit-mcp-server logo
thunderbit-mcp-server★ 13
AI-powered web scraping and structured data extraction. CLI + MCP server + Claude Code plugin for the Thunderbit Open API.
vs →
ninjaone-mcp logo
ninjaone-mcp★ 16
MCP server for NinjaOne — device monitoring, patching, scripting, and alert management tools for AI assistants
vs →
See all alternatives →

Related searches

Matryoshka AlternativesBest Dev Tooling Tools 2026Open Source Dev ToolingMatryoshka TutorialMatryoshka Vs Competitorsai-assistantdocument-analysisllm

Comments

Log in to leave a comment
  • J
    Jesse PatelMay 24, 2026

    Token-efficient large document analysis via REPL state management.

  • P
    Parker ChenMay 22, 2026

    Good for AI workflows processing large documents where context limits are the constraint.

  • R
    Reese GarciaMay 14, 2026

    Matryoshka metaphor is apt — nested analysis of document structure.

  • Q
    Quinn MartinezMar 24, 2026

    REPL state approach handles documents that don't fit in context windows.

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
Stats
GitHub Stars★ 138
Last commit1w ago
StatusActive
License—
CategoryDev Tooling
Trend (30d)
+5.5↑ 0.8%
Links
Documentation↗Discussion↗Issues↗Releases↗

Deploy on DigitalOcean — Get $200 Free Credit

Ad
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
QYSGitHubBuy me a coffee ☕

Browse by Category

Code AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.