decompose_textLABSCO SUMMARY
The step before retrieval, not another retrieval system.
Chunking treats every paragraph as equal and then leans on embeddings to sort it out. Classifying first means a contract's boilerplate and its load limit are labelled differently before either is embedded, which is what makes routing by risk possible — safety-critical text to one chain, financial to another, low-attention text to none. Being deterministic and key-free is what makes it cheap enough to run on everything.
What it is
A text classifier for agents. It splits a document into units and labels each one, so downstream code can filter, route or prioritise before any text reaches a language model.
What you get
decompose_textclassifies any text you pass it;decompose_urlfetches a public page and classifies its content- Each unit carries
authority— mandatory, prohibitive, directive, permissive, conditional or informational — so a hard requirement is distinguishable from background risklabels it safety_critical, security, compliance, financial, contractual, advisory or informationaltypesays whether it is a requirement, definition, reference, constraint, narrative or data;actionablesays whether someone has to do somethingirreduciblemarks text that must be preserved verbatim;attentionscores 0.0 to 10.0 how much compute the unit deservesentitiesextracts the formal references cited — standards, codes and regulations- The Python library adds
filter_for_llm(result, max_tokens=...), which keeps mandatory, safety-critical, financial and compliance units and reports the reduction as a percentage
Requirements
pip install decompose-mcp for version 0.2.0, then add it to your client as uvx decompose-mcp --serve over stdio. No API key and no model call — the classification is deterministic. It also runs as a CLI reading stdin, and as a Python library.
Setup effort
One command — pip install decompose-mcp
USE CASES
Cutting a long document down before the model sees it
Keep mandatory, safety-critical, financial and compliance units and drop the boilerplate.
Routing content to the right handler
Send safety-critical text to full analysis and skip anything with a low attention score.
Pulling the standards out of a specification
Get the codes and regulations cited, extracted as entities rather than found by eye.
Classifying something published on the web
Point it at a URL and get the classified units back in one call.
2 tools
Listed in project docs. Your client may show a different list.
decompose_urlBEFORE YOU INSTALL
What to know first
Tools you get
2 tools named in the project's documentation.
Requires
uvx on PATH
Where it runs
All 4 documented clients run the server on your machine.
INSTALLATION
Connect your client
Server setup
pip install decompose-mcpMCP Clients
Claude Code, Cursor, Windsurf
{
"mcpServers": {
"decompose": {
"command": "uvx",
"args": [
"decompose-mcp",
"--serve"
]
}
}
}OpenClaw
{
"mcpServers": {
"decompose": {
"command": "python3",
"args": [
"-m",
"decompose",
"--serve"
]
}
}
}