zettaquant-vslm-mcp
OfficialFilter noisy text down to topic-relevant sentences with ZettaQuant V-SLM before an LLM reads it.
Exposes one MCP tool,
vslm_predict(sentences, query), over stdio so MCP hosts can call it.Filters a list of sentences to those relevant to a natural-language query, preserving original order.
Returns
relevant_sentences,total_sentences,relevant_count,topic_used,topic_source, andmodel_id.Helps cut token spend on transcripts, articles, reports, and log lines by sending only the relevant context to the LLM.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@zettaquant-vslm-mcp Filter these earnings call sentences to only ones about AI capex plans."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Kolmo custom decision models MCP (private beta)
Train a private classifier from your own text and label definitions, then classify new text with it from any MCP client. kolmo-mcp runs locally over stdio and calls the ZettaQuant API, where training and inference run.
Access is by invitation only. Request access by email with your account email, organization, use case and expected volume. Once approved, create a My models: training and inference key at API Keys.
Setup
Add this to your MCP client's configuration:
{
"mcpServers": {
"kolmo-custom-models": {
"command": "uvx",
"args": ["--from", "zettaquant-vslm-mcp==0.2.0b2", "kolmo-mcp"],
"env": { "ZQ_MODEL_API_KEY": "YOUR_APPROVED_KEY" }
}
}
}To run from a checkout instead, use "command": "uv" with "args": ["run", "--directory", "/path/to/zettaquant-vslm-mcp", "kolmo-mcp"].
Related MCP server: genpark-contextual-compression-filter-skill
Tools
Tool | What it does |
| Setup guidance and a prefilled email link to request access. |
| Ready models available to your account, with versions and labels. |
| Starts training from label definitions and representative text. |
| Training progress, or the version of a ready model. |
| Cancels a training run. |
| Up to 128 texts, with one label, score and set of probabilities per text. Text longer than the model's window of 256 tokens is split, and the pieces are averaged by length. |
| Long documents, with one label per chunk and character offsets into the original text. |
Training data
Supply 2 to 24 labels, each with an
id(lowercase, up to 32 characters), anameand adescriptionthat says when it applies. Include anotherlabel if some inputs fit none of them.Supply at least about 150 distinct, representative text pieces covering every label. The API accepts as few as ten, but that is too few to learn from.
Give each source document its own
document_idand keep that document's pieces under it. The API splits long text and holds out whole documents for evaluation.A
readymodel can still be poor. Before relying on it, classify examples you kept out of training, covering every label.Identical training inputs reuse one idempotency key, so retrying recovers the same run. Pass a new
request_idto train again on the same data.
Limits
Requests are capped at 16 MiB. Each training text allows 2,000,000 characters and each kolmo_classify text 4,000. Document inference returns at most 128 chunks per call. Beta rate limits apply, and a 429 includes retry guidance when available.
Access and data handling
The API checks your invitation, key scopes, account state and model ownership on every request. The adapter reads only ZQ_MODEL_API_KEY. Keys belong to one user and organization, so use your own. Set ZQ_MODELS_BASE_URL only for a trusted HTTPS ZettaQuant deployment. The default is https://app.zettaquant.ai.
Your MCP host may keep tool arguments and results under its own settings. Error messages never include API responses, your key or your text.
A container image is also available: docker build -f Dockerfile.kolmo -t kolmo-mcp . then docker run --rm -i -e ZQ_MODEL_API_KEY kolmo-mcp.
zettaquant-vslm-mcp (context filtering)
MCP server that exposes ZettaQuant V-SLM to any LLM host that supports MCP.
Add three lines to your Claude Desktop / Cursor / Zed / Windsurf config and your model can filter noisy context (earnings call transcripts, news articles, long reports, log lines) using ZettaQuant's topic conditioned relevancy classifier, typically cutting token spend before the language model even sees the input.
What it exposes
One tool, over stdio, via the Model Context Protocol:
Tool | Purpose |
| Filter |
The LLM decides when to call it on its own, so you don't need to write any code in the host.
Install & configure
You need a ZettaQuant API key with the vslm scope. Get one at zettaquant.ai (or ask your account contact).
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"zettaquant-vslm": {
"command": "uvx",
"args": ["zettaquant-vslm-mcp"],
"env": {
"ZQ_API_KEY": "<your api key>"
}
}
}
}Restart Claude Desktop. The tools appear under the "Tools" menu.
Cursor
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"zettaquant-vslm": {
"command": "uvx",
"args": ["zettaquant-vslm-mcp"],
"env": { "ZQ_API_KEY": "<your api key>" }
}
}
}Restart Cursor.
Zed
In ~/.config/zed/settings.json:
{
"context_servers": {
"zettaquant-vslm": {
"command": {
"path": "uvx",
"args": ["zettaquant-vslm-mcp"],
"env": { "ZQ_API_KEY": "<your api key>" }
}
}
}
}Windsurf / other MCP hosts
Any host that supports the standard mcpServers config shape works. Use the same command, args and env block as above.
Environment variables
Variable | Required | Default | Notes |
| Yes | None | Your ZettaQuant API key. Must have the |
|
| Override for staging or a private gateway. |
Usage examples in the LLM
Once installed, just ask naturally. Some prompts that will trigger vslm_predict:
"Here are 40 sentences from Apple's Q3 earnings call. Pull out the ones about AI capex plans."
"Filter these log lines down to anything related to lateral movement."
"I pasted a 10-K risk section. Only show me sentences about supply chain exposure."
The model calls vslm_predict under the hood, gets back the relevant sentences, and works from those, which is cheaper and more precise than reading the full input.
Development
uv venv
uv pip install -e .
export ZQ_API_KEY="..."
python -m zettaquant_vslm_mcp.serverThe server speaks JSON-RPC on stdin/stdout. To poke it manually, use the MCP Inspector:
npx @modelcontextprotocol/inspector uvx zettaquant-vslm-mcpTroubleshooting
"ZQ_API_KEY is not set" in the host logs → the
envblock in your MCP config didn't propagate. Confirm the config file path and restart the host.401 in tool output → key is valid but wrong. Try it directly:
curl -H "x-api-key: $ZQ_API_KEY" https://api.zettaquant.ai/v1/usage/me.ZettaQuant access denied (403)→ your key doesn't have thevslmscope. Contact ZettaQuant.ZettaQuant quota exceeded (429)→ you hit your usage cap for the period. The error message includes the reset time.
License
MIT.
Available Tools
1 toolvslm_predictA
Filter a list of sentences to only those relevant to query.
Use this BEFORE feeding noisy context (earnings-call transcripts, news articles, long reports, log lines) to an LLM; it typically cuts token spend without losing important context. Chain it with your own language model.
Args: sentences: raw input sentences; ~2000 per call is comfortable. query: natural-language description of the topic to filter for (e.g. "AI capex plans", "rate cuts", "supply chain risk").
Returns: dict with: relevant_sentences: sentences that passed the filter, original order. total_sentences, relevant_count: counts to compute savings. topic_used: the topic string the model actually filtered against. topic_source: "zettaquant" (server-derived) or "caller" (you supplied). model_id: which V-SLM head handled the request.
Inputs: query (required), sentences (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of selecting the wrong tool for a task. The tool's purpose is clearly defined as relevance filtering.
With a single tool, there is no internal naming pattern to violate. The name 'vslm_predict' is readable and action-oriented, though it uses noun-verb ordering rather than the more common verb-noun style.
One tool is below the usual 3-15 range, but it is a dedicated single-purpose utility specialized for sentence relevance filtering. The count feels slightly thin rather than excessive or trivial.
For the stated purpose of filtering noisy sentences before LLM ingestion, the tool provides the core operation plus useful metadata like counts and model info. There is no obvious missing operation within this narrow, well-defined domain.
Maintenance
Related MCP Connectors
Scan prompts for injection attacks, redact PII, and audit LLM SDK usage from any MCP client
YouTube transcripts, TikTok videos, Instagram profiles, Reddit threads & HN MCP (-87% LLM tokens).
YouTube transcripts, TikTok videos, Instagram profiles, Reddit threads & HN MCP (-87% LLM tokens).
Zero-LLM guardrail MCP to detect prompt injections, redact/HMAC PII, and validate tool args.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables any MCP host to search and answer over your own documents with hybrid BM25+dense retrieval, cross-encoder reranking, and grounded, cited responses that refuse when no evidence is found.5MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents and MCP clients to compress retrieved web documents against a query, pruning irrelevant noise through deterministic algorithmic scoring so downstream context stays lean. It exposes this capability over the Model Context Protocol for integration with Claude Desktop, Cursor, and similar clients.8-
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to compress retrieved web documents against a query, pruning irrelevant noise so only the most relevant context reaches the model. It runs as a zero-dependency Python MCP server that accepts a query payload and returns structured, scored output.-
- FlicenseNot gradedqualityBmaintenanceEnables sentence-level factual grounding verification and hallucination detection for RAG outputs via MCP, with deterministic scoring and structured telemetry.7-